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.

334 lines
8.7 KiB

  1. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3. /* File created by MIDL compiler version 6.00.0340 */
  4. /* Compiler settings for ssdp.idl:
  5. Oicf, W1, Zp8, env=Win32 (32b run)
  6. protocol : dce , ms_ext, c_ext, robust
  7. error checks: allocation ref bounds_check enum stub_data
  8. VC __declspec() decoration level:
  9. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10. DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING( )
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef __ssdp_h__
  23. #define __ssdp_h__
  24. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  25. #pragma once
  26. #endif
  27. /* Forward Declarations */
  28. /* header files for imported files */
  29. #include "wtypes.h"
  30. #ifdef __cplusplus
  31. extern "C"{
  32. #endif
  33. void * __RPC_USER MIDL_user_allocate(size_t);
  34. void __RPC_USER MIDL_user_free( void * );
  35. #ifndef __ssdpsrv_INTERFACE_DEFINED__
  36. #define __ssdpsrv_INTERFACE_DEFINED__
  37. /* interface ssdpsrv */
  38. /* [auto_handle][unique][version][uuid] */
  39. #define SSDP_SERVICE_PERSISTENT 0x00000001
  40. #define NUM_OF_HEADERS 19
  41. #define NUM_OF_METHODS 4
  42. typedef
  43. enum _NOTIFY_TYPE
  44. { NOTIFY_ALIVE = 0,
  45. NOTIFY_PROP_CHANGE = NOTIFY_ALIVE + 1
  46. } NOTIFY_TYPE;
  47. typedef
  48. enum _SSDP_METHOD
  49. { SSDP_NOTIFY = 0,
  50. SSDP_M_SEARCH = 1,
  51. GENA_SUBSCRIBE = 2,
  52. GENA_UNSUBSCRIBE = 3,
  53. SSDP_INVALID = 4
  54. } SSDP_METHOD;
  55. typedef enum _SSDP_METHOD *PSSDP_METHOD;
  56. typedef
  57. enum _SSDP_HEADER
  58. { SSDP_HOST = 0,
  59. SSDP_NT = SSDP_HOST + 1,
  60. SSDP_NTS = SSDP_NT + 1,
  61. SSDP_ST = SSDP_NTS + 1,
  62. SSDP_MAN = SSDP_ST + 1,
  63. SSDP_MX = SSDP_MAN + 1,
  64. SSDP_LOCATION = SSDP_MX + 1,
  65. SSDP_AL = SSDP_LOCATION + 1,
  66. SSDP_USN = SSDP_AL + 1,
  67. SSDP_CACHECONTROL = SSDP_USN + 1,
  68. GENA_CALLBACK = SSDP_CACHECONTROL + 1,
  69. GENA_TIMEOUT = GENA_CALLBACK + 1,
  70. GENA_SCOPE = GENA_TIMEOUT + 1,
  71. GENA_SID = GENA_SCOPE + 1,
  72. GENA_SEQ = GENA_SID + 1,
  73. CONTENT_LENGTH = GENA_SEQ + 1,
  74. CONTENT_TYPE = CONTENT_LENGTH + 1,
  75. SSDP_SERVER = CONTENT_TYPE + 1,
  76. SSDP_EXT = SSDP_SERVER + 1
  77. } SSDP_HEADER;
  78. typedef enum _SSDP_HEADER *PSSDP_HEADER;
  79. typedef /* [string] */ LPSTR MIDL_SZ;
  80. typedef struct _SSDP_REQUEST
  81. {
  82. SSDP_METHOD Method;
  83. /* [string] */ LPSTR RequestUri;
  84. MIDL_SZ Headers[ 19 ];
  85. /* [string] */ LPSTR ContentType;
  86. /* [string] */ LPSTR Content;
  87. GUID guidInterface;
  88. } SSDP_REQUEST;
  89. typedef struct _SSDP_REQUEST *PSSDP_REQUEST;
  90. typedef struct _SSDP_MESSAGE
  91. {
  92. /* [string] */ LPSTR szType;
  93. /* [string] */ LPSTR szLocHeader;
  94. /* [string] */ LPSTR szAltHeaders;
  95. /* [string] */ LPSTR szUSN;
  96. /* [string] */ LPSTR szSid;
  97. DWORD iSeq;
  98. UINT iLifeTime;
  99. /* [string] */ LPSTR szContent;
  100. } SSDP_MESSAGE;
  101. typedef struct _SSDP_MESSAGE *PSSDP_MESSAGE;
  102. typedef struct _SSDP_REGISTER_INFO
  103. {
  104. /* [string] */ LPSTR szSid;
  105. DWORD csecTimeout;
  106. } SSDP_REGISTER_INFO;
  107. typedef struct _MessageList
  108. {
  109. long size;
  110. /* [size_is] */ SSDP_REQUEST *list;
  111. } MessageList;
  112. typedef
  113. enum _UPNP_PROPERTY_FLAG
  114. { UPF_NON_EVENTED = 0x1
  115. } UPNP_PROPERTY_FLAG;
  116. typedef struct _UPNP_PROPERTY
  117. {
  118. /* [string] */ LPSTR szName;
  119. DWORD dwFlags;
  120. /* [string] */ LPSTR szValue;
  121. } UPNP_PROPERTY;
  122. typedef struct _SUBSCRIBER_INFO
  123. {
  124. /* [string] */ LPSTR szDestUrl;
  125. FILETIME ftTimeout;
  126. DWORD csecTimeout;
  127. DWORD iSeq;
  128. /* [string] */ LPSTR szSid;
  129. } SUBSCRIBER_INFO;
  130. typedef struct _EVTSRC_INFO
  131. {
  132. DWORD cSubs;
  133. /* [size_is] */ SUBSCRIBER_INFO *rgSubs;
  134. } EVTSRC_INFO;
  135. typedef /* [context_handle] */ void *PCONTEXT_HANDLE_TYPE;
  136. typedef /* [context_handle] */ void *PSYNC_HANDLE_TYPE;
  137. /* client prototype */
  138. int RegisterServiceRpc(
  139. /* [out] */ PCONTEXT_HANDLE_TYPE *pphContext,
  140. /* [in] */ SSDP_MESSAGE svc,
  141. /* [in] */ DWORD flags);
  142. /* server prototype */
  143. int _RegisterServiceRpc(
  144. /* [out] */ PCONTEXT_HANDLE_TYPE *pphContext,
  145. /* [in] */ SSDP_MESSAGE svc,
  146. /* [in] */ DWORD flags);
  147. /* client prototype */
  148. int DeregisterServiceRpcByUSN(
  149. /* [string][in] */ LPSTR szUSN,
  150. /* [in] */ BOOL fByebye);
  151. /* server prototype */
  152. int _DeregisterServiceRpcByUSN(
  153. /* [string][in] */ LPSTR szUSN,
  154. /* [in] */ BOOL fByebye);
  155. /* client prototype */
  156. int DeregisterServiceRpc(
  157. /* [out][in] */ PCONTEXT_HANDLE_TYPE *pphContext,
  158. /* [in] */ BOOL fByebye);
  159. /* server prototype */
  160. int _DeregisterServiceRpc(
  161. /* [out][in] */ PCONTEXT_HANDLE_TYPE *pphContext,
  162. /* [in] */ BOOL fByebye);
  163. /* client prototype */
  164. void UpdateCacheRpc(
  165. /* [unique][in] */ PSSDP_REQUEST SsdpRequest);
  166. /* server prototype */
  167. void _UpdateCacheRpc(
  168. /* [unique][in] */ PSSDP_REQUEST SsdpRequest);
  169. /* client prototype */
  170. int LookupCacheRpc(
  171. /* [string][in] */ LPSTR szType,
  172. /* [out] */ MessageList **svcList);
  173. /* server prototype */
  174. int _LookupCacheRpc(
  175. /* [string][in] */ LPSTR szType,
  176. /* [out] */ MessageList **svcList);
  177. /* client prototype */
  178. void CleanupCacheRpc( void);
  179. /* server prototype */
  180. void _CleanupCacheRpc( void);
  181. /* client prototype */
  182. int InitializeSyncHandle(
  183. /* [out] */ PSYNC_HANDLE_TYPE *pphContextSync);
  184. /* server prototype */
  185. int _InitializeSyncHandle(
  186. /* [out] */ PSYNC_HANDLE_TYPE *pphContextSync);
  187. /* client prototype */
  188. void RemoveSyncHandle(
  189. /* [out][in] */ PSYNC_HANDLE_TYPE *pphContextSync);
  190. /* server prototype */
  191. void _RemoveSyncHandle(
  192. /* [out][in] */ PSYNC_HANDLE_TYPE *pphContextSync);
  193. /* client prototype */
  194. int RegisterNotificationRpc(
  195. /* [out] */ PCONTEXT_HANDLE_TYPE *pphContext,
  196. /* [in] */ PSYNC_HANDLE_TYPE phContextSync,
  197. /* [in] */ NOTIFY_TYPE nt,
  198. /* [string][unique][in] */ LPSTR szType,
  199. /* [string][unique][in] */ LPSTR szEventUrl,
  200. /* [out] */ SSDP_REGISTER_INFO **ppinfo);
  201. /* server prototype */
  202. int _RegisterNotificationRpc(
  203. /* [out] */ PCONTEXT_HANDLE_TYPE *pphContext,
  204. /* [in] */ PSYNC_HANDLE_TYPE phContextSync,
  205. /* [in] */ NOTIFY_TYPE nt,
  206. /* [string][unique][in] */ LPSTR szType,
  207. /* [string][unique][in] */ LPSTR szEventUrl,
  208. /* [out] */ SSDP_REGISTER_INFO **ppinfo);
  209. /* client prototype */
  210. int GetNotificationRpc(
  211. /* [in] */ PSYNC_HANDLE_TYPE pphContextSync,
  212. /* [out] */ MessageList **svcList);
  213. /* server prototype */
  214. int _GetNotificationRpc(
  215. /* [in] */ PSYNC_HANDLE_TYPE pphContextSync,
  216. /* [out] */ MessageList **svcList);
  217. /* client prototype */
  218. int WakeupGetNotificationRpc(
  219. /* [in] */ PSYNC_HANDLE_TYPE pphContextSync);
  220. /* server prototype */
  221. int _WakeupGetNotificationRpc(
  222. /* [in] */ PSYNC_HANDLE_TYPE pphContextSync);
  223. /* client prototype */
  224. int DeregisterNotificationRpc(
  225. /* [out][in] */ PCONTEXT_HANDLE_TYPE *pphContext,
  226. /* [in] */ BOOL fLast);
  227. /* server prototype */
  228. int _DeregisterNotificationRpc(
  229. /* [out][in] */ PCONTEXT_HANDLE_TYPE *pphContext,
  230. /* [in] */ BOOL fLast);
  231. /* client prototype */
  232. void EnableDeviceHost( void);
  233. /* server prototype */
  234. void _EnableDeviceHost( void);
  235. /* client prototype */
  236. void DisableDeviceHost( void);
  237. /* server prototype */
  238. void _DisableDeviceHost( void);
  239. /* client prototype */
  240. void SetICSInterfaces(
  241. /* [in] */ long nCount,
  242. /* [size_is][in] */ GUID *arInterfaces);
  243. /* server prototype */
  244. void _SetICSInterfaces(
  245. /* [in] */ long nCount,
  246. /* [size_is][in] */ GUID *arInterfaces);
  247. /* client prototype */
  248. void SetICSOff( void);
  249. /* server prototype */
  250. void _SetICSOff( void);
  251. /* client prototype */
  252. void HelloProc(
  253. /* [string][in] */ LPSTR pszString);
  254. /* server prototype */
  255. void _HelloProc(
  256. /* [string][in] */ LPSTR pszString);
  257. /* client prototype */
  258. void Shutdown( void);
  259. /* server prototype */
  260. void _Shutdown( void);
  261. extern RPC_IF_HANDLE ssdpsrv_v1_0_c_ifspec;
  262. extern RPC_IF_HANDLE _ssdpsrv_v1_0_s_ifspec;
  263. #endif /* __ssdpsrv_INTERFACE_DEFINED__ */
  264. /* Additional Prototypes for ALL interfaces */
  265. void __RPC_USER PCONTEXT_HANDLE_TYPE_rundown( PCONTEXT_HANDLE_TYPE );
  266. void __RPC_USER PSYNC_HANDLE_TYPE_rundown( PSYNC_HANDLE_TYPE );
  267. /* end of Additional Prototypes */
  268. #ifdef __cplusplus
  269. }
  270. #endif
  271. #endif