Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.2 KiB

  1. // Copyright (c) 2001 Microsoft Corporation
  2. //
  3. // winsta.h wrapper functions
  4. //
  5. // 25 April 2001 sburns
  6. #ifndef WINSTATION_HPP_INCLUDED
  7. #define WINSTATION_HPP_INCLUDED
  8. // Wrappers of functions in the internal winsta.h header. These wrapped
  9. // functions are remoteable over RPC to machines with terminal server
  10. // installed. If it is not installed, they fail w/ RPC server unavailable.
  11. namespace WinStation
  12. {
  13. HRESULT
  14. OpenServer(const String& serverName, HANDLE& result);
  15. // If the machine is in safe mode, this will fail with
  16. // RPC_S_INVALID_BINDING.
  17. //
  18. // serverHandle - in, valid handle opened with WinStation::OpenServer
  19. //
  20. // sessionList - out, receives an array of logon session IDs. Caller must
  21. // deallocate this memory with WinStation::FreeMemory.
  22. //
  23. // sessionCount - out, receives the number of logon session IDs in the
  24. // sessionList result.
  25. HRESULT
  26. Enumerate(
  27. HANDLE serverHandle,
  28. LOGONID*& sessionList,
  29. DWORD& sessionCount);
  30. HRESULT
  31. QueryInformation(
  32. HANDLE serverHandle,
  33. ULONG logonId,
  34. WINSTATIONINFORMATION& result);
  35. void
  36. FreeMemory(void* mem);
  37. }
  38. #endif // WINSTATION_HPP_INCLUDED