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.

122 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. w3svc.idl
  5. Abstract:
  6. Contains the W3 (w3svc Remote) RPC interface specification for the
  7. APIs associated with the W3 Daemon service.
  8. Also contains the RPC specific data structures for these API.
  9. Author:
  10. Dan Hinsley (DanHi) 23-Mar-1993
  11. Environment:
  12. User Mode - Win32 - MIDL
  13. Revision History:
  14. --*/
  15. //
  16. // Interface Attributes
  17. //
  18. [
  19. uuid(53E75790-D96B-11CD-BA18-08002B2DFEAD),
  20. version(2.0),
  21. #ifdef __midl
  22. ms_union,
  23. #endif // __midl
  24. pointer_default(unique)
  25. ]
  26. //
  27. // Interface Keyword
  28. //
  29. interface w3svc
  30. //
  31. // Interface Body
  32. //
  33. {
  34. import "infoimp.idl";
  35. #include <lmcons.h>
  36. //
  37. // ---------------------------------------------------------------//
  38. //
  39. typedef [handle] LPWSTR W3_IMPERSONATE_HANDLE;
  40. typedef [handle] LPWSTR W3_IDENTIFY_HANDLE;
  41. //
  42. // W3 Daemon APIs
  43. //
  44. NET_API_STATUS
  45. NET_API_FUNCTION
  46. W3rGetAdminInformation(
  47. [in, string, unique] W3_IMPERSONATE_HANDLE pszServer,
  48. [out] LPW3_CONFIG_INFO * ppConfig
  49. );
  50. NET_API_STATUS
  51. NET_API_FUNCTION
  52. W3rSetAdminInformation(
  53. [in, string, unique] W3_IMPERSONATE_HANDLE pszServer,
  54. [in] LPW3_CONFIG_INFO pConfig
  55. );
  56. typedef struct _W3_USER_ENUM_STRUCT {
  57. DWORD EntriesRead;
  58. [size_is(EntriesRead)] LPW3_USER_INFO Buffer;
  59. } W3_USER_ENUM_STRUCT, *LPW3_USER_ENUM_STRUCT;
  60. NET_API_STATUS
  61. NET_API_FUNCTION
  62. W3rEnumerateUsers(
  63. [in, string, unique] W3_IMPERSONATE_HANDLE pszServer,
  64. [out] LPW3_USER_ENUM_STRUCT Buffer );
  65. NET_API_STATUS
  66. NET_API_FUNCTION
  67. W3rDisconnectUser(
  68. [in,string,unique] W3_IMPERSONATE_HANDLE pszServer,
  69. [in] DWORD idUser );
  70. typedef [switch_type(unsigned long)] union _STATISTICS_INFO
  71. {
  72. [case(0)]
  73. LPW3_STATISTICS_0 W3Stats0;
  74. [default]
  75. ;
  76. } STATISTICS_INFO, * LPSTATISTICS_INFO;
  77. NET_API_STATUS
  78. NET_API_FUNCTION
  79. W3rQueryStatistics(
  80. [in, string, unique] W3_IMPERSONATE_HANDLE pszServer,
  81. [in] DWORD Level,
  82. [out, switch_is(Level)] LPSTATISTICS_INFO StatsInfo );
  83. NET_API_STATUS
  84. NET_API_FUNCTION
  85. W3rClearStatistics(
  86. [in, string, unique] W3_IMPERSONATE_HANDLE pszServer );
  87. }
  88.