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.

97 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. srvann.h
  5. Abstract:
  6. Contains function prototypes for internal server announcement interfaces
  7. between services and the service controller.
  8. Author:
  9. Dan Lafferty (danl) 31-Mar-1991
  10. Environment:
  11. User Mode -Win32
  12. Revision History:
  13. 31-Mar-1991 danl
  14. created
  15. 15-Aug-1995 anirudhs
  16. Added I_ScGetCurrentGroupStateW.
  17. --*/
  18. #ifndef _SRVANN_INCLUDED
  19. #define _SRVANN_INCLUDED
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. //
  24. // This entrypoint is exported by the service controller. It is to be
  25. // called by any service wishing to set up announcement bits.
  26. //
  27. // The service controller will then pass the information on to the
  28. // server service when appropriate.
  29. //
  30. BOOL
  31. I_ScSetServiceBitsW(
  32. IN SERVICE_STATUS_HANDLE hServiceStatus,
  33. IN DWORD dwServiceBits,
  34. IN BOOL bSetBitsOn,
  35. IN BOOL bUpdateImmediately,
  36. IN LPWSTR pszReserved
  37. );
  38. BOOL
  39. I_ScSetServiceBitsA (
  40. IN SERVICE_STATUS_HANDLE hServiceStatus,
  41. IN DWORD dwServiceBits,
  42. IN BOOL bSetBitsOn,
  43. IN BOOL bUpdateImmediately,
  44. IN LPSTR pszReserved
  45. );
  46. #ifdef UNICODE
  47. #define I_ScSetServiceBits I_ScSetServiceBitsW
  48. #else
  49. #define I_ScSetServiceBits I_ScSetServiceBitsA
  50. #endif
  51. //
  52. // These entrypoints are exported by the server service. They are called
  53. // by the service controller only.
  54. //
  55. NET_API_STATUS
  56. I_NetServerSetServiceBits (
  57. IN LPTSTR servername,
  58. IN LPTSTR transport OPTIONAL,
  59. IN DWORD servicebits,
  60. IN DWORD updateimmediately
  61. );
  62. NET_API_STATUS
  63. I_NetServerSetServiceBitsEx (
  64. IN LPWSTR ServerName,
  65. IN LPWSTR EmulatedServerName OPTIONAL,
  66. IN LPTSTR TransportName OPTIONAL,
  67. IN DWORD ServiceBitsOfInterest,
  68. IN DWORD ServiceBits,
  69. IN DWORD UpdateImmediately
  70. );
  71. #ifdef __cplusplus
  72. } // extern "C"
  73. #endif
  74. #endif // _SRVANN_INCLUDED