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.

107 lines
2.9 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. localsvc.h
  5. Abstract:
  6. Header file for definitions and structure for the NT Cluster
  7. Special generic services.
  8. Author:
  9. John Vert (jvert) 23-May-1997
  10. Revision History:
  11. --*/
  12. #ifndef _LOCALSVC_INCLUDED_
  13. #define _LOCALSVC_INCLUDED_
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #define SERVICE_NAME L"MSMQ"
  18. #define SYNC_VALUE_COUNT 2
  19. #define REG_SYNC_VALUE1 L"Software\\Microsoft\\Cryptography\\MachineKeys\\MSMQ"
  20. #define REG_SYNC_VALUE2 L"Software\\Microsoft\\MSMQ\\Parameters"
  21. #define CRYPTO_VALUE_COUNT 1
  22. #define CRYPTO_SYNC_VALUE1 L"1\\Microsoft Base Cryptographic Provider v1.0\\MSMQ"
  23. #define DOMESTIC_CRYPTO_VALUE_COUNT 1
  24. #define DOMESTIC_CRYPTO_SYNC_VALUE1 L"1\\Microsoft Enhanced Cryptographic Provider v1.0\\MSMQ_128"
  25. #define ENVIRONMENT 1 // Need GetComputerName to lie.
  26. #define COMMON_SEMAPHORE L"Cluster$MSMQSemaphore" // Limit of one resource of this type
  27. #define LOG_CURRENT_MODULE LOG_MODULE_MSMQ
  28. static DWORD RegSyncCount = SYNC_VALUE_COUNT;
  29. static LPWSTR RegSync[SYNC_VALUE_COUNT] = {
  30. REG_SYNC_VALUE1,
  31. REG_SYNC_VALUE2 };
  32. static DWORD CryptoSyncCount = CRYPTO_VALUE_COUNT;
  33. static LPWSTR CryptoSync[CRYPTO_VALUE_COUNT] = {
  34. CRYPTO_SYNC_VALUE1 };
  35. static DWORD DomesticCryptoSyncCount = DOMESTIC_CRYPTO_VALUE_COUNT;
  36. static LPWSTR DomesticCryptoSync[DOMESTIC_CRYPTO_VALUE_COUNT] = {
  37. DOMESTIC_CRYPTO_SYNC_VALUE1 };
  38. #define CommonReadParameters MsMQReadParameters
  39. DWORD
  40. MsMQReadParametersEx(
  41. IN OUT PVOID pvResourceEntry,
  42. IN BOOL bCheckForRequiredProperties
  43. );
  44. _inline
  45. DWORD
  46. MsMQReadParameters(
  47. IN OUT PVOID pvResourceEntry
  48. )
  49. {
  50. return MsMQReadParametersEx( pvResourceEntry, FALSE /* bCheckForRequiredProperties */ );
  51. }
  52. #define COMMON_CONTROL 1 // Need control functions
  53. typedef struct _COMMON_DEPEND_DATA {
  54. CLUSPROP_RESOURCE_CLASS storageEntry;
  55. CLUSPROP_SZ_DECLARE( networkEntry, sizeof(CLUS_RESTYPE_NAME_NETNAME) / sizeof(WCHAR) );
  56. CLUSPROP_SZ_DECLARE( msdtcEntry, sizeof(CLUS_RESTYPE_NAME_MSDTC) / sizeof(WCHAR) );
  57. CLUSPROP_SYNTAX endmark;
  58. } COMMON_DEPEND_DATA, *PCOMMON_DEPEND_DATA;
  59. static COMMON_DEPEND_SETUP CommonDependSetup[] = {
  60. { FIELD_OFFSET(COMMON_DEPEND_DATA, storageEntry), CLUSPROP_SYNTAX_RESCLASS, sizeof(CLUSTER_RESOURCE_CLASS), (PVOID)(ULONGLONG)CLUS_RESCLASS_STORAGE },
  61. { FIELD_OFFSET(COMMON_DEPEND_DATA, networkEntry), CLUSPROP_SYNTAX_NAME, sizeof(CLUS_RESTYPE_NAME_NETNAME), CLUS_RESTYPE_NAME_NETNAME },
  62. { FIELD_OFFSET(COMMON_DEPEND_DATA, msdtcEntry), CLUSPROP_SYNTAX_NAME, sizeof(CLUS_RESTYPE_NAME_MSDTC), CLUS_RESTYPE_NAME_MSDTC },
  63. { 0, 0 }
  64. };
  65. #define COMMON_PARAMS_DEFINED 1 // Define private parameters
  66. typedef struct _COMMON_PARAMS {
  67. DWORD dwVersion;
  68. } COMMON_PARAMS, * PCOMMON_PARAMS;
  69. #ifdef _cplusplus
  70. }
  71. #endif
  72. #endif // ifndef _LOCALSVC_INCLUDED_