AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Suchfunktion Ergebnis der Suchanfrage

Ergebnis der Suchanfrage


Datum des Suchindex: Heute, 05:17

Parameter dieser Suchanfrage:

Suche in Thema: WinStationShadow API Function
Suche alle Beiträge, die von "Remko" geschrieben wurden
• Suchmethode: "Suche nach allen Begriffen"
• Nach Datum (firstpost) sortiert
• Zeige Treffer als Beiträge
Zeige 11 von insges. 11 Treffern
Suche benötigte 0.005s

Es liegen Ergebnisse in folgenden Bereichen vor:

  • Forum: Win32/Win64 API (native code)

    Re: WinStationShadow API Function

      Delphi
      by Remko, 3. Jan 2007
    Sometimes people make stupid mistakes, or well at least I do :-).
    Somewhere in the experimenting with the parameters I removed stdcall by accident, that's why it didn't work anymore. I just failed to notice it.

    So the correct declaration for WinStationConnectW is:

    function WinStationConnectW(hServer: Handle; SessionID: ULong; TargetSessionID: ULong; pPassword: PWideChar; bWait:Boolean):...
  • Forum: Win32/Win64 API (native code)

    Re: WinStationShadow API Function

      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)

    Re: WinStationShadow API Function

      Delphi
      by Remko, 19. Dez 2006
    So results so far:
    WinStationShadow: 100% working.
    WinStationShadowStop: Not needed, just use hotkey to end remote control
    WinStationConnectW: Banging my head on this one, I know I've had it working but I just don't get it right now.
    Last parameter really seems a PWideChar, passing a value (pServername) to it gives as lasterror Handle is invalid.
    When passing nil for the last parameter and...
  • Forum: Win32/Win64 API (native code)

    Re: WinStationShadow API Function

      Delphi
      by Remko, 19. Dez 2006
    Just tested some more:
    When shadowing a session on the same server you must specify hServer and pServername can be empty string or nil.
    When shadowing a session on another server you must specify nil for hServer and the remote computername (or IP) for pServername (actually the last method works for both local and remote, so it's easier to use that one always).

    I will also test passing...
  • Forum: Win32/Win64 API (native code)

    Re: WinStationShadow API Function

      Delphi
      by Remko, 19. Dez 2006
    I did some tests with giving sessionname (eg RDP-Tcp#20) as 2nd parameter, doesn't seem to work. Then I tried with servername, if I specify either computername or IP then remote control works. My tests so far where all on a single server, so this parameter makes it possible to shadow a session on another server. This is probably needed because as Olli determined WinSta actually calls...
  • Forum: Win32/Win64 API (native code)

    Re: WinStationShadow API Function

      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)

    Re: WinStationShadow API Function

      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)

    Re: WinStationShadow API Function

      Delphi
      by Remko, 12. Dez 2006
    Just posting my progress:
    const SERVERNAME_CURRENT: HWND = THandle(Nil);
    const LOGONID_CURRENT: ULONG = ULong(-1);

    function WinStationShadow(hServer: Handle; ActiveSessionID: ULong; SessionID: ULONG; KeyCode: ULong; KeyModifier: ULong): Boolean; stdcall; // ActiveSessionID can be LOGONID_CURRENT, hServer can be LOGONID_CURRENT

    function WinStationConnectW(hServer: HANDLE; ConnectSessionID:...
  • Forum: Win32/Win64 API (native code)

    Re: WinStationShadow API Function

      Delphi
      by Remko, 11. Dez 2006
    I did find out some more, just posting it here to share my information. Perhaps someone knows the next step?
    Starting a Remote Control from TSAdmin.exe, accepting this from the client and exiting remote control executes these API functions:

    API Name Return Value Module Name
    WinStationOpenServerW 808544 (0xC5660) WINSTA.dll
    Before Call Parameters...
  • Forum: Win32/Win64 API (native code)

    Re: WinStationShadow API Function

      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)

    WinStationShadow API Function

      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...


URL zu dieser Suchanfrage:

https://www.delphipraxis.net/dp_search.php?do=usersearch&search_username=Remko&search_exact_username=1&search_sortby=dateline&search_resulttype=post&search_matchmode=0&searchthreadid=81827
Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:39 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz