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.

164 lines
2.2 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1997 - 1999
  3. Module Name:
  4. senscfg.hxx
  5. Abstract:
  6. Header file for SENS configuration tool code.
  7. Author:
  8. Gopal Parupudi <GopalP>
  9. [Notes:]
  10. optional-notes
  11. Revision History:
  12. GopalP 11/12/1997 Start.
  13. --*/
  14. #ifndef __SENSCFG_HXX__
  15. #define __SENSCFG_HXX__
  16. //
  17. // Constants
  18. //
  19. #define SENS_SUBSCRIBER_NAME_EVENTOBJECTCHANGE SENS_STRING("SENS Subscriber for EventSystem EventObjectChange events")
  20. //
  21. // Forwards
  22. //
  23. HRESULT APIENTRY
  24. SensRegister(
  25. void
  26. );
  27. HRESULT APIENTRY
  28. SensUnregister(
  29. void
  30. );
  31. HRESULT
  32. SensConfigurationHelper(
  33. BOOL bUnregister
  34. );
  35. HRESULT
  36. SensConfigureEventSystem(
  37. BOOL bUnregister
  38. );
  39. HRESULT
  40. RegisterSensEventClasses(
  41. BOOL bUnregister
  42. );
  43. HRESULT
  44. RegisterSensAsSubscriber(
  45. BOOL bUnregister
  46. );
  47. HRESULT
  48. RegisterSensSubscriptions(
  49. BOOL bUnregister
  50. );
  51. HRESULT
  52. RegisterSensTypeLibraries(
  53. BOOL bUnregister
  54. );
  55. HRESULT
  56. RegisterSensCLSID(
  57. REFIID clsid,
  58. TCHAR* strSubscriberName,
  59. BOOL bUnregister
  60. );
  61. HRESULT
  62. SensUpdateVersion(
  63. BOOL bUnregister
  64. );
  65. #if !defined(SENS_CHICAGO)
  66. HRESULT
  67. RegisterSensWithWinlogon(
  68. BOOL bUnregister
  69. );
  70. #if defined(SENS_NT4)
  71. HRESULT
  72. RegisterSensAsService(
  73. BOOL bUnregister
  74. );
  75. HRESULT
  76. InstallService(
  77. void
  78. );
  79. HRESULT
  80. RemoveService(
  81. void
  82. );
  83. HRESULT
  84. SetServiceWorldAccessMask(
  85. SC_HANDLE hService,
  86. DWORD dwAccessMask
  87. );
  88. void CALLBACK
  89. MarkSensAsDemandStart(
  90. HWND hwnd,
  91. HINSTANCE hinst,
  92. LPSTR lpszCmdLine,
  93. int nCmdShow
  94. );
  95. #endif // SENS_NT4
  96. #endif // SENS_CHICAGO
  97. HRESULT
  98. CreateKey(
  99. HKEY hParentKey,
  100. const TCHAR* KeyName,
  101. const TCHAR* defaultValue,
  102. HKEY* hKey
  103. );
  104. HRESULT
  105. CreateNamedValue(
  106. HKEY hKey,
  107. const TCHAR* title,
  108. const TCHAR* value
  109. );
  110. HRESULT
  111. CreateNamedDwordValue(
  112. HKEY hKey,
  113. const TCHAR* title,
  114. DWORD dwValue
  115. );
  116. HRESULT
  117. RecursiveDeleteKey(
  118. HKEY hKeyParent,
  119. const TCHAR* lpszKeyChild
  120. );
  121. #endif // __SENSCFG_HXX__