Forum: Win32/Win64 API (native code)
Delphi
by Remko,
22. Dez 2006
I'm still not able to call WinStationConnectW successfully. Because of the time schedule I will result in spawning tscon.exe from commandline and run in the context of an admin account for now.
NicoDE: in case you're reading, can you verify WinStationConnectW? Did you actually get it working?
Will be continued...
Forum: Win32/Win64 API (native code)
Delphi
by Remko,
19. Dez 2006
Olli,
I made a type in the mail I sent you, what I meant to say is:
I misinterpreted WinStationShadowStop, I was thinkin way too complicated. We don't need to watch for session state change event and call WinStationShadowStop manually. When you press the hotkey it's done for you. So this function is only there if you want to stop remote control programmatically (why would one want to do that,...
Forum: Win32/Win64 API (native code)
Delphi
by Remko,
18. Dez 2006
Again updating some progress:
Got starting a remote control and ending it with the supplied hotkey working. See attachment for code.
Currently included functions:
WinStationConnect (connect to a disconnect session)
WinStationQueryInformation (get login and idle time from a session)
WinStationShadow (shadow another session)
Forum: Win32/Win64 API (native code)
Delphi
by Remko,
4. Dez 2006
WinWlx doesn't contain the function or any pointers in the right direction. I agree with you that Olli could probably help, but I already asked him ;-) and he's very busy right now. He helped me before with other functions from Winsta.dll to get idle and login time from terminal server sessions.
Forum: Win32/Win64 API (native code)
Delphi
by Remko,
4. Dez 2006
Sorry for writing in English, I can read and write some German but its not sufficient to describe my question.
I'm looking for any info on how to use the WinStationShadow function from Winsta.dll to incorporate an option to shadow a users sessions from my app. Currently I use shadow.exe with commandline params but this isn't really nice.
Both tsadmin.exe and shadow.exe seem to use winsta.dll...