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.

183 lines
3.5 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name :
  4. isvctrl.h
  5. Abstract:
  6. Declares manifests, functions and macros for Internet Services Control Functions
  7. needed for Windows9x platforms because Service Controller is not available.
  8. Author:
  9. Vlad Sadovsky ( VladS ) 21-Mar-1996
  10. Environment:
  11. User Mode -- Win32
  12. Project:
  13. Internet Services Common DLL - Windows 9x version
  14. Revision History:
  15. --*/
  16. # ifndef _ISVCTRL_H_
  17. # define _ISVCTRL_H_
  18. /************************************************************
  19. * Include Headers
  20. ************************************************************/
  21. # include <windows.h>
  22. # include <lmcons.h>
  23. # include <inetcom.h>
  24. # include <inetinfo.h>
  25. # define MAX_SERVER_NAME_LEN ( MAX_COMPUTERNAME_LENGTH + 1)
  26. # define MAX_NT_SERVICE_NAME_LEN ( SNLEN + 1)
  27. #ifndef dllexp
  28. #define dllexp __declspec( dllexport )
  29. #endif
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. /************************************************************
  34. * Type Definitions
  35. ************************************************************/
  36. typedef struct _INET_SERVICE_DLL_TABLE_ENTRY {
  37. DWORD dwServiceId;
  38. LPTSTR lpServiceName;
  39. LPTSTR lpDllName;
  40. } INET_SERVICE_DLL_TABLE_ENTRY, *LPINET_SERVICE_DLL_TABLE_ENTRY;
  41. // Name of the window class for server main window
  42. #define INET_SERVER_WINDOW_CLASS "MS_INetPeerServerWindowClass"
  43. // Name of the event, used to determine if server started
  44. #define INET_SERVER_EVENT "MS_INetPeerServerStarted"
  45. // Window control messages, used to communicate to peer server
  46. #define INETSM_START_SERVICE (WM_USER+300)
  47. #define INETSM_STOP_SERVICE (WM_USER+301)
  48. #define INETSM_GET_SERVICE (WM_USER+302)
  49. #define INETSM_REFRESH_SERVICE_CONFIG (WM_USER+303)
  50. #define INETSM_STARTED_SERVICE (WM_USER+304)
  51. #define INETSM_STOP_TRAY (WM_USER+305)
  52. #define INETSM_START_TRAY (WM_USER+306)
  53. /************************************************************
  54. * Function Prototypes
  55. ************************************************************/
  56. //
  57. //
  58. // INet admin external APIs.
  59. // Nb: It would be ideal to keep those APIs as RPC along with other INFOADMN
  60. // APIs. Until it decided to do so, we will keep them here.
  61. //
  62. dllexp
  63. NET_API_STATUS
  64. NET_API_FUNCTION
  65. InetInfoServiceStart(
  66. IN LPWSTR pszServer OPTIONAL,
  67. IN DWORD dwServiceId
  68. );
  69. dllexp
  70. NET_API_STATUS
  71. NET_API_FUNCTION
  72. InetInfoServiceStop(
  73. IN LPWSTR pszServer OPTIONAL,
  74. IN DWORD dwServiceId
  75. );
  76. dllexp
  77. NET_API_STATUS
  78. NET_API_FUNCTION
  79. InetInfoServiceGetStatusMask(
  80. IN LPWSTR pszServer OPTIONAL,
  81. IN DWORD dwServiceId,
  82. OUT LPDWORD pdwServiceStatus
  83. );
  84. dllexp
  85. NET_API_STATUS
  86. NET_API_FUNCTION
  87. InetInfoRefreshServiceConfiguration(
  88. IN LPWSTR pszServer OPTIONAL,
  89. IN DWORD dwServiceId
  90. );
  91. //
  92. // Internally used prototypes for Internet Services control APIs
  93. //
  94. dllexp
  95. VOID
  96. TsInitializeSC(
  97. IN DWORD *pGlobalData
  98. );
  99. /*++
  100. TsStartService()
  101. Description:
  102. This function initializes
  103. Arguments:
  104. dwINetServiceId
  105. Returns:
  106. Win32 Error code. NO_ERROR on success.
  107. --*/
  108. dllexp
  109. DWORD
  110. TsStartService(
  111. IN DWORD dwINetServiceId
  112. );
  113. dllexp
  114. DWORD
  115. TsStopService(
  116. IN DWORD dwINetServiceId
  117. );
  118. dllexp
  119. DWORD
  120. TsGetServiceStatusMask(
  121. IN DWORD dwINetServiceId,
  122. OUT LPDWORD pdwServiceStatus
  123. );
  124. dllexp
  125. DWORD
  126. GetServiceIdFromName(
  127. IN LPTSTR pszService
  128. );
  129. #ifdef __cplusplus
  130. }
  131. #endif
  132. # endif // _ISVCTRL_H_
  133. /************************ End of File ***********************/