Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

windows services - How to take users session screen shot using C# -


i want capture users screens connected machine. how can that?

i want create windows service capture users screen.

thanks laxmilal

you can using windows terminal service (wts) api. need do:
1. use local system system service account. other accounts not work.
2. call wtsopenserver, using wtsenumeratesessions retrieve list of sessions
3. list of wts_session_info structures. each item there represents sessions. interested in sessions state wtsactive.
4. in loop call createprocessasuser each session identified in previous step. specify sessionid wts_session_info structure have session. name of process run favorite screen capture utility. did not use of those, quick search on internet turns few options.


Comments

Popular posts from this blog

ios - Very simple iPhone App crashes on UILabel settext -

mysql - Why there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT clause? -

c# - Usage of Server Side Controls in MVC Frame work -