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.

42 lines
1.5 KiB

  1. /*===================================================================
  2. Microsoft IIS
  3. Microsoft Confidential.
  4. Copyright 1996-1997 Microsoft Corporation. All Rights Reserved.
  5. Component: Server object
  6. File: NTSec.h
  7. Owner: AndrewS
  8. This file contains includes related to NT security on WinSta's and Desktops
  9. ===================================================================*/
  10. #ifndef __NTSec_h
  11. #define __NTSec_h
  12. // Local Defines
  13. // Note: These names are deliberately obscure so no one will guess them
  14. #define SZ_IIS_WINSTA "__X78B95_89_IW"
  15. #define SZ_IIS_DESKTOP "__A8D9S1_42_ID"
  16. #define DESKTOP_ALL (DESKTOP_READOBJECTS | DESKTOP_CREATEWINDOW | \
  17. DESKTOP_CREATEMENU | DESKTOP_HOOKCONTROL | \
  18. DESKTOP_JOURNALRECORD | DESKTOP_JOURNALPLAYBACK | \
  19. DESKTOP_ENUMERATE | DESKTOP_WRITEOBJECTS | \
  20. DESKTOP_SWITCHDESKTOP | STANDARD_RIGHTS_REQUIRED)
  21. #define WINSTA_ALL (WINSTA_ENUMDESKTOPS | WINSTA_READATTRIBUTES | \
  22. WINSTA_ACCESSCLIPBOARD | WINSTA_CREATEDESKTOP | \
  23. WINSTA_WRITEATTRIBUTES | WINSTA_ACCESSGLOBALATOMS | \
  24. WINSTA_EXITWINDOWS | WINSTA_ENUMERATE | \
  25. WINSTA_READSCREEN | \
  26. STANDARD_RIGHTS_REQUIRED)
  27. HRESULT InitDesktopWinsta(BOOL);
  28. VOID UnInitDesktopWinsta();
  29. HRESULT SetDesktop(BOOL);
  30. HRESULT AddUserSecurity(HANDLE hImpersonate);
  31. #endif //__NTSec_h