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.

116 lines
3.3 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*********************************************************************************************
  3. *
  4. *
  5. * Module Name:
  6. *
  7. * Defines.h
  8. *
  9. * Abstract:
  10. * This is file with some internal definitions
  11. *
  12. * Author:
  13. *
  14. *
  15. * Revision:
  16. *
  17. *
  18. ************************************************************************************************/
  19. #ifndef _DEFINES_H
  20. #define _DEFINES_H_
  21. #ifdef UNICODE
  22. #define lstr_access _waccess
  23. #else
  24. #define lstr_access _access
  25. #endif
  26. // Flags for EncryptionLevel.Flags
  27. const WORD ELF_DEFAULT = 0x0001; // This is the default value
  28. typedef void* PEXTOBJECT;
  29. typedef struct _EncLevel {
  30. WORD StringID;
  31. DWORD RegistryValue;
  32. WORD Flags;
  33. } EncryptionLevel;
  34. #define REG_DEF_SECURITY L"DefaultSecurity"
  35. #define REG_REMOTE_SECURITY L"RemoteAdmin"
  36. #define REG_APPL_SECURITY L"AppServer"
  37. #define REG_ANON_SECURITY L"Anonymous"
  38. typedef void (WINAPI *LPFNEXTSTARTPROC) (WDNAMEW *pWdName);
  39. typedef void (WINAPI *LPFNEXTENDPROC) (void);
  40. typedef LONG (WINAPI *LPFNEXTENCRYPTIONLEVELSPROC) (WDNAMEW *pWdName, EncryptionLevel **);
  41. typedef LONG ( WINAPI *LPFNEXTGETENCRYPTIONLEVELDESCPROC )( int idx , int *pnResid );
  42. typedef void (WINAPI *LPFNEXTDIALOGPROC) (HWND, PEXTOBJECT);
  43. typedef void (WINAPI *LPFNEXTDELETEOBJECTPROC) (PEXTOBJECT);
  44. typedef PEXTOBJECT (WINAPI *LPFNEXTDUPOBJECTPROC) (PEXTOBJECT);
  45. typedef PEXTOBJECT (WINAPI *LPFNEXTREGQUERYPROC) (PWINSTATIONNAMEW, PPDCONFIGW);
  46. typedef LONG (WINAPI *LPFNEXTREGCREATEPROC) (PWINSTATIONNAMEW, PEXTOBJECT, BOOLEAN);
  47. typedef LONG (WINAPI *LPFNEXTREGDELETEPROC) (PWINSTATIONNAMEW, PEXTOBJECT);
  48. typedef BOOL (WINAPI *LPFNEXTCOMPAREOBJECTSPROC) (PEXTOBJECT, PEXTOBJECT);
  49. typedef ULONG (WINAPI *LPFNEXTGETCAPABILITIES) (void);
  50. typedef struct tagWD
  51. {
  52. WDNAMEW wdName;
  53. WDNAMEW wdKey;
  54. WDCONFIG2 wd2;
  55. HINSTANCE hExtensionDLL;
  56. LPFNEXTSTARTPROC lpfnExtStart;
  57. LPFNEXTENDPROC lpfnExtEnd;
  58. LPFNEXTENCRYPTIONLEVELSPROC lpfnExtEncryptionLevels;
  59. LPFNEXTGETENCRYPTIONLEVELDESCPROC lpfnExtGetEncryptionLevelDescr;
  60. LPFNEXTDELETEOBJECTPROC lpfnExtDeleteObject;
  61. LPFNEXTREGQUERYPROC lpfnExtRegQuery;
  62. LPFNEXTREGCREATEPROC lpfnExtRegCreate;
  63. LPFNEXTREGDELETEPROC lpfnExtRegDelete;
  64. LPFNEXTDUPOBJECTPROC lpfnExtDupObject;
  65. LPFNEXTGETCAPABILITIES lpfnGetCaps;
  66. // CPtrArray PDNameArray;
  67. CPtrArray PDConfigArray; // PDCONFIG3W
  68. } WD;
  69. /*typedef struct tagWS
  70. {
  71. WINSTATIONNAMEW Name;
  72. PDNAMEW pdName;
  73. WDNAMEW wdName;
  74. WCHAR Comment[WINSTATIONCOMMENT_LENGTH + 1];
  75. ULONG uMaxInstanceCount;
  76. BOOL fEnableWinstation;
  77. ULONG LanAdapter;
  78. SDCLASS SdClass;
  79. } WS;*/
  80. typedef WD * PWD;
  81. static CHAR szStart[] = "ExtStart";
  82. static CHAR szEnd[] = "ExtEnd";
  83. static CHAR szDialog[] = "ExtDialog";
  84. static CHAR szDeleteObject[] = "ExtDeleteObject";
  85. static CHAR szDupObject[] = "ExtDupObject";
  86. static CHAR szRegQuery[] = "ExtRegQuery";
  87. static CHAR szRegCreate[] = "ExtRegCreate";
  88. static CHAR szRegDelete[] = "ExtRegDelete";
  89. static CHAR szCompareObjects[] = "ExtCompareObjects";
  90. static CHAR szEncryptionLevels[] = "ExtEncryptionLevels";
  91. static CHAR szGetCapabilities[] = "ExtGetCapabilities";
  92. static CHAR szGetEncryptionLevelDescr[] = "ExtGetEncryptionLevelDescr";
  93. static CHAR szGetCaps[] = "ExtGetCapabilities";
  94. #endif