Leaked source code of windows server 2003
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.

78 lines
1.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: rshx32.h
  8. //
  9. // Remote administration shell extension.
  10. //
  11. //--------------------------------------------------------------------------
  12. #ifndef _RSHX32_H_
  13. #define _RSHX32_H_
  14. #ifndef UNICODE
  15. #error "No ANSI support yet"
  16. #endif
  17. extern "C"
  18. {
  19. #include <nt.h> // for SE_TAKE_OWNERSHIP_PRIVILEGE, etc
  20. #include <ntrtl.h>
  21. #include <nturtl.h>
  22. #include <seopaque.h> // RtlObjectAceSid, etc.
  23. #include <sertlp.h> // RtlpOwnerAddrSecurityDescriptor, etc.
  24. }
  25. #define INC_OLE2
  26. #include <windows.h>
  27. #include "resource.h" // resource IDs
  28. #ifndef RC_INVOKED
  29. #include <winspool.h>
  30. #include <shellapi.h> // HDROP, ShellExecuteEx
  31. #include <shlobj.h> // CF_IDLIST
  32. #include <shlwapi.h> // StrChr
  33. #include <commctrl.h> // property page stuff
  34. #include <comctrlp.h> // DPA
  35. #include <aclapi.h>
  36. #include <aclui.h>
  37. #include <common.h>
  38. #include "cstrings.h"
  39. #include "util.h"
  40. extern "C"
  41. {
  42. #include "authz.h"
  43. }
  44. #include "ntfssi.h"
  45. #include "printsi.h"
  46. #include <shlobjp.h> // ILCombine
  47. #define ALL_SECURITY_ACCESS (READ_CONTROL | WRITE_DAC | WRITE_OWNER | ACCESS_SYSTEM_SECURITY)
  48. // Magic debug flags
  49. #define TRACE_RSHX32 0x00000001
  50. #define TRACE_SI 0x00000002
  51. #define TRACE_NTFSSI 0x00000004
  52. #define TRACE_PRINTSI 0x00000008
  53. #define TRACE_UTIL 0x00000010
  54. #define TRACE_NTFSCOMPARE 0x00000020
  55. #define TRACE_ALWAYS 0xffffffff // use with caution
  56. //
  57. // Global variables
  58. //
  59. extern HINSTANCE g_hInstance;
  60. extern LONG g_cRefThisDll;
  61. extern CLIPFORMAT g_cfShellIDList;
  62. extern CLIPFORMAT g_cfPrinterGroup;
  63. extern CLIPFORMAT g_cfMountedVolume;
  64. #endif // RC_INVOKED
  65. #endif // _RSHX32_H_