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.

4313 lines
138 KiB

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for netcon.idl:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext, robust
  6. error checks: allocation ref bounds_check enum stub_data
  7. VC __declspec() decoration level:
  8. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  9. DECLSPEC_UUID(), MIDL_INTERFACE()
  10. */
  11. //@@MIDL_FILE_HEADING( )
  12. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  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 COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __netcon_h__
  27. #define __netcon_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IEnumNetConnection_FWD_DEFINED__
  33. #define __IEnumNetConnection_FWD_DEFINED__
  34. typedef interface IEnumNetConnection IEnumNetConnection;
  35. #endif /* __IEnumNetConnection_FWD_DEFINED__ */
  36. #ifndef __INetConnection_FWD_DEFINED__
  37. #define __INetConnection_FWD_DEFINED__
  38. typedef interface INetConnection INetConnection;
  39. #endif /* __INetConnection_FWD_DEFINED__ */
  40. #ifndef __INetConnectionManager_FWD_DEFINED__
  41. #define __INetConnectionManager_FWD_DEFINED__
  42. typedef interface INetConnectionManager INetConnectionManager;
  43. #endif /* __INetConnectionManager_FWD_DEFINED__ */
  44. #ifndef __INetConnectionManagerEvents_FWD_DEFINED__
  45. #define __INetConnectionManagerEvents_FWD_DEFINED__
  46. typedef interface INetConnectionManagerEvents INetConnectionManagerEvents;
  47. #endif /* __INetConnectionManagerEvents_FWD_DEFINED__ */
  48. #ifndef __INetConnectionConnectUi_FWD_DEFINED__
  49. #define __INetConnectionConnectUi_FWD_DEFINED__
  50. typedef interface INetConnectionConnectUi INetConnectionConnectUi;
  51. #endif /* __INetConnectionConnectUi_FWD_DEFINED__ */
  52. #ifndef __INetConnectionPropertyUi_FWD_DEFINED__
  53. #define __INetConnectionPropertyUi_FWD_DEFINED__
  54. typedef interface INetConnectionPropertyUi INetConnectionPropertyUi;
  55. #endif /* __INetConnectionPropertyUi_FWD_DEFINED__ */
  56. #ifndef __INetConnectionPropertyUi2_FWD_DEFINED__
  57. #define __INetConnectionPropertyUi2_FWD_DEFINED__
  58. typedef interface INetConnectionPropertyUi2 INetConnectionPropertyUi2;
  59. #endif /* __INetConnectionPropertyUi2_FWD_DEFINED__ */
  60. #ifndef __INetConnectionCommonUi_FWD_DEFINED__
  61. #define __INetConnectionCommonUi_FWD_DEFINED__
  62. typedef interface INetConnectionCommonUi INetConnectionCommonUi;
  63. #endif /* __INetConnectionCommonUi_FWD_DEFINED__ */
  64. #ifndef __IEnumNetSharingPortMapping_FWD_DEFINED__
  65. #define __IEnumNetSharingPortMapping_FWD_DEFINED__
  66. typedef interface IEnumNetSharingPortMapping IEnumNetSharingPortMapping;
  67. #endif /* __IEnumNetSharingPortMapping_FWD_DEFINED__ */
  68. #ifndef __INetSharingPortMappingProps_FWD_DEFINED__
  69. #define __INetSharingPortMappingProps_FWD_DEFINED__
  70. typedef interface INetSharingPortMappingProps INetSharingPortMappingProps;
  71. #endif /* __INetSharingPortMappingProps_FWD_DEFINED__ */
  72. #ifndef __INetSharingPortMapping_FWD_DEFINED__
  73. #define __INetSharingPortMapping_FWD_DEFINED__
  74. typedef interface INetSharingPortMapping INetSharingPortMapping;
  75. #endif /* __INetSharingPortMapping_FWD_DEFINED__ */
  76. #ifndef __IEnumNetSharingEveryConnection_FWD_DEFINED__
  77. #define __IEnumNetSharingEveryConnection_FWD_DEFINED__
  78. typedef interface IEnumNetSharingEveryConnection IEnumNetSharingEveryConnection;
  79. #endif /* __IEnumNetSharingEveryConnection_FWD_DEFINED__ */
  80. #ifndef __IEnumNetSharingPublicConnection_FWD_DEFINED__
  81. #define __IEnumNetSharingPublicConnection_FWD_DEFINED__
  82. typedef interface IEnumNetSharingPublicConnection IEnumNetSharingPublicConnection;
  83. #endif /* __IEnumNetSharingPublicConnection_FWD_DEFINED__ */
  84. #ifndef __IEnumNetSharingPrivateConnection_FWD_DEFINED__
  85. #define __IEnumNetSharingPrivateConnection_FWD_DEFINED__
  86. typedef interface IEnumNetSharingPrivateConnection IEnumNetSharingPrivateConnection;
  87. #endif /* __IEnumNetSharingPrivateConnection_FWD_DEFINED__ */
  88. #ifndef __INetSharingPortMappingCollection_FWD_DEFINED__
  89. #define __INetSharingPortMappingCollection_FWD_DEFINED__
  90. typedef interface INetSharingPortMappingCollection INetSharingPortMappingCollection;
  91. #endif /* __INetSharingPortMappingCollection_FWD_DEFINED__ */
  92. #ifndef __INetConnectionProps_FWD_DEFINED__
  93. #define __INetConnectionProps_FWD_DEFINED__
  94. typedef interface INetConnectionProps INetConnectionProps;
  95. #endif /* __INetConnectionProps_FWD_DEFINED__ */
  96. #ifndef __INetSharingConfiguration_FWD_DEFINED__
  97. #define __INetSharingConfiguration_FWD_DEFINED__
  98. typedef interface INetSharingConfiguration INetSharingConfiguration;
  99. #endif /* __INetSharingConfiguration_FWD_DEFINED__ */
  100. #ifndef __INetSharingEveryConnectionCollection_FWD_DEFINED__
  101. #define __INetSharingEveryConnectionCollection_FWD_DEFINED__
  102. typedef interface INetSharingEveryConnectionCollection INetSharingEveryConnectionCollection;
  103. #endif /* __INetSharingEveryConnectionCollection_FWD_DEFINED__ */
  104. #ifndef __INetSharingPublicConnectionCollection_FWD_DEFINED__
  105. #define __INetSharingPublicConnectionCollection_FWD_DEFINED__
  106. typedef interface INetSharingPublicConnectionCollection INetSharingPublicConnectionCollection;
  107. #endif /* __INetSharingPublicConnectionCollection_FWD_DEFINED__ */
  108. #ifndef __INetSharingPrivateConnectionCollection_FWD_DEFINED__
  109. #define __INetSharingPrivateConnectionCollection_FWD_DEFINED__
  110. typedef interface INetSharingPrivateConnectionCollection INetSharingPrivateConnectionCollection;
  111. #endif /* __INetSharingPrivateConnectionCollection_FWD_DEFINED__ */
  112. #ifndef __INetSharingManager_FWD_DEFINED__
  113. #define __INetSharingManager_FWD_DEFINED__
  114. typedef interface INetSharingManager INetSharingManager;
  115. #endif /* __INetSharingManager_FWD_DEFINED__ */
  116. #ifndef __IAlgSetup_FWD_DEFINED__
  117. #define __IAlgSetup_FWD_DEFINED__
  118. typedef interface IAlgSetup IAlgSetup;
  119. #endif /* __IAlgSetup_FWD_DEFINED__ */
  120. #ifndef __NetSharingManager_FWD_DEFINED__
  121. #define __NetSharingManager_FWD_DEFINED__
  122. #ifdef __cplusplus
  123. typedef class NetSharingManager NetSharingManager;
  124. #else
  125. typedef struct NetSharingManager NetSharingManager;
  126. #endif /* __cplusplus */
  127. #endif /* __NetSharingManager_FWD_DEFINED__ */
  128. #ifndef __AlgSetup_FWD_DEFINED__
  129. #define __AlgSetup_FWD_DEFINED__
  130. #ifdef __cplusplus
  131. typedef class AlgSetup AlgSetup;
  132. #else
  133. typedef struct AlgSetup AlgSetup;
  134. #endif /* __cplusplus */
  135. #endif /* __AlgSetup_FWD_DEFINED__ */
  136. /* header files for imported files */
  137. #include "oaidl.h"
  138. #include "prsht.h"
  139. #ifdef __cplusplus
  140. extern "C"{
  141. #endif
  142. void * __RPC_USER MIDL_user_allocate(size_t);
  143. void __RPC_USER MIDL_user_free( void * );
  144. /* interface __MIDL_itf_netcon_0000 */
  145. /* [local] */
  146. //+-------------------------------------------------------------------------
  147. //
  148. // Microsoft Windows
  149. // Copyright (c) Microsoft Corporation. All rights reserved.
  150. //
  151. //--------------------------------------------------------------------------
  152. #if ( _MSC_VER >= 800 )
  153. #pragma warning(disable:4201)
  154. #endif
  155. EXTERN_C const CLSID CLSID_ConnectionManager;
  156. EXTERN_C const CLSID CLSID_ConnectionCommonUi;
  157. EXTERN_C const CLSID CLSID_NetSharingManager;
  158. //These strings reference the HKEY_CURRENT_USER registry which
  159. //retains whether shortcuts are created on the desktop.
  160. #define NETCON_HKEYCURRENTUSERPATH TEXT("Software\\Microsoft\\Windows NT\\CurrentVersion\\Network\\Network Connections")
  161. #define NETCON_DESKTOPSHORTCUT TEXT("DesktopShortcut")
  162. #define NETCON_MAX_NAME_LEN 256
  163. extern RPC_IF_HANDLE __MIDL_itf_netcon_0000_v0_0_c_ifspec;
  164. extern RPC_IF_HANDLE __MIDL_itf_netcon_0000_v0_0_s_ifspec;
  165. #ifndef __IEnumNetConnection_INTERFACE_DEFINED__
  166. #define __IEnumNetConnection_INTERFACE_DEFINED__
  167. /* interface IEnumNetConnection */
  168. /* [unique][uuid][object] */
  169. EXTERN_C const IID IID_IEnumNetConnection;
  170. #if defined(__cplusplus) && !defined(CINTERFACE)
  171. MIDL_INTERFACE("C08956A0-1CD3-11D1-B1C5-00805FC1270E")
  172. IEnumNetConnection : public IUnknown
  173. {
  174. public:
  175. virtual HRESULT STDMETHODCALLTYPE Next(
  176. /* [in] */ ULONG celt,
  177. /* [length_is][size_is][out] */ INetConnection **rgelt,
  178. /* [out] */ ULONG *pceltFetched) = 0;
  179. virtual HRESULT STDMETHODCALLTYPE Skip(
  180. /* [in] */ ULONG celt) = 0;
  181. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  182. virtual HRESULT STDMETHODCALLTYPE Clone(
  183. /* [out] */ IEnumNetConnection **ppenum) = 0;
  184. };
  185. #else /* C style interface */
  186. typedef struct IEnumNetConnectionVtbl
  187. {
  188. BEGIN_INTERFACE
  189. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  190. IEnumNetConnection * This,
  191. /* [in] */ REFIID riid,
  192. /* [iid_is][out] */ void **ppvObject);
  193. ULONG ( STDMETHODCALLTYPE *AddRef )(
  194. IEnumNetConnection * This);
  195. ULONG ( STDMETHODCALLTYPE *Release )(
  196. IEnumNetConnection * This);
  197. HRESULT ( STDMETHODCALLTYPE *Next )(
  198. IEnumNetConnection * This,
  199. /* [in] */ ULONG celt,
  200. /* [length_is][size_is][out] */ INetConnection **rgelt,
  201. /* [out] */ ULONG *pceltFetched);
  202. HRESULT ( STDMETHODCALLTYPE *Skip )(
  203. IEnumNetConnection * This,
  204. /* [in] */ ULONG celt);
  205. HRESULT ( STDMETHODCALLTYPE *Reset )(
  206. IEnumNetConnection * This);
  207. HRESULT ( STDMETHODCALLTYPE *Clone )(
  208. IEnumNetConnection * This,
  209. /* [out] */ IEnumNetConnection **ppenum);
  210. END_INTERFACE
  211. } IEnumNetConnectionVtbl;
  212. interface IEnumNetConnection
  213. {
  214. CONST_VTBL struct IEnumNetConnectionVtbl *lpVtbl;
  215. };
  216. #ifdef COBJMACROS
  217. #define IEnumNetConnection_QueryInterface(This,riid,ppvObject) \
  218. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  219. #define IEnumNetConnection_AddRef(This) \
  220. (This)->lpVtbl -> AddRef(This)
  221. #define IEnumNetConnection_Release(This) \
  222. (This)->lpVtbl -> Release(This)
  223. #define IEnumNetConnection_Next(This,celt,rgelt,pceltFetched) \
  224. (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched)
  225. #define IEnumNetConnection_Skip(This,celt) \
  226. (This)->lpVtbl -> Skip(This,celt)
  227. #define IEnumNetConnection_Reset(This) \
  228. (This)->lpVtbl -> Reset(This)
  229. #define IEnumNetConnection_Clone(This,ppenum) \
  230. (This)->lpVtbl -> Clone(This,ppenum)
  231. #endif /* COBJMACROS */
  232. #endif /* C style interface */
  233. HRESULT STDMETHODCALLTYPE IEnumNetConnection_Next_Proxy(
  234. IEnumNetConnection * This,
  235. /* [in] */ ULONG celt,
  236. /* [length_is][size_is][out] */ INetConnection **rgelt,
  237. /* [out] */ ULONG *pceltFetched);
  238. void __RPC_STUB IEnumNetConnection_Next_Stub(
  239. IRpcStubBuffer *This,
  240. IRpcChannelBuffer *_pRpcChannelBuffer,
  241. PRPC_MESSAGE _pRpcMessage,
  242. DWORD *_pdwStubPhase);
  243. HRESULT STDMETHODCALLTYPE IEnumNetConnection_Skip_Proxy(
  244. IEnumNetConnection * This,
  245. /* [in] */ ULONG celt);
  246. void __RPC_STUB IEnumNetConnection_Skip_Stub(
  247. IRpcStubBuffer *This,
  248. IRpcChannelBuffer *_pRpcChannelBuffer,
  249. PRPC_MESSAGE _pRpcMessage,
  250. DWORD *_pdwStubPhase);
  251. HRESULT STDMETHODCALLTYPE IEnumNetConnection_Reset_Proxy(
  252. IEnumNetConnection * This);
  253. void __RPC_STUB IEnumNetConnection_Reset_Stub(
  254. IRpcStubBuffer *This,
  255. IRpcChannelBuffer *_pRpcChannelBuffer,
  256. PRPC_MESSAGE _pRpcMessage,
  257. DWORD *_pdwStubPhase);
  258. HRESULT STDMETHODCALLTYPE IEnumNetConnection_Clone_Proxy(
  259. IEnumNetConnection * This,
  260. /* [out] */ IEnumNetConnection **ppenum);
  261. void __RPC_STUB IEnumNetConnection_Clone_Stub(
  262. IRpcStubBuffer *This,
  263. IRpcChannelBuffer *_pRpcChannelBuffer,
  264. PRPC_MESSAGE _pRpcMessage,
  265. DWORD *_pdwStubPhase);
  266. #endif /* __IEnumNetConnection_INTERFACE_DEFINED__ */
  267. #ifndef __INetConnection_INTERFACE_DEFINED__
  268. #define __INetConnection_INTERFACE_DEFINED__
  269. /* interface INetConnection */
  270. /* [unique][uuid][object] */
  271. typedef
  272. enum tagNETCON_CHARACTERISTIC_FLAGS
  273. { NCCF_NONE = 0,
  274. NCCF_ALL_USERS = 0x1,
  275. NCCF_ALLOW_DUPLICATION = 0x2,
  276. NCCF_ALLOW_REMOVAL = 0x4,
  277. NCCF_ALLOW_RENAME = 0x8,
  278. NCCF_SHOW_ICON = 0x10,
  279. NCCF_INCOMING_ONLY = 0x20,
  280. NCCF_OUTGOING_ONLY = 0x40,
  281. NCCF_BRANDED = 0x80,
  282. NCCF_SHARED = 0x100,
  283. NCCF_BRIDGED = 0x200,
  284. NCCF_FIREWALLED = 0x400,
  285. NCCF_DEFAULT = 0x800
  286. } NETCON_CHARACTERISTIC_FLAGS;
  287. typedef
  288. enum tagNETCON_STATUS
  289. { NCS_DISCONNECTED = 0,
  290. NCS_CONNECTING = NCS_DISCONNECTED + 1,
  291. NCS_CONNECTED = NCS_CONNECTING + 1,
  292. NCS_DISCONNECTING = NCS_CONNECTED + 1,
  293. NCS_HARDWARE_NOT_PRESENT = NCS_DISCONNECTING + 1,
  294. NCS_HARDWARE_DISABLED = NCS_HARDWARE_NOT_PRESENT + 1,
  295. NCS_HARDWARE_MALFUNCTION = NCS_HARDWARE_DISABLED + 1,
  296. NCS_MEDIA_DISCONNECTED = NCS_HARDWARE_MALFUNCTION + 1,
  297. NCS_AUTHENTICATING = NCS_MEDIA_DISCONNECTED + 1,
  298. NCS_AUTHENTICATION_SUCCEEDED = NCS_AUTHENTICATING + 1,
  299. NCS_AUTHENTICATION_FAILED = NCS_AUTHENTICATION_SUCCEEDED + 1,
  300. NCS_INVALID_ADDRESS = NCS_AUTHENTICATION_FAILED + 1,
  301. NCS_CREDENTIALS_REQUIRED = NCS_INVALID_ADDRESS + 1
  302. } NETCON_STATUS;
  303. typedef
  304. enum tagNETCON_TYPE
  305. { NCT_DIRECT_CONNECT = 0,
  306. NCT_INBOUND = NCT_DIRECT_CONNECT + 1,
  307. NCT_INTERNET = NCT_INBOUND + 1,
  308. NCT_LAN = NCT_INTERNET + 1,
  309. NCT_PHONE = NCT_LAN + 1,
  310. NCT_TUNNEL = NCT_PHONE + 1,
  311. NCT_BRIDGE = NCT_TUNNEL + 1
  312. } NETCON_TYPE;
  313. typedef
  314. enum tagNETCON_MEDIATYPE
  315. { NCM_NONE = 0,
  316. NCM_DIRECT = NCM_NONE + 1,
  317. NCM_ISDN = NCM_DIRECT + 1,
  318. NCM_LAN = NCM_ISDN + 1,
  319. NCM_PHONE = NCM_LAN + 1,
  320. NCM_TUNNEL = NCM_PHONE + 1,
  321. NCM_PPPOE = NCM_TUNNEL + 1,
  322. NCM_BRIDGE = NCM_PPPOE + 1,
  323. NCM_SHAREDACCESSHOST_LAN = NCM_BRIDGE + 1,
  324. NCM_SHAREDACCESSHOST_RAS = NCM_SHAREDACCESSHOST_LAN + 1
  325. } NETCON_MEDIATYPE;
  326. typedef struct tagNETCON_PROPERTIES
  327. {
  328. GUID guidId;
  329. /* [string] */ LPWSTR pszwName;
  330. /* [string] */ LPWSTR pszwDeviceName;
  331. NETCON_STATUS Status;
  332. NETCON_MEDIATYPE MediaType;
  333. DWORD dwCharacter;
  334. CLSID clsidThisObject;
  335. CLSID clsidUiObject;
  336. } NETCON_PROPERTIES;
  337. #define S_OBJECT_NO_LONGER_VALID ((HRESULT)0x00000002L)
  338. EXTERN_C const IID IID_INetConnection;
  339. #if defined(__cplusplus) && !defined(CINTERFACE)
  340. MIDL_INTERFACE("C08956A1-1CD3-11D1-B1C5-00805FC1270E")
  341. INetConnection : public IUnknown
  342. {
  343. public:
  344. virtual HRESULT STDMETHODCALLTYPE Connect( void) = 0;
  345. virtual HRESULT STDMETHODCALLTYPE Disconnect( void) = 0;
  346. virtual HRESULT STDMETHODCALLTYPE Delete( void) = 0;
  347. virtual HRESULT STDMETHODCALLTYPE Duplicate(
  348. /* [string][in] */ LPCWSTR pszwDuplicateName,
  349. /* [out] */ INetConnection **ppCon) = 0;
  350. virtual HRESULT STDMETHODCALLTYPE GetProperties(
  351. /* [out] */ NETCON_PROPERTIES **ppProps) = 0;
  352. virtual HRESULT STDMETHODCALLTYPE GetUiObjectClassId(
  353. /* [ref][out] */ CLSID *pclsid) = 0;
  354. virtual HRESULT STDMETHODCALLTYPE Rename(
  355. /* [string][in] */ LPCWSTR pszwNewName) = 0;
  356. };
  357. #else /* C style interface */
  358. typedef struct INetConnectionVtbl
  359. {
  360. BEGIN_INTERFACE
  361. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  362. INetConnection * This,
  363. /* [in] */ REFIID riid,
  364. /* [iid_is][out] */ void **ppvObject);
  365. ULONG ( STDMETHODCALLTYPE *AddRef )(
  366. INetConnection * This);
  367. ULONG ( STDMETHODCALLTYPE *Release )(
  368. INetConnection * This);
  369. HRESULT ( STDMETHODCALLTYPE *Connect )(
  370. INetConnection * This);
  371. HRESULT ( STDMETHODCALLTYPE *Disconnect )(
  372. INetConnection * This);
  373. HRESULT ( STDMETHODCALLTYPE *Delete )(
  374. INetConnection * This);
  375. HRESULT ( STDMETHODCALLTYPE *Duplicate )(
  376. INetConnection * This,
  377. /* [string][in] */ LPCWSTR pszwDuplicateName,
  378. /* [out] */ INetConnection **ppCon);
  379. HRESULT ( STDMETHODCALLTYPE *GetProperties )(
  380. INetConnection * This,
  381. /* [out] */ NETCON_PROPERTIES **ppProps);
  382. HRESULT ( STDMETHODCALLTYPE *GetUiObjectClassId )(
  383. INetConnection * This,
  384. /* [ref][out] */ CLSID *pclsid);
  385. HRESULT ( STDMETHODCALLTYPE *Rename )(
  386. INetConnection * This,
  387. /* [string][in] */ LPCWSTR pszwNewName);
  388. END_INTERFACE
  389. } INetConnectionVtbl;
  390. interface INetConnection
  391. {
  392. CONST_VTBL struct INetConnectionVtbl *lpVtbl;
  393. };
  394. #ifdef COBJMACROS
  395. #define INetConnection_QueryInterface(This,riid,ppvObject) \
  396. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  397. #define INetConnection_AddRef(This) \
  398. (This)->lpVtbl -> AddRef(This)
  399. #define INetConnection_Release(This) \
  400. (This)->lpVtbl -> Release(This)
  401. #define INetConnection_Connect(This) \
  402. (This)->lpVtbl -> Connect(This)
  403. #define INetConnection_Disconnect(This) \
  404. (This)->lpVtbl -> Disconnect(This)
  405. #define INetConnection_Delete(This) \
  406. (This)->lpVtbl -> Delete(This)
  407. #define INetConnection_Duplicate(This,pszwDuplicateName,ppCon) \
  408. (This)->lpVtbl -> Duplicate(This,pszwDuplicateName,ppCon)
  409. #define INetConnection_GetProperties(This,ppProps) \
  410. (This)->lpVtbl -> GetProperties(This,ppProps)
  411. #define INetConnection_GetUiObjectClassId(This,pclsid) \
  412. (This)->lpVtbl -> GetUiObjectClassId(This,pclsid)
  413. #define INetConnection_Rename(This,pszwNewName) \
  414. (This)->lpVtbl -> Rename(This,pszwNewName)
  415. #endif /* COBJMACROS */
  416. #endif /* C style interface */
  417. HRESULT STDMETHODCALLTYPE INetConnection_Connect_Proxy(
  418. INetConnection * This);
  419. void __RPC_STUB INetConnection_Connect_Stub(
  420. IRpcStubBuffer *This,
  421. IRpcChannelBuffer *_pRpcChannelBuffer,
  422. PRPC_MESSAGE _pRpcMessage,
  423. DWORD *_pdwStubPhase);
  424. HRESULT STDMETHODCALLTYPE INetConnection_Disconnect_Proxy(
  425. INetConnection * This);
  426. void __RPC_STUB INetConnection_Disconnect_Stub(
  427. IRpcStubBuffer *This,
  428. IRpcChannelBuffer *_pRpcChannelBuffer,
  429. PRPC_MESSAGE _pRpcMessage,
  430. DWORD *_pdwStubPhase);
  431. HRESULT STDMETHODCALLTYPE INetConnection_Delete_Proxy(
  432. INetConnection * This);
  433. void __RPC_STUB INetConnection_Delete_Stub(
  434. IRpcStubBuffer *This,
  435. IRpcChannelBuffer *_pRpcChannelBuffer,
  436. PRPC_MESSAGE _pRpcMessage,
  437. DWORD *_pdwStubPhase);
  438. HRESULT STDMETHODCALLTYPE INetConnection_Duplicate_Proxy(
  439. INetConnection * This,
  440. /* [string][in] */ LPCWSTR pszwDuplicateName,
  441. /* [out] */ INetConnection **ppCon);
  442. void __RPC_STUB INetConnection_Duplicate_Stub(
  443. IRpcStubBuffer *This,
  444. IRpcChannelBuffer *_pRpcChannelBuffer,
  445. PRPC_MESSAGE _pRpcMessage,
  446. DWORD *_pdwStubPhase);
  447. HRESULT STDMETHODCALLTYPE INetConnection_GetProperties_Proxy(
  448. INetConnection * This,
  449. /* [out] */ NETCON_PROPERTIES **ppProps);
  450. void __RPC_STUB INetConnection_GetProperties_Stub(
  451. IRpcStubBuffer *This,
  452. IRpcChannelBuffer *_pRpcChannelBuffer,
  453. PRPC_MESSAGE _pRpcMessage,
  454. DWORD *_pdwStubPhase);
  455. HRESULT STDMETHODCALLTYPE INetConnection_GetUiObjectClassId_Proxy(
  456. INetConnection * This,
  457. /* [ref][out] */ CLSID *pclsid);
  458. void __RPC_STUB INetConnection_GetUiObjectClassId_Stub(
  459. IRpcStubBuffer *This,
  460. IRpcChannelBuffer *_pRpcChannelBuffer,
  461. PRPC_MESSAGE _pRpcMessage,
  462. DWORD *_pdwStubPhase);
  463. HRESULT STDMETHODCALLTYPE INetConnection_Rename_Proxy(
  464. INetConnection * This,
  465. /* [string][in] */ LPCWSTR pszwNewName);
  466. void __RPC_STUB INetConnection_Rename_Stub(
  467. IRpcStubBuffer *This,
  468. IRpcChannelBuffer *_pRpcChannelBuffer,
  469. PRPC_MESSAGE _pRpcMessage,
  470. DWORD *_pdwStubPhase);
  471. #endif /* __INetConnection_INTERFACE_DEFINED__ */
  472. /* interface __MIDL_itf_netcon_0120 */
  473. /* [local] */
  474. STDAPI_(VOID) NcFreeNetconProperties (NETCON_PROPERTIES* pProps);
  475. STDAPI_(BOOL) NcIsValidConnectionName (PCWSTR pszwName);
  476. extern RPC_IF_HANDLE __MIDL_itf_netcon_0120_v0_0_c_ifspec;
  477. extern RPC_IF_HANDLE __MIDL_itf_netcon_0120_v0_0_s_ifspec;
  478. #ifndef __INetConnectionManager_INTERFACE_DEFINED__
  479. #define __INetConnectionManager_INTERFACE_DEFINED__
  480. /* interface INetConnectionManager */
  481. /* [unique][uuid][object] */
  482. typedef
  483. enum tagNETCONMGR_ENUM_FLAGS
  484. { NCME_DEFAULT = 0
  485. } NETCONMGR_ENUM_FLAGS;
  486. EXTERN_C const IID IID_INetConnectionManager;
  487. #if defined(__cplusplus) && !defined(CINTERFACE)
  488. MIDL_INTERFACE("C08956A2-1CD3-11D1-B1C5-00805FC1270E")
  489. INetConnectionManager : public IUnknown
  490. {
  491. public:
  492. virtual HRESULT STDMETHODCALLTYPE EnumConnections(
  493. /* [in] */ NETCONMGR_ENUM_FLAGS Flags,
  494. /* [out] */ IEnumNetConnection **ppEnum) = 0;
  495. };
  496. #else /* C style interface */
  497. typedef struct INetConnectionManagerVtbl
  498. {
  499. BEGIN_INTERFACE
  500. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  501. INetConnectionManager * This,
  502. /* [in] */ REFIID riid,
  503. /* [iid_is][out] */ void **ppvObject);
  504. ULONG ( STDMETHODCALLTYPE *AddRef )(
  505. INetConnectionManager * This);
  506. ULONG ( STDMETHODCALLTYPE *Release )(
  507. INetConnectionManager * This);
  508. HRESULT ( STDMETHODCALLTYPE *EnumConnections )(
  509. INetConnectionManager * This,
  510. /* [in] */ NETCONMGR_ENUM_FLAGS Flags,
  511. /* [out] */ IEnumNetConnection **ppEnum);
  512. END_INTERFACE
  513. } INetConnectionManagerVtbl;
  514. interface INetConnectionManager
  515. {
  516. CONST_VTBL struct INetConnectionManagerVtbl *lpVtbl;
  517. };
  518. #ifdef COBJMACROS
  519. #define INetConnectionManager_QueryInterface(This,riid,ppvObject) \
  520. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  521. #define INetConnectionManager_AddRef(This) \
  522. (This)->lpVtbl -> AddRef(This)
  523. #define INetConnectionManager_Release(This) \
  524. (This)->lpVtbl -> Release(This)
  525. #define INetConnectionManager_EnumConnections(This,Flags,ppEnum) \
  526. (This)->lpVtbl -> EnumConnections(This,Flags,ppEnum)
  527. #endif /* COBJMACROS */
  528. #endif /* C style interface */
  529. HRESULT STDMETHODCALLTYPE INetConnectionManager_EnumConnections_Proxy(
  530. INetConnectionManager * This,
  531. /* [in] */ NETCONMGR_ENUM_FLAGS Flags,
  532. /* [out] */ IEnumNetConnection **ppEnum);
  533. void __RPC_STUB INetConnectionManager_EnumConnections_Stub(
  534. IRpcStubBuffer *This,
  535. IRpcChannelBuffer *_pRpcChannelBuffer,
  536. PRPC_MESSAGE _pRpcMessage,
  537. DWORD *_pdwStubPhase);
  538. #endif /* __INetConnectionManager_INTERFACE_DEFINED__ */
  539. #ifndef __INetConnectionManagerEvents_INTERFACE_DEFINED__
  540. #define __INetConnectionManagerEvents_INTERFACE_DEFINED__
  541. /* interface INetConnectionManagerEvents */
  542. /* [unique][uuid][object] */
  543. EXTERN_C const IID IID_INetConnectionManagerEvents;
  544. #if defined(__cplusplus) && !defined(CINTERFACE)
  545. MIDL_INTERFACE("C08956BA-1CD3-11D1-B1C5-00805FC1270E")
  546. INetConnectionManagerEvents : public IUnknown
  547. {
  548. public:
  549. virtual HRESULT STDMETHODCALLTYPE RefreshConnections( void) = 0;
  550. virtual HRESULT STDMETHODCALLTYPE Enable( void) = 0;
  551. virtual HRESULT STDMETHODCALLTYPE Disable(
  552. /* [in] */ ULONG ulDisableTimeout) = 0;
  553. };
  554. #else /* C style interface */
  555. typedef struct INetConnectionManagerEventsVtbl
  556. {
  557. BEGIN_INTERFACE
  558. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  559. INetConnectionManagerEvents * This,
  560. /* [in] */ REFIID riid,
  561. /* [iid_is][out] */ void **ppvObject);
  562. ULONG ( STDMETHODCALLTYPE *AddRef )(
  563. INetConnectionManagerEvents * This);
  564. ULONG ( STDMETHODCALLTYPE *Release )(
  565. INetConnectionManagerEvents * This);
  566. HRESULT ( STDMETHODCALLTYPE *RefreshConnections )(
  567. INetConnectionManagerEvents * This);
  568. HRESULT ( STDMETHODCALLTYPE *Enable )(
  569. INetConnectionManagerEvents * This);
  570. HRESULT ( STDMETHODCALLTYPE *Disable )(
  571. INetConnectionManagerEvents * This,
  572. /* [in] */ ULONG ulDisableTimeout);
  573. END_INTERFACE
  574. } INetConnectionManagerEventsVtbl;
  575. interface INetConnectionManagerEvents
  576. {
  577. CONST_VTBL struct INetConnectionManagerEventsVtbl *lpVtbl;
  578. };
  579. #ifdef COBJMACROS
  580. #define INetConnectionManagerEvents_QueryInterface(This,riid,ppvObject) \
  581. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  582. #define INetConnectionManagerEvents_AddRef(This) \
  583. (This)->lpVtbl -> AddRef(This)
  584. #define INetConnectionManagerEvents_Release(This) \
  585. (This)->lpVtbl -> Release(This)
  586. #define INetConnectionManagerEvents_RefreshConnections(This) \
  587. (This)->lpVtbl -> RefreshConnections(This)
  588. #define INetConnectionManagerEvents_Enable(This) \
  589. (This)->lpVtbl -> Enable(This)
  590. #define INetConnectionManagerEvents_Disable(This,ulDisableTimeout) \
  591. (This)->lpVtbl -> Disable(This,ulDisableTimeout)
  592. #endif /* COBJMACROS */
  593. #endif /* C style interface */
  594. HRESULT STDMETHODCALLTYPE INetConnectionManagerEvents_RefreshConnections_Proxy(
  595. INetConnectionManagerEvents * This);
  596. void __RPC_STUB INetConnectionManagerEvents_RefreshConnections_Stub(
  597. IRpcStubBuffer *This,
  598. IRpcChannelBuffer *_pRpcChannelBuffer,
  599. PRPC_MESSAGE _pRpcMessage,
  600. DWORD *_pdwStubPhase);
  601. HRESULT STDMETHODCALLTYPE INetConnectionManagerEvents_Enable_Proxy(
  602. INetConnectionManagerEvents * This);
  603. void __RPC_STUB INetConnectionManagerEvents_Enable_Stub(
  604. IRpcStubBuffer *This,
  605. IRpcChannelBuffer *_pRpcChannelBuffer,
  606. PRPC_MESSAGE _pRpcMessage,
  607. DWORD *_pdwStubPhase);
  608. HRESULT STDMETHODCALLTYPE INetConnectionManagerEvents_Disable_Proxy(
  609. INetConnectionManagerEvents * This,
  610. /* [in] */ ULONG ulDisableTimeout);
  611. void __RPC_STUB INetConnectionManagerEvents_Disable_Stub(
  612. IRpcStubBuffer *This,
  613. IRpcChannelBuffer *_pRpcChannelBuffer,
  614. PRPC_MESSAGE _pRpcMessage,
  615. DWORD *_pdwStubPhase);
  616. #endif /* __INetConnectionManagerEvents_INTERFACE_DEFINED__ */
  617. #ifndef __INetConnectionConnectUi_INTERFACE_DEFINED__
  618. #define __INetConnectionConnectUi_INTERFACE_DEFINED__
  619. /* interface INetConnectionConnectUi */
  620. /* [unique][uuid][object][local] */
  621. typedef
  622. enum tagNETCONUI_CONNECT_FLAGS
  623. { NCUC_DEFAULT = 0,
  624. NCUC_NO_UI = 0x1
  625. } NETCONUI_CONNECT_FLAGS;
  626. EXTERN_C const IID IID_INetConnectionConnectUi;
  627. #if defined(__cplusplus) && !defined(CINTERFACE)
  628. MIDL_INTERFACE("C08956A3-1CD3-11D1-B1C5-00805FC1270E")
  629. INetConnectionConnectUi : public IUnknown
  630. {
  631. public:
  632. virtual HRESULT STDMETHODCALLTYPE SetConnection(
  633. /* [in] */ INetConnection *pCon) = 0;
  634. virtual HRESULT STDMETHODCALLTYPE Connect(
  635. /* [in] */ HWND hwndParent,
  636. /* [in] */ DWORD dwFlags) = 0;
  637. virtual HRESULT STDMETHODCALLTYPE Disconnect(
  638. /* [in] */ HWND hwndParent,
  639. /* [in] */ DWORD dwFlags) = 0;
  640. };
  641. #else /* C style interface */
  642. typedef struct INetConnectionConnectUiVtbl
  643. {
  644. BEGIN_INTERFACE
  645. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  646. INetConnectionConnectUi * This,
  647. /* [in] */ REFIID riid,
  648. /* [iid_is][out] */ void **ppvObject);
  649. ULONG ( STDMETHODCALLTYPE *AddRef )(
  650. INetConnectionConnectUi * This);
  651. ULONG ( STDMETHODCALLTYPE *Release )(
  652. INetConnectionConnectUi * This);
  653. HRESULT ( STDMETHODCALLTYPE *SetConnection )(
  654. INetConnectionConnectUi * This,
  655. /* [in] */ INetConnection *pCon);
  656. HRESULT ( STDMETHODCALLTYPE *Connect )(
  657. INetConnectionConnectUi * This,
  658. /* [in] */ HWND hwndParent,
  659. /* [in] */ DWORD dwFlags);
  660. HRESULT ( STDMETHODCALLTYPE *Disconnect )(
  661. INetConnectionConnectUi * This,
  662. /* [in] */ HWND hwndParent,
  663. /* [in] */ DWORD dwFlags);
  664. END_INTERFACE
  665. } INetConnectionConnectUiVtbl;
  666. interface INetConnectionConnectUi
  667. {
  668. CONST_VTBL struct INetConnectionConnectUiVtbl *lpVtbl;
  669. };
  670. #ifdef COBJMACROS
  671. #define INetConnectionConnectUi_QueryInterface(This,riid,ppvObject) \
  672. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  673. #define INetConnectionConnectUi_AddRef(This) \
  674. (This)->lpVtbl -> AddRef(This)
  675. #define INetConnectionConnectUi_Release(This) \
  676. (This)->lpVtbl -> Release(This)
  677. #define INetConnectionConnectUi_SetConnection(This,pCon) \
  678. (This)->lpVtbl -> SetConnection(This,pCon)
  679. #define INetConnectionConnectUi_Connect(This,hwndParent,dwFlags) \
  680. (This)->lpVtbl -> Connect(This,hwndParent,dwFlags)
  681. #define INetConnectionConnectUi_Disconnect(This,hwndParent,dwFlags) \
  682. (This)->lpVtbl -> Disconnect(This,hwndParent,dwFlags)
  683. #endif /* COBJMACROS */
  684. #endif /* C style interface */
  685. HRESULT STDMETHODCALLTYPE INetConnectionConnectUi_SetConnection_Proxy(
  686. INetConnectionConnectUi * This,
  687. /* [in] */ INetConnection *pCon);
  688. void __RPC_STUB INetConnectionConnectUi_SetConnection_Stub(
  689. IRpcStubBuffer *This,
  690. IRpcChannelBuffer *_pRpcChannelBuffer,
  691. PRPC_MESSAGE _pRpcMessage,
  692. DWORD *_pdwStubPhase);
  693. HRESULT STDMETHODCALLTYPE INetConnectionConnectUi_Connect_Proxy(
  694. INetConnectionConnectUi * This,
  695. /* [in] */ HWND hwndParent,
  696. /* [in] */ DWORD dwFlags);
  697. void __RPC_STUB INetConnectionConnectUi_Connect_Stub(
  698. IRpcStubBuffer *This,
  699. IRpcChannelBuffer *_pRpcChannelBuffer,
  700. PRPC_MESSAGE _pRpcMessage,
  701. DWORD *_pdwStubPhase);
  702. HRESULT STDMETHODCALLTYPE INetConnectionConnectUi_Disconnect_Proxy(
  703. INetConnectionConnectUi * This,
  704. /* [in] */ HWND hwndParent,
  705. /* [in] */ DWORD dwFlags);
  706. void __RPC_STUB INetConnectionConnectUi_Disconnect_Stub(
  707. IRpcStubBuffer *This,
  708. IRpcChannelBuffer *_pRpcChannelBuffer,
  709. PRPC_MESSAGE _pRpcMessage,
  710. DWORD *_pdwStubPhase);
  711. #endif /* __INetConnectionConnectUi_INTERFACE_DEFINED__ */
  712. #ifndef __INetConnectionPropertyUi_INTERFACE_DEFINED__
  713. #define __INetConnectionPropertyUi_INTERFACE_DEFINED__
  714. /* interface INetConnectionPropertyUi */
  715. /* [unique][uuid][object][local] */
  716. EXTERN_C const IID IID_INetConnectionPropertyUi;
  717. #if defined(__cplusplus) && !defined(CINTERFACE)
  718. MIDL_INTERFACE("C08956A4-1CD3-11D1-B1C5-00805FC1270E")
  719. INetConnectionPropertyUi : public IUnknown
  720. {
  721. public:
  722. virtual HRESULT STDMETHODCALLTYPE SetConnection(
  723. /* [in] */ INetConnection *pCon) = 0;
  724. virtual HRESULT STDMETHODCALLTYPE AddPages(
  725. /* [in] */ HWND hwndParent,
  726. /* [in] */ LPFNADDPROPSHEETPAGE pfnAddPage,
  727. /* [in] */ LPARAM lParam) = 0;
  728. };
  729. #else /* C style interface */
  730. typedef struct INetConnectionPropertyUiVtbl
  731. {
  732. BEGIN_INTERFACE
  733. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  734. INetConnectionPropertyUi * This,
  735. /* [in] */ REFIID riid,
  736. /* [iid_is][out] */ void **ppvObject);
  737. ULONG ( STDMETHODCALLTYPE *AddRef )(
  738. INetConnectionPropertyUi * This);
  739. ULONG ( STDMETHODCALLTYPE *Release )(
  740. INetConnectionPropertyUi * This);
  741. HRESULT ( STDMETHODCALLTYPE *SetConnection )(
  742. INetConnectionPropertyUi * This,
  743. /* [in] */ INetConnection *pCon);
  744. HRESULT ( STDMETHODCALLTYPE *AddPages )(
  745. INetConnectionPropertyUi * This,
  746. /* [in] */ HWND hwndParent,
  747. /* [in] */ LPFNADDPROPSHEETPAGE pfnAddPage,
  748. /* [in] */ LPARAM lParam);
  749. END_INTERFACE
  750. } INetConnectionPropertyUiVtbl;
  751. interface INetConnectionPropertyUi
  752. {
  753. CONST_VTBL struct INetConnectionPropertyUiVtbl *lpVtbl;
  754. };
  755. #ifdef COBJMACROS
  756. #define INetConnectionPropertyUi_QueryInterface(This,riid,ppvObject) \
  757. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  758. #define INetConnectionPropertyUi_AddRef(This) \
  759. (This)->lpVtbl -> AddRef(This)
  760. #define INetConnectionPropertyUi_Release(This) \
  761. (This)->lpVtbl -> Release(This)
  762. #define INetConnectionPropertyUi_SetConnection(This,pCon) \
  763. (This)->lpVtbl -> SetConnection(This,pCon)
  764. #define INetConnectionPropertyUi_AddPages(This,hwndParent,pfnAddPage,lParam) \
  765. (This)->lpVtbl -> AddPages(This,hwndParent,pfnAddPage,lParam)
  766. #endif /* COBJMACROS */
  767. #endif /* C style interface */
  768. HRESULT STDMETHODCALLTYPE INetConnectionPropertyUi_SetConnection_Proxy(
  769. INetConnectionPropertyUi * This,
  770. /* [in] */ INetConnection *pCon);
  771. void __RPC_STUB INetConnectionPropertyUi_SetConnection_Stub(
  772. IRpcStubBuffer *This,
  773. IRpcChannelBuffer *_pRpcChannelBuffer,
  774. PRPC_MESSAGE _pRpcMessage,
  775. DWORD *_pdwStubPhase);
  776. HRESULT STDMETHODCALLTYPE INetConnectionPropertyUi_AddPages_Proxy(
  777. INetConnectionPropertyUi * This,
  778. /* [in] */ HWND hwndParent,
  779. /* [in] */ LPFNADDPROPSHEETPAGE pfnAddPage,
  780. /* [in] */ LPARAM lParam);
  781. void __RPC_STUB INetConnectionPropertyUi_AddPages_Stub(
  782. IRpcStubBuffer *This,
  783. IRpcChannelBuffer *_pRpcChannelBuffer,
  784. PRPC_MESSAGE _pRpcMessage,
  785. DWORD *_pdwStubPhase);
  786. #endif /* __INetConnectionPropertyUi_INTERFACE_DEFINED__ */
  787. #ifndef __INetConnectionPropertyUi2_INTERFACE_DEFINED__
  788. #define __INetConnectionPropertyUi2_INTERFACE_DEFINED__
  789. /* interface INetConnectionPropertyUi2 */
  790. /* [unique][uuid][object][local] */
  791. EXTERN_C const IID IID_INetConnectionPropertyUi2;
  792. #if defined(__cplusplus) && !defined(CINTERFACE)
  793. MIDL_INTERFACE("C08956B9-1CD3-11D1-B1C5-00805FC1270E")
  794. INetConnectionPropertyUi2 : public INetConnectionPropertyUi
  795. {
  796. public:
  797. virtual HRESULT STDMETHODCALLTYPE GetIcon(
  798. /* [in] */ DWORD dwSize,
  799. /* [out] */ HICON *phIcon) = 0;
  800. };
  801. #else /* C style interface */
  802. typedef struct INetConnectionPropertyUi2Vtbl
  803. {
  804. BEGIN_INTERFACE
  805. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  806. INetConnectionPropertyUi2 * This,
  807. /* [in] */ REFIID riid,
  808. /* [iid_is][out] */ void **ppvObject);
  809. ULONG ( STDMETHODCALLTYPE *AddRef )(
  810. INetConnectionPropertyUi2 * This);
  811. ULONG ( STDMETHODCALLTYPE *Release )(
  812. INetConnectionPropertyUi2 * This);
  813. HRESULT ( STDMETHODCALLTYPE *SetConnection )(
  814. INetConnectionPropertyUi2 * This,
  815. /* [in] */ INetConnection *pCon);
  816. HRESULT ( STDMETHODCALLTYPE *AddPages )(
  817. INetConnectionPropertyUi2 * This,
  818. /* [in] */ HWND hwndParent,
  819. /* [in] */ LPFNADDPROPSHEETPAGE pfnAddPage,
  820. /* [in] */ LPARAM lParam);
  821. HRESULT ( STDMETHODCALLTYPE *GetIcon )(
  822. INetConnectionPropertyUi2 * This,
  823. /* [in] */ DWORD dwSize,
  824. /* [out] */ HICON *phIcon);
  825. END_INTERFACE
  826. } INetConnectionPropertyUi2Vtbl;
  827. interface INetConnectionPropertyUi2
  828. {
  829. CONST_VTBL struct INetConnectionPropertyUi2Vtbl *lpVtbl;
  830. };
  831. #ifdef COBJMACROS
  832. #define INetConnectionPropertyUi2_QueryInterface(This,riid,ppvObject) \
  833. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  834. #define INetConnectionPropertyUi2_AddRef(This) \
  835. (This)->lpVtbl -> AddRef(This)
  836. #define INetConnectionPropertyUi2_Release(This) \
  837. (This)->lpVtbl -> Release(This)
  838. #define INetConnectionPropertyUi2_SetConnection(This,pCon) \
  839. (This)->lpVtbl -> SetConnection(This,pCon)
  840. #define INetConnectionPropertyUi2_AddPages(This,hwndParent,pfnAddPage,lParam) \
  841. (This)->lpVtbl -> AddPages(This,hwndParent,pfnAddPage,lParam)
  842. #define INetConnectionPropertyUi2_GetIcon(This,dwSize,phIcon) \
  843. (This)->lpVtbl -> GetIcon(This,dwSize,phIcon)
  844. #endif /* COBJMACROS */
  845. #endif /* C style interface */
  846. HRESULT STDMETHODCALLTYPE INetConnectionPropertyUi2_GetIcon_Proxy(
  847. INetConnectionPropertyUi2 * This,
  848. /* [in] */ DWORD dwSize,
  849. /* [out] */ HICON *phIcon);
  850. void __RPC_STUB INetConnectionPropertyUi2_GetIcon_Stub(
  851. IRpcStubBuffer *This,
  852. IRpcChannelBuffer *_pRpcChannelBuffer,
  853. PRPC_MESSAGE _pRpcMessage,
  854. DWORD *_pdwStubPhase);
  855. #endif /* __INetConnectionPropertyUi2_INTERFACE_DEFINED__ */
  856. #ifndef __INetConnectionCommonUi_INTERFACE_DEFINED__
  857. #define __INetConnectionCommonUi_INTERFACE_DEFINED__
  858. /* interface INetConnectionCommonUi */
  859. /* [unique][uuid][object][local] */
  860. typedef
  861. enum tagNETCON_CHOOSEFLAGS
  862. { NCCHF_CONNECT = 0x1,
  863. NCCHF_CAPTION = 0x2,
  864. NCCHF_OKBTTNTEXT = 0x4,
  865. NCCHF_DISABLENEW = 0x8,
  866. NCCHF_AUTOSELECT = 0x10
  867. } NETCON_CHOOSEFLAGS;
  868. typedef
  869. enum tagNETCON_CHOOSETYPE
  870. { NCCHT_DIRECT_CONNECT = 0x1,
  871. NCCHT_LAN = 0x2,
  872. NCCHT_PHONE = 0x4,
  873. NCCHT_TUNNEL = 0x8,
  874. NCCHT_ISDN = 0x10,
  875. NCCHT_ALL = 0x1f
  876. } NETCON_CHOOSETYPE;
  877. typedef struct tagNETCON_CHOOSECONN
  878. {
  879. DWORD lStructSize;
  880. HWND hwndParent;
  881. DWORD dwFlags;
  882. DWORD dwTypeMask;
  883. LPCWSTR lpstrCaption;
  884. LPCWSTR lpstrOkBttnText;
  885. } NETCON_CHOOSECONN;
  886. EXTERN_C const IID IID_INetConnectionCommonUi;
  887. #if defined(__cplusplus) && !defined(CINTERFACE)
  888. MIDL_INTERFACE("C08956A5-1CD3-11D1-B1C5-00805FC1270E")
  889. INetConnectionCommonUi : public IUnknown
  890. {
  891. public:
  892. virtual HRESULT STDMETHODCALLTYPE ChooseConnection(
  893. /* [in] */ NETCON_CHOOSECONN *pChooseConn,
  894. /* [out] */ INetConnection **ppCon) = 0;
  895. virtual HRESULT STDMETHODCALLTYPE ShowConnectionProperties(
  896. /* [in] */ HWND hwndParent,
  897. /* [in] */ INetConnection *pCon) = 0;
  898. virtual HRESULT STDMETHODCALLTYPE StartNewConnectionWizard(
  899. /* [in] */ HWND hwndParent,
  900. /* [out] */ INetConnection **ppCon) = 0;
  901. };
  902. #else /* C style interface */
  903. typedef struct INetConnectionCommonUiVtbl
  904. {
  905. BEGIN_INTERFACE
  906. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  907. INetConnectionCommonUi * This,
  908. /* [in] */ REFIID riid,
  909. /* [iid_is][out] */ void **ppvObject);
  910. ULONG ( STDMETHODCALLTYPE *AddRef )(
  911. INetConnectionCommonUi * This);
  912. ULONG ( STDMETHODCALLTYPE *Release )(
  913. INetConnectionCommonUi * This);
  914. HRESULT ( STDMETHODCALLTYPE *ChooseConnection )(
  915. INetConnectionCommonUi * This,
  916. /* [in] */ NETCON_CHOOSECONN *pChooseConn,
  917. /* [out] */ INetConnection **ppCon);
  918. HRESULT ( STDMETHODCALLTYPE *ShowConnectionProperties )(
  919. INetConnectionCommonUi * This,
  920. /* [in] */ HWND hwndParent,
  921. /* [in] */ INetConnection *pCon);
  922. HRESULT ( STDMETHODCALLTYPE *StartNewConnectionWizard )(
  923. INetConnectionCommonUi * This,
  924. /* [in] */ HWND hwndParent,
  925. /* [out] */ INetConnection **ppCon);
  926. END_INTERFACE
  927. } INetConnectionCommonUiVtbl;
  928. interface INetConnectionCommonUi
  929. {
  930. CONST_VTBL struct INetConnectionCommonUiVtbl *lpVtbl;
  931. };
  932. #ifdef COBJMACROS
  933. #define INetConnectionCommonUi_QueryInterface(This,riid,ppvObject) \
  934. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  935. #define INetConnectionCommonUi_AddRef(This) \
  936. (This)->lpVtbl -> AddRef(This)
  937. #define INetConnectionCommonUi_Release(This) \
  938. (This)->lpVtbl -> Release(This)
  939. #define INetConnectionCommonUi_ChooseConnection(This,pChooseConn,ppCon) \
  940. (This)->lpVtbl -> ChooseConnection(This,pChooseConn,ppCon)
  941. #define INetConnectionCommonUi_ShowConnectionProperties(This,hwndParent,pCon) \
  942. (This)->lpVtbl -> ShowConnectionProperties(This,hwndParent,pCon)
  943. #define INetConnectionCommonUi_StartNewConnectionWizard(This,hwndParent,ppCon) \
  944. (This)->lpVtbl -> StartNewConnectionWizard(This,hwndParent,ppCon)
  945. #endif /* COBJMACROS */
  946. #endif /* C style interface */
  947. HRESULT STDMETHODCALLTYPE INetConnectionCommonUi_ChooseConnection_Proxy(
  948. INetConnectionCommonUi * This,
  949. /* [in] */ NETCON_CHOOSECONN *pChooseConn,
  950. /* [out] */ INetConnection **ppCon);
  951. void __RPC_STUB INetConnectionCommonUi_ChooseConnection_Stub(
  952. IRpcStubBuffer *This,
  953. IRpcChannelBuffer *_pRpcChannelBuffer,
  954. PRPC_MESSAGE _pRpcMessage,
  955. DWORD *_pdwStubPhase);
  956. HRESULT STDMETHODCALLTYPE INetConnectionCommonUi_ShowConnectionProperties_Proxy(
  957. INetConnectionCommonUi * This,
  958. /* [in] */ HWND hwndParent,
  959. /* [in] */ INetConnection *pCon);
  960. void __RPC_STUB INetConnectionCommonUi_ShowConnectionProperties_Stub(
  961. IRpcStubBuffer *This,
  962. IRpcChannelBuffer *_pRpcChannelBuffer,
  963. PRPC_MESSAGE _pRpcMessage,
  964. DWORD *_pdwStubPhase);
  965. HRESULT STDMETHODCALLTYPE INetConnectionCommonUi_StartNewConnectionWizard_Proxy(
  966. INetConnectionCommonUi * This,
  967. /* [in] */ HWND hwndParent,
  968. /* [out] */ INetConnection **ppCon);
  969. void __RPC_STUB INetConnectionCommonUi_StartNewConnectionWizard_Stub(
  970. IRpcStubBuffer *This,
  971. IRpcChannelBuffer *_pRpcChannelBuffer,
  972. PRPC_MESSAGE _pRpcMessage,
  973. DWORD *_pdwStubPhase);
  974. #endif /* __INetConnectionCommonUi_INTERFACE_DEFINED__ */
  975. #ifndef __IEnumNetSharingPortMapping_INTERFACE_DEFINED__
  976. #define __IEnumNetSharingPortMapping_INTERFACE_DEFINED__
  977. /* interface IEnumNetSharingPortMapping */
  978. /* [unique][uuid][object] */
  979. EXTERN_C const IID IID_IEnumNetSharingPortMapping;
  980. #if defined(__cplusplus) && !defined(CINTERFACE)
  981. MIDL_INTERFACE("C08956B0-1CD3-11D1-B1C5-00805FC1270E")
  982. IEnumNetSharingPortMapping : public IUnknown
  983. {
  984. public:
  985. virtual HRESULT STDMETHODCALLTYPE Next(
  986. /* [in] */ ULONG celt,
  987. /* [length_is][size_is][out] */ VARIANT *rgVar,
  988. /* [out] */ ULONG *pceltFetched) = 0;
  989. virtual HRESULT STDMETHODCALLTYPE Skip(
  990. /* [in] */ ULONG celt) = 0;
  991. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  992. virtual HRESULT STDMETHODCALLTYPE Clone(
  993. /* [out] */ IEnumNetSharingPortMapping **ppenum) = 0;
  994. };
  995. #else /* C style interface */
  996. typedef struct IEnumNetSharingPortMappingVtbl
  997. {
  998. BEGIN_INTERFACE
  999. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1000. IEnumNetSharingPortMapping * This,
  1001. /* [in] */ REFIID riid,
  1002. /* [iid_is][out] */ void **ppvObject);
  1003. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1004. IEnumNetSharingPortMapping * This);
  1005. ULONG ( STDMETHODCALLTYPE *Release )(
  1006. IEnumNetSharingPortMapping * This);
  1007. HRESULT ( STDMETHODCALLTYPE *Next )(
  1008. IEnumNetSharingPortMapping * This,
  1009. /* [in] */ ULONG celt,
  1010. /* [length_is][size_is][out] */ VARIANT *rgVar,
  1011. /* [out] */ ULONG *pceltFetched);
  1012. HRESULT ( STDMETHODCALLTYPE *Skip )(
  1013. IEnumNetSharingPortMapping * This,
  1014. /* [in] */ ULONG celt);
  1015. HRESULT ( STDMETHODCALLTYPE *Reset )(
  1016. IEnumNetSharingPortMapping * This);
  1017. HRESULT ( STDMETHODCALLTYPE *Clone )(
  1018. IEnumNetSharingPortMapping * This,
  1019. /* [out] */ IEnumNetSharingPortMapping **ppenum);
  1020. END_INTERFACE
  1021. } IEnumNetSharingPortMappingVtbl;
  1022. interface IEnumNetSharingPortMapping
  1023. {
  1024. CONST_VTBL struct IEnumNetSharingPortMappingVtbl *lpVtbl;
  1025. };
  1026. #ifdef COBJMACROS
  1027. #define IEnumNetSharingPortMapping_QueryInterface(This,riid,ppvObject) \
  1028. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1029. #define IEnumNetSharingPortMapping_AddRef(This) \
  1030. (This)->lpVtbl -> AddRef(This)
  1031. #define IEnumNetSharingPortMapping_Release(This) \
  1032. (This)->lpVtbl -> Release(This)
  1033. #define IEnumNetSharingPortMapping_Next(This,celt,rgVar,pceltFetched) \
  1034. (This)->lpVtbl -> Next(This,celt,rgVar,pceltFetched)
  1035. #define IEnumNetSharingPortMapping_Skip(This,celt) \
  1036. (This)->lpVtbl -> Skip(This,celt)
  1037. #define IEnumNetSharingPortMapping_Reset(This) \
  1038. (This)->lpVtbl -> Reset(This)
  1039. #define IEnumNetSharingPortMapping_Clone(This,ppenum) \
  1040. (This)->lpVtbl -> Clone(This,ppenum)
  1041. #endif /* COBJMACROS */
  1042. #endif /* C style interface */
  1043. HRESULT STDMETHODCALLTYPE IEnumNetSharingPortMapping_Next_Proxy(
  1044. IEnumNetSharingPortMapping * This,
  1045. /* [in] */ ULONG celt,
  1046. /* [length_is][size_is][out] */ VARIANT *rgVar,
  1047. /* [out] */ ULONG *pceltFetched);
  1048. void __RPC_STUB IEnumNetSharingPortMapping_Next_Stub(
  1049. IRpcStubBuffer *This,
  1050. IRpcChannelBuffer *_pRpcChannelBuffer,
  1051. PRPC_MESSAGE _pRpcMessage,
  1052. DWORD *_pdwStubPhase);
  1053. HRESULT STDMETHODCALLTYPE IEnumNetSharingPortMapping_Skip_Proxy(
  1054. IEnumNetSharingPortMapping * This,
  1055. /* [in] */ ULONG celt);
  1056. void __RPC_STUB IEnumNetSharingPortMapping_Skip_Stub(
  1057. IRpcStubBuffer *This,
  1058. IRpcChannelBuffer *_pRpcChannelBuffer,
  1059. PRPC_MESSAGE _pRpcMessage,
  1060. DWORD *_pdwStubPhase);
  1061. HRESULT STDMETHODCALLTYPE IEnumNetSharingPortMapping_Reset_Proxy(
  1062. IEnumNetSharingPortMapping * This);
  1063. void __RPC_STUB IEnumNetSharingPortMapping_Reset_Stub(
  1064. IRpcStubBuffer *This,
  1065. IRpcChannelBuffer *_pRpcChannelBuffer,
  1066. PRPC_MESSAGE _pRpcMessage,
  1067. DWORD *_pdwStubPhase);
  1068. HRESULT STDMETHODCALLTYPE IEnumNetSharingPortMapping_Clone_Proxy(
  1069. IEnumNetSharingPortMapping * This,
  1070. /* [out] */ IEnumNetSharingPortMapping **ppenum);
  1071. void __RPC_STUB IEnumNetSharingPortMapping_Clone_Stub(
  1072. IRpcStubBuffer *This,
  1073. IRpcChannelBuffer *_pRpcChannelBuffer,
  1074. PRPC_MESSAGE _pRpcMessage,
  1075. DWORD *_pdwStubPhase);
  1076. #endif /* __IEnumNetSharingPortMapping_INTERFACE_DEFINED__ */
  1077. #ifndef __INetSharingPortMappingProps_INTERFACE_DEFINED__
  1078. #define __INetSharingPortMappingProps_INTERFACE_DEFINED__
  1079. /* interface INetSharingPortMappingProps */
  1080. /* [unique][dual][oleautomation][uuid][object] */
  1081. EXTERN_C const IID IID_INetSharingPortMappingProps;
  1082. #if defined(__cplusplus) && !defined(CINTERFACE)
  1083. MIDL_INTERFACE("24B7E9B5-E38F-4685-851B-00892CF5F940")
  1084. INetSharingPortMappingProps : public IDispatch
  1085. {
  1086. public:
  1087. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name(
  1088. /* [retval][out] */ BSTR *pbstrName) = 0;
  1089. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IPProtocol(
  1090. /* [retval][out] */ UCHAR *pucIPProt) = 0;
  1091. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExternalPort(
  1092. /* [retval][out] */ long *pusPort) = 0;
  1093. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InternalPort(
  1094. /* [retval][out] */ long *pusPort) = 0;
  1095. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Options(
  1096. /* [retval][out] */ long *pdwOptions) = 0;
  1097. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TargetName(
  1098. /* [retval][out] */ BSTR *pbstrTargetName) = 0;
  1099. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TargetIPAddress(
  1100. /* [retval][out] */ BSTR *pbstrTargetIPAddress) = 0;
  1101. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Enabled(
  1102. /* [retval][out] */ VARIANT_BOOL *pbool) = 0;
  1103. };
  1104. #else /* C style interface */
  1105. typedef struct INetSharingPortMappingPropsVtbl
  1106. {
  1107. BEGIN_INTERFACE
  1108. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1109. INetSharingPortMappingProps * This,
  1110. /* [in] */ REFIID riid,
  1111. /* [iid_is][out] */ void **ppvObject);
  1112. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1113. INetSharingPortMappingProps * This);
  1114. ULONG ( STDMETHODCALLTYPE *Release )(
  1115. INetSharingPortMappingProps * This);
  1116. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  1117. INetSharingPortMappingProps * This,
  1118. /* [out] */ UINT *pctinfo);
  1119. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  1120. INetSharingPortMappingProps * This,
  1121. /* [in] */ UINT iTInfo,
  1122. /* [in] */ LCID lcid,
  1123. /* [out] */ ITypeInfo **ppTInfo);
  1124. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  1125. INetSharingPortMappingProps * This,
  1126. /* [in] */ REFIID riid,
  1127. /* [size_is][in] */ LPOLESTR *rgszNames,
  1128. /* [in] */ UINT cNames,
  1129. /* [in] */ LCID lcid,
  1130. /* [size_is][out] */ DISPID *rgDispId);
  1131. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  1132. INetSharingPortMappingProps * This,
  1133. /* [in] */ DISPID dispIdMember,
  1134. /* [in] */ REFIID riid,
  1135. /* [in] */ LCID lcid,
  1136. /* [in] */ WORD wFlags,
  1137. /* [out][in] */ DISPPARAMS *pDispParams,
  1138. /* [out] */ VARIANT *pVarResult,
  1139. /* [out] */ EXCEPINFO *pExcepInfo,
  1140. /* [out] */ UINT *puArgErr);
  1141. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )(
  1142. INetSharingPortMappingProps * This,
  1143. /* [retval][out] */ BSTR *pbstrName);
  1144. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IPProtocol )(
  1145. INetSharingPortMappingProps * This,
  1146. /* [retval][out] */ UCHAR *pucIPProt);
  1147. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExternalPort )(
  1148. INetSharingPortMappingProps * This,
  1149. /* [retval][out] */ long *pusPort);
  1150. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InternalPort )(
  1151. INetSharingPortMappingProps * This,
  1152. /* [retval][out] */ long *pusPort);
  1153. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Options )(
  1154. INetSharingPortMappingProps * This,
  1155. /* [retval][out] */ long *pdwOptions);
  1156. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TargetName )(
  1157. INetSharingPortMappingProps * This,
  1158. /* [retval][out] */ BSTR *pbstrTargetName);
  1159. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TargetIPAddress )(
  1160. INetSharingPortMappingProps * This,
  1161. /* [retval][out] */ BSTR *pbstrTargetIPAddress);
  1162. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enabled )(
  1163. INetSharingPortMappingProps * This,
  1164. /* [retval][out] */ VARIANT_BOOL *pbool);
  1165. END_INTERFACE
  1166. } INetSharingPortMappingPropsVtbl;
  1167. interface INetSharingPortMappingProps
  1168. {
  1169. CONST_VTBL struct INetSharingPortMappingPropsVtbl *lpVtbl;
  1170. };
  1171. #ifdef COBJMACROS
  1172. #define INetSharingPortMappingProps_QueryInterface(This,riid,ppvObject) \
  1173. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1174. #define INetSharingPortMappingProps_AddRef(This) \
  1175. (This)->lpVtbl -> AddRef(This)
  1176. #define INetSharingPortMappingProps_Release(This) \
  1177. (This)->lpVtbl -> Release(This)
  1178. #define INetSharingPortMappingProps_GetTypeInfoCount(This,pctinfo) \
  1179. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1180. #define INetSharingPortMappingProps_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  1181. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1182. #define INetSharingPortMappingProps_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  1183. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1184. #define INetSharingPortMappingProps_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  1185. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1186. #define INetSharingPortMappingProps_get_Name(This,pbstrName) \
  1187. (This)->lpVtbl -> get_Name(This,pbstrName)
  1188. #define INetSharingPortMappingProps_get_IPProtocol(This,pucIPProt) \
  1189. (This)->lpVtbl -> get_IPProtocol(This,pucIPProt)
  1190. #define INetSharingPortMappingProps_get_ExternalPort(This,pusPort) \
  1191. (This)->lpVtbl -> get_ExternalPort(This,pusPort)
  1192. #define INetSharingPortMappingProps_get_InternalPort(This,pusPort) \
  1193. (This)->lpVtbl -> get_InternalPort(This,pusPort)
  1194. #define INetSharingPortMappingProps_get_Options(This,pdwOptions) \
  1195. (This)->lpVtbl -> get_Options(This,pdwOptions)
  1196. #define INetSharingPortMappingProps_get_TargetName(This,pbstrTargetName) \
  1197. (This)->lpVtbl -> get_TargetName(This,pbstrTargetName)
  1198. #define INetSharingPortMappingProps_get_TargetIPAddress(This,pbstrTargetIPAddress) \
  1199. (This)->lpVtbl -> get_TargetIPAddress(This,pbstrTargetIPAddress)
  1200. #define INetSharingPortMappingProps_get_Enabled(This,pbool) \
  1201. (This)->lpVtbl -> get_Enabled(This,pbool)
  1202. #endif /* COBJMACROS */
  1203. #endif /* C style interface */
  1204. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPortMappingProps_get_Name_Proxy(
  1205. INetSharingPortMappingProps * This,
  1206. /* [retval][out] */ BSTR *pbstrName);
  1207. void __RPC_STUB INetSharingPortMappingProps_get_Name_Stub(
  1208. IRpcStubBuffer *This,
  1209. IRpcChannelBuffer *_pRpcChannelBuffer,
  1210. PRPC_MESSAGE _pRpcMessage,
  1211. DWORD *_pdwStubPhase);
  1212. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPortMappingProps_get_IPProtocol_Proxy(
  1213. INetSharingPortMappingProps * This,
  1214. /* [retval][out] */ UCHAR *pucIPProt);
  1215. void __RPC_STUB INetSharingPortMappingProps_get_IPProtocol_Stub(
  1216. IRpcStubBuffer *This,
  1217. IRpcChannelBuffer *_pRpcChannelBuffer,
  1218. PRPC_MESSAGE _pRpcMessage,
  1219. DWORD *_pdwStubPhase);
  1220. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPortMappingProps_get_ExternalPort_Proxy(
  1221. INetSharingPortMappingProps * This,
  1222. /* [retval][out] */ long *pusPort);
  1223. void __RPC_STUB INetSharingPortMappingProps_get_ExternalPort_Stub(
  1224. IRpcStubBuffer *This,
  1225. IRpcChannelBuffer *_pRpcChannelBuffer,
  1226. PRPC_MESSAGE _pRpcMessage,
  1227. DWORD *_pdwStubPhase);
  1228. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPortMappingProps_get_InternalPort_Proxy(
  1229. INetSharingPortMappingProps * This,
  1230. /* [retval][out] */ long *pusPort);
  1231. void __RPC_STUB INetSharingPortMappingProps_get_InternalPort_Stub(
  1232. IRpcStubBuffer *This,
  1233. IRpcChannelBuffer *_pRpcChannelBuffer,
  1234. PRPC_MESSAGE _pRpcMessage,
  1235. DWORD *_pdwStubPhase);
  1236. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPortMappingProps_get_Options_Proxy(
  1237. INetSharingPortMappingProps * This,
  1238. /* [retval][out] */ long *pdwOptions);
  1239. void __RPC_STUB INetSharingPortMappingProps_get_Options_Stub(
  1240. IRpcStubBuffer *This,
  1241. IRpcChannelBuffer *_pRpcChannelBuffer,
  1242. PRPC_MESSAGE _pRpcMessage,
  1243. DWORD *_pdwStubPhase);
  1244. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPortMappingProps_get_TargetName_Proxy(
  1245. INetSharingPortMappingProps * This,
  1246. /* [retval][out] */ BSTR *pbstrTargetName);
  1247. void __RPC_STUB INetSharingPortMappingProps_get_TargetName_Stub(
  1248. IRpcStubBuffer *This,
  1249. IRpcChannelBuffer *_pRpcChannelBuffer,
  1250. PRPC_MESSAGE _pRpcMessage,
  1251. DWORD *_pdwStubPhase);
  1252. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPortMappingProps_get_TargetIPAddress_Proxy(
  1253. INetSharingPortMappingProps * This,
  1254. /* [retval][out] */ BSTR *pbstrTargetIPAddress);
  1255. void __RPC_STUB INetSharingPortMappingProps_get_TargetIPAddress_Stub(
  1256. IRpcStubBuffer *This,
  1257. IRpcChannelBuffer *_pRpcChannelBuffer,
  1258. PRPC_MESSAGE _pRpcMessage,
  1259. DWORD *_pdwStubPhase);
  1260. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPortMappingProps_get_Enabled_Proxy(
  1261. INetSharingPortMappingProps * This,
  1262. /* [retval][out] */ VARIANT_BOOL *pbool);
  1263. void __RPC_STUB INetSharingPortMappingProps_get_Enabled_Stub(
  1264. IRpcStubBuffer *This,
  1265. IRpcChannelBuffer *_pRpcChannelBuffer,
  1266. PRPC_MESSAGE _pRpcMessage,
  1267. DWORD *_pdwStubPhase);
  1268. #endif /* __INetSharingPortMappingProps_INTERFACE_DEFINED__ */
  1269. #ifndef __INetSharingPortMapping_INTERFACE_DEFINED__
  1270. #define __INetSharingPortMapping_INTERFACE_DEFINED__
  1271. /* interface INetSharingPortMapping */
  1272. /* [unique][dual][oleautomation][uuid][object] */
  1273. EXTERN_C const IID IID_INetSharingPortMapping;
  1274. #if defined(__cplusplus) && !defined(CINTERFACE)
  1275. MIDL_INTERFACE("C08956B1-1CD3-11D1-B1C5-00805FC1270E")
  1276. INetSharingPortMapping : public IDispatch
  1277. {
  1278. public:
  1279. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Disable( void) = 0;
  1280. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Enable( void) = 0;
  1281. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Properties(
  1282. /* [retval][out] */ INetSharingPortMappingProps **ppNSPMP) = 0;
  1283. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( void) = 0;
  1284. };
  1285. #else /* C style interface */
  1286. typedef struct INetSharingPortMappingVtbl
  1287. {
  1288. BEGIN_INTERFACE
  1289. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1290. INetSharingPortMapping * This,
  1291. /* [in] */ REFIID riid,
  1292. /* [iid_is][out] */ void **ppvObject);
  1293. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1294. INetSharingPortMapping * This);
  1295. ULONG ( STDMETHODCALLTYPE *Release )(
  1296. INetSharingPortMapping * This);
  1297. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  1298. INetSharingPortMapping * This,
  1299. /* [out] */ UINT *pctinfo);
  1300. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  1301. INetSharingPortMapping * This,
  1302. /* [in] */ UINT iTInfo,
  1303. /* [in] */ LCID lcid,
  1304. /* [out] */ ITypeInfo **ppTInfo);
  1305. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  1306. INetSharingPortMapping * This,
  1307. /* [in] */ REFIID riid,
  1308. /* [size_is][in] */ LPOLESTR *rgszNames,
  1309. /* [in] */ UINT cNames,
  1310. /* [in] */ LCID lcid,
  1311. /* [size_is][out] */ DISPID *rgDispId);
  1312. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  1313. INetSharingPortMapping * This,
  1314. /* [in] */ DISPID dispIdMember,
  1315. /* [in] */ REFIID riid,
  1316. /* [in] */ LCID lcid,
  1317. /* [in] */ WORD wFlags,
  1318. /* [out][in] */ DISPPARAMS *pDispParams,
  1319. /* [out] */ VARIANT *pVarResult,
  1320. /* [out] */ EXCEPINFO *pExcepInfo,
  1321. /* [out] */ UINT *puArgErr);
  1322. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Disable )(
  1323. INetSharingPortMapping * This);
  1324. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Enable )(
  1325. INetSharingPortMapping * This);
  1326. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )(
  1327. INetSharingPortMapping * This,
  1328. /* [retval][out] */ INetSharingPortMappingProps **ppNSPMP);
  1329. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )(
  1330. INetSharingPortMapping * This);
  1331. END_INTERFACE
  1332. } INetSharingPortMappingVtbl;
  1333. interface INetSharingPortMapping
  1334. {
  1335. CONST_VTBL struct INetSharingPortMappingVtbl *lpVtbl;
  1336. };
  1337. #ifdef COBJMACROS
  1338. #define INetSharingPortMapping_QueryInterface(This,riid,ppvObject) \
  1339. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1340. #define INetSharingPortMapping_AddRef(This) \
  1341. (This)->lpVtbl -> AddRef(This)
  1342. #define INetSharingPortMapping_Release(This) \
  1343. (This)->lpVtbl -> Release(This)
  1344. #define INetSharingPortMapping_GetTypeInfoCount(This,pctinfo) \
  1345. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1346. #define INetSharingPortMapping_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  1347. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1348. #define INetSharingPortMapping_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  1349. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1350. #define INetSharingPortMapping_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  1351. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1352. #define INetSharingPortMapping_Disable(This) \
  1353. (This)->lpVtbl -> Disable(This)
  1354. #define INetSharingPortMapping_Enable(This) \
  1355. (This)->lpVtbl -> Enable(This)
  1356. #define INetSharingPortMapping_get_Properties(This,ppNSPMP) \
  1357. (This)->lpVtbl -> get_Properties(This,ppNSPMP)
  1358. #define INetSharingPortMapping_Delete(This) \
  1359. (This)->lpVtbl -> Delete(This)
  1360. #endif /* COBJMACROS */
  1361. #endif /* C style interface */
  1362. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingPortMapping_Disable_Proxy(
  1363. INetSharingPortMapping * This);
  1364. void __RPC_STUB INetSharingPortMapping_Disable_Stub(
  1365. IRpcStubBuffer *This,
  1366. IRpcChannelBuffer *_pRpcChannelBuffer,
  1367. PRPC_MESSAGE _pRpcMessage,
  1368. DWORD *_pdwStubPhase);
  1369. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingPortMapping_Enable_Proxy(
  1370. INetSharingPortMapping * This);
  1371. void __RPC_STUB INetSharingPortMapping_Enable_Stub(
  1372. IRpcStubBuffer *This,
  1373. IRpcChannelBuffer *_pRpcChannelBuffer,
  1374. PRPC_MESSAGE _pRpcMessage,
  1375. DWORD *_pdwStubPhase);
  1376. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPortMapping_get_Properties_Proxy(
  1377. INetSharingPortMapping * This,
  1378. /* [retval][out] */ INetSharingPortMappingProps **ppNSPMP);
  1379. void __RPC_STUB INetSharingPortMapping_get_Properties_Stub(
  1380. IRpcStubBuffer *This,
  1381. IRpcChannelBuffer *_pRpcChannelBuffer,
  1382. PRPC_MESSAGE _pRpcMessage,
  1383. DWORD *_pdwStubPhase);
  1384. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingPortMapping_Delete_Proxy(
  1385. INetSharingPortMapping * This);
  1386. void __RPC_STUB INetSharingPortMapping_Delete_Stub(
  1387. IRpcStubBuffer *This,
  1388. IRpcChannelBuffer *_pRpcChannelBuffer,
  1389. PRPC_MESSAGE _pRpcMessage,
  1390. DWORD *_pdwStubPhase);
  1391. #endif /* __INetSharingPortMapping_INTERFACE_DEFINED__ */
  1392. #ifndef __IEnumNetSharingEveryConnection_INTERFACE_DEFINED__
  1393. #define __IEnumNetSharingEveryConnection_INTERFACE_DEFINED__
  1394. /* interface IEnumNetSharingEveryConnection */
  1395. /* [unique][uuid][object] */
  1396. EXTERN_C const IID IID_IEnumNetSharingEveryConnection;
  1397. #if defined(__cplusplus) && !defined(CINTERFACE)
  1398. MIDL_INTERFACE("C08956B8-1CD3-11D1-B1C5-00805FC1270E")
  1399. IEnumNetSharingEveryConnection : public IUnknown
  1400. {
  1401. public:
  1402. virtual HRESULT STDMETHODCALLTYPE Next(
  1403. /* [in] */ ULONG celt,
  1404. /* [length_is][size_is][out] */ VARIANT *rgVar,
  1405. /* [out] */ ULONG *pceltFetched) = 0;
  1406. virtual HRESULT STDMETHODCALLTYPE Skip(
  1407. /* [in] */ ULONG celt) = 0;
  1408. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  1409. virtual HRESULT STDMETHODCALLTYPE Clone(
  1410. /* [out] */ IEnumNetSharingEveryConnection **ppenum) = 0;
  1411. };
  1412. #else /* C style interface */
  1413. typedef struct IEnumNetSharingEveryConnectionVtbl
  1414. {
  1415. BEGIN_INTERFACE
  1416. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1417. IEnumNetSharingEveryConnection * This,
  1418. /* [in] */ REFIID riid,
  1419. /* [iid_is][out] */ void **ppvObject);
  1420. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1421. IEnumNetSharingEveryConnection * This);
  1422. ULONG ( STDMETHODCALLTYPE *Release )(
  1423. IEnumNetSharingEveryConnection * This);
  1424. HRESULT ( STDMETHODCALLTYPE *Next )(
  1425. IEnumNetSharingEveryConnection * This,
  1426. /* [in] */ ULONG celt,
  1427. /* [length_is][size_is][out] */ VARIANT *rgVar,
  1428. /* [out] */ ULONG *pceltFetched);
  1429. HRESULT ( STDMETHODCALLTYPE *Skip )(
  1430. IEnumNetSharingEveryConnection * This,
  1431. /* [in] */ ULONG celt);
  1432. HRESULT ( STDMETHODCALLTYPE *Reset )(
  1433. IEnumNetSharingEveryConnection * This);
  1434. HRESULT ( STDMETHODCALLTYPE *Clone )(
  1435. IEnumNetSharingEveryConnection * This,
  1436. /* [out] */ IEnumNetSharingEveryConnection **ppenum);
  1437. END_INTERFACE
  1438. } IEnumNetSharingEveryConnectionVtbl;
  1439. interface IEnumNetSharingEveryConnection
  1440. {
  1441. CONST_VTBL struct IEnumNetSharingEveryConnectionVtbl *lpVtbl;
  1442. };
  1443. #ifdef COBJMACROS
  1444. #define IEnumNetSharingEveryConnection_QueryInterface(This,riid,ppvObject) \
  1445. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1446. #define IEnumNetSharingEveryConnection_AddRef(This) \
  1447. (This)->lpVtbl -> AddRef(This)
  1448. #define IEnumNetSharingEveryConnection_Release(This) \
  1449. (This)->lpVtbl -> Release(This)
  1450. #define IEnumNetSharingEveryConnection_Next(This,celt,rgVar,pceltFetched) \
  1451. (This)->lpVtbl -> Next(This,celt,rgVar,pceltFetched)
  1452. #define IEnumNetSharingEveryConnection_Skip(This,celt) \
  1453. (This)->lpVtbl -> Skip(This,celt)
  1454. #define IEnumNetSharingEveryConnection_Reset(This) \
  1455. (This)->lpVtbl -> Reset(This)
  1456. #define IEnumNetSharingEveryConnection_Clone(This,ppenum) \
  1457. (This)->lpVtbl -> Clone(This,ppenum)
  1458. #endif /* COBJMACROS */
  1459. #endif /* C style interface */
  1460. HRESULT STDMETHODCALLTYPE IEnumNetSharingEveryConnection_Next_Proxy(
  1461. IEnumNetSharingEveryConnection * This,
  1462. /* [in] */ ULONG celt,
  1463. /* [length_is][size_is][out] */ VARIANT *rgVar,
  1464. /* [out] */ ULONG *pceltFetched);
  1465. void __RPC_STUB IEnumNetSharingEveryConnection_Next_Stub(
  1466. IRpcStubBuffer *This,
  1467. IRpcChannelBuffer *_pRpcChannelBuffer,
  1468. PRPC_MESSAGE _pRpcMessage,
  1469. DWORD *_pdwStubPhase);
  1470. HRESULT STDMETHODCALLTYPE IEnumNetSharingEveryConnection_Skip_Proxy(
  1471. IEnumNetSharingEveryConnection * This,
  1472. /* [in] */ ULONG celt);
  1473. void __RPC_STUB IEnumNetSharingEveryConnection_Skip_Stub(
  1474. IRpcStubBuffer *This,
  1475. IRpcChannelBuffer *_pRpcChannelBuffer,
  1476. PRPC_MESSAGE _pRpcMessage,
  1477. DWORD *_pdwStubPhase);
  1478. HRESULT STDMETHODCALLTYPE IEnumNetSharingEveryConnection_Reset_Proxy(
  1479. IEnumNetSharingEveryConnection * This);
  1480. void __RPC_STUB IEnumNetSharingEveryConnection_Reset_Stub(
  1481. IRpcStubBuffer *This,
  1482. IRpcChannelBuffer *_pRpcChannelBuffer,
  1483. PRPC_MESSAGE _pRpcMessage,
  1484. DWORD *_pdwStubPhase);
  1485. HRESULT STDMETHODCALLTYPE IEnumNetSharingEveryConnection_Clone_Proxy(
  1486. IEnumNetSharingEveryConnection * This,
  1487. /* [out] */ IEnumNetSharingEveryConnection **ppenum);
  1488. void __RPC_STUB IEnumNetSharingEveryConnection_Clone_Stub(
  1489. IRpcStubBuffer *This,
  1490. IRpcChannelBuffer *_pRpcChannelBuffer,
  1491. PRPC_MESSAGE _pRpcMessage,
  1492. DWORD *_pdwStubPhase);
  1493. #endif /* __IEnumNetSharingEveryConnection_INTERFACE_DEFINED__ */
  1494. #ifndef __IEnumNetSharingPublicConnection_INTERFACE_DEFINED__
  1495. #define __IEnumNetSharingPublicConnection_INTERFACE_DEFINED__
  1496. /* interface IEnumNetSharingPublicConnection */
  1497. /* [unique][uuid][object] */
  1498. EXTERN_C const IID IID_IEnumNetSharingPublicConnection;
  1499. #if defined(__cplusplus) && !defined(CINTERFACE)
  1500. MIDL_INTERFACE("C08956B4-1CD3-11D1-B1C5-00805FC1270E")
  1501. IEnumNetSharingPublicConnection : public IUnknown
  1502. {
  1503. public:
  1504. virtual HRESULT STDMETHODCALLTYPE Next(
  1505. /* [in] */ ULONG celt,
  1506. /* [length_is][size_is][out] */ VARIANT *rgVar,
  1507. /* [out] */ ULONG *pceltFetched) = 0;
  1508. virtual HRESULT STDMETHODCALLTYPE Skip(
  1509. /* [in] */ ULONG celt) = 0;
  1510. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  1511. virtual HRESULT STDMETHODCALLTYPE Clone(
  1512. /* [out] */ IEnumNetSharingPublicConnection **ppenum) = 0;
  1513. };
  1514. #else /* C style interface */
  1515. typedef struct IEnumNetSharingPublicConnectionVtbl
  1516. {
  1517. BEGIN_INTERFACE
  1518. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1519. IEnumNetSharingPublicConnection * This,
  1520. /* [in] */ REFIID riid,
  1521. /* [iid_is][out] */ void **ppvObject);
  1522. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1523. IEnumNetSharingPublicConnection * This);
  1524. ULONG ( STDMETHODCALLTYPE *Release )(
  1525. IEnumNetSharingPublicConnection * This);
  1526. HRESULT ( STDMETHODCALLTYPE *Next )(
  1527. IEnumNetSharingPublicConnection * This,
  1528. /* [in] */ ULONG celt,
  1529. /* [length_is][size_is][out] */ VARIANT *rgVar,
  1530. /* [out] */ ULONG *pceltFetched);
  1531. HRESULT ( STDMETHODCALLTYPE *Skip )(
  1532. IEnumNetSharingPublicConnection * This,
  1533. /* [in] */ ULONG celt);
  1534. HRESULT ( STDMETHODCALLTYPE *Reset )(
  1535. IEnumNetSharingPublicConnection * This);
  1536. HRESULT ( STDMETHODCALLTYPE *Clone )(
  1537. IEnumNetSharingPublicConnection * This,
  1538. /* [out] */ IEnumNetSharingPublicConnection **ppenum);
  1539. END_INTERFACE
  1540. } IEnumNetSharingPublicConnectionVtbl;
  1541. interface IEnumNetSharingPublicConnection
  1542. {
  1543. CONST_VTBL struct IEnumNetSharingPublicConnectionVtbl *lpVtbl;
  1544. };
  1545. #ifdef COBJMACROS
  1546. #define IEnumNetSharingPublicConnection_QueryInterface(This,riid,ppvObject) \
  1547. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1548. #define IEnumNetSharingPublicConnection_AddRef(This) \
  1549. (This)->lpVtbl -> AddRef(This)
  1550. #define IEnumNetSharingPublicConnection_Release(This) \
  1551. (This)->lpVtbl -> Release(This)
  1552. #define IEnumNetSharingPublicConnection_Next(This,celt,rgVar,pceltFetched) \
  1553. (This)->lpVtbl -> Next(This,celt,rgVar,pceltFetched)
  1554. #define IEnumNetSharingPublicConnection_Skip(This,celt) \
  1555. (This)->lpVtbl -> Skip(This,celt)
  1556. #define IEnumNetSharingPublicConnection_Reset(This) \
  1557. (This)->lpVtbl -> Reset(This)
  1558. #define IEnumNetSharingPublicConnection_Clone(This,ppenum) \
  1559. (This)->lpVtbl -> Clone(This,ppenum)
  1560. #endif /* COBJMACROS */
  1561. #endif /* C style interface */
  1562. HRESULT STDMETHODCALLTYPE IEnumNetSharingPublicConnection_Next_Proxy(
  1563. IEnumNetSharingPublicConnection * This,
  1564. /* [in] */ ULONG celt,
  1565. /* [length_is][size_is][out] */ VARIANT *rgVar,
  1566. /* [out] */ ULONG *pceltFetched);
  1567. void __RPC_STUB IEnumNetSharingPublicConnection_Next_Stub(
  1568. IRpcStubBuffer *This,
  1569. IRpcChannelBuffer *_pRpcChannelBuffer,
  1570. PRPC_MESSAGE _pRpcMessage,
  1571. DWORD *_pdwStubPhase);
  1572. HRESULT STDMETHODCALLTYPE IEnumNetSharingPublicConnection_Skip_Proxy(
  1573. IEnumNetSharingPublicConnection * This,
  1574. /* [in] */ ULONG celt);
  1575. void __RPC_STUB IEnumNetSharingPublicConnection_Skip_Stub(
  1576. IRpcStubBuffer *This,
  1577. IRpcChannelBuffer *_pRpcChannelBuffer,
  1578. PRPC_MESSAGE _pRpcMessage,
  1579. DWORD *_pdwStubPhase);
  1580. HRESULT STDMETHODCALLTYPE IEnumNetSharingPublicConnection_Reset_Proxy(
  1581. IEnumNetSharingPublicConnection * This);
  1582. void __RPC_STUB IEnumNetSharingPublicConnection_Reset_Stub(
  1583. IRpcStubBuffer *This,
  1584. IRpcChannelBuffer *_pRpcChannelBuffer,
  1585. PRPC_MESSAGE _pRpcMessage,
  1586. DWORD *_pdwStubPhase);
  1587. HRESULT STDMETHODCALLTYPE IEnumNetSharingPublicConnection_Clone_Proxy(
  1588. IEnumNetSharingPublicConnection * This,
  1589. /* [out] */ IEnumNetSharingPublicConnection **ppenum);
  1590. void __RPC_STUB IEnumNetSharingPublicConnection_Clone_Stub(
  1591. IRpcStubBuffer *This,
  1592. IRpcChannelBuffer *_pRpcChannelBuffer,
  1593. PRPC_MESSAGE _pRpcMessage,
  1594. DWORD *_pdwStubPhase);
  1595. #endif /* __IEnumNetSharingPublicConnection_INTERFACE_DEFINED__ */
  1596. #ifndef __IEnumNetSharingPrivateConnection_INTERFACE_DEFINED__
  1597. #define __IEnumNetSharingPrivateConnection_INTERFACE_DEFINED__
  1598. /* interface IEnumNetSharingPrivateConnection */
  1599. /* [unique][uuid][object] */
  1600. EXTERN_C const IID IID_IEnumNetSharingPrivateConnection;
  1601. #if defined(__cplusplus) && !defined(CINTERFACE)
  1602. MIDL_INTERFACE("C08956B5-1CD3-11D1-B1C5-00805FC1270E")
  1603. IEnumNetSharingPrivateConnection : public IUnknown
  1604. {
  1605. public:
  1606. virtual HRESULT STDMETHODCALLTYPE Next(
  1607. /* [in] */ ULONG celt,
  1608. /* [length_is][size_is][out] */ VARIANT *rgVar,
  1609. /* [out] */ ULONG *pCeltFetched) = 0;
  1610. virtual HRESULT STDMETHODCALLTYPE Skip(
  1611. /* [in] */ ULONG celt) = 0;
  1612. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  1613. virtual HRESULT STDMETHODCALLTYPE Clone(
  1614. /* [out] */ IEnumNetSharingPrivateConnection **ppenum) = 0;
  1615. };
  1616. #else /* C style interface */
  1617. typedef struct IEnumNetSharingPrivateConnectionVtbl
  1618. {
  1619. BEGIN_INTERFACE
  1620. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1621. IEnumNetSharingPrivateConnection * This,
  1622. /* [in] */ REFIID riid,
  1623. /* [iid_is][out] */ void **ppvObject);
  1624. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1625. IEnumNetSharingPrivateConnection * This);
  1626. ULONG ( STDMETHODCALLTYPE *Release )(
  1627. IEnumNetSharingPrivateConnection * This);
  1628. HRESULT ( STDMETHODCALLTYPE *Next )(
  1629. IEnumNetSharingPrivateConnection * This,
  1630. /* [in] */ ULONG celt,
  1631. /* [length_is][size_is][out] */ VARIANT *rgVar,
  1632. /* [out] */ ULONG *pCeltFetched);
  1633. HRESULT ( STDMETHODCALLTYPE *Skip )(
  1634. IEnumNetSharingPrivateConnection * This,
  1635. /* [in] */ ULONG celt);
  1636. HRESULT ( STDMETHODCALLTYPE *Reset )(
  1637. IEnumNetSharingPrivateConnection * This);
  1638. HRESULT ( STDMETHODCALLTYPE *Clone )(
  1639. IEnumNetSharingPrivateConnection * This,
  1640. /* [out] */ IEnumNetSharingPrivateConnection **ppenum);
  1641. END_INTERFACE
  1642. } IEnumNetSharingPrivateConnectionVtbl;
  1643. interface IEnumNetSharingPrivateConnection
  1644. {
  1645. CONST_VTBL struct IEnumNetSharingPrivateConnectionVtbl *lpVtbl;
  1646. };
  1647. #ifdef COBJMACROS
  1648. #define IEnumNetSharingPrivateConnection_QueryInterface(This,riid,ppvObject) \
  1649. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1650. #define IEnumNetSharingPrivateConnection_AddRef(This) \
  1651. (This)->lpVtbl -> AddRef(This)
  1652. #define IEnumNetSharingPrivateConnection_Release(This) \
  1653. (This)->lpVtbl -> Release(This)
  1654. #define IEnumNetSharingPrivateConnection_Next(This,celt,rgVar,pCeltFetched) \
  1655. (This)->lpVtbl -> Next(This,celt,rgVar,pCeltFetched)
  1656. #define IEnumNetSharingPrivateConnection_Skip(This,celt) \
  1657. (This)->lpVtbl -> Skip(This,celt)
  1658. #define IEnumNetSharingPrivateConnection_Reset(This) \
  1659. (This)->lpVtbl -> Reset(This)
  1660. #define IEnumNetSharingPrivateConnection_Clone(This,ppenum) \
  1661. (This)->lpVtbl -> Clone(This,ppenum)
  1662. #endif /* COBJMACROS */
  1663. #endif /* C style interface */
  1664. HRESULT STDMETHODCALLTYPE IEnumNetSharingPrivateConnection_Next_Proxy(
  1665. IEnumNetSharingPrivateConnection * This,
  1666. /* [in] */ ULONG celt,
  1667. /* [length_is][size_is][out] */ VARIANT *rgVar,
  1668. /* [out] */ ULONG *pCeltFetched);
  1669. void __RPC_STUB IEnumNetSharingPrivateConnection_Next_Stub(
  1670. IRpcStubBuffer *This,
  1671. IRpcChannelBuffer *_pRpcChannelBuffer,
  1672. PRPC_MESSAGE _pRpcMessage,
  1673. DWORD *_pdwStubPhase);
  1674. HRESULT STDMETHODCALLTYPE IEnumNetSharingPrivateConnection_Skip_Proxy(
  1675. IEnumNetSharingPrivateConnection * This,
  1676. /* [in] */ ULONG celt);
  1677. void __RPC_STUB IEnumNetSharingPrivateConnection_Skip_Stub(
  1678. IRpcStubBuffer *This,
  1679. IRpcChannelBuffer *_pRpcChannelBuffer,
  1680. PRPC_MESSAGE _pRpcMessage,
  1681. DWORD *_pdwStubPhase);
  1682. HRESULT STDMETHODCALLTYPE IEnumNetSharingPrivateConnection_Reset_Proxy(
  1683. IEnumNetSharingPrivateConnection * This);
  1684. void __RPC_STUB IEnumNetSharingPrivateConnection_Reset_Stub(
  1685. IRpcStubBuffer *This,
  1686. IRpcChannelBuffer *_pRpcChannelBuffer,
  1687. PRPC_MESSAGE _pRpcMessage,
  1688. DWORD *_pdwStubPhase);
  1689. HRESULT STDMETHODCALLTYPE IEnumNetSharingPrivateConnection_Clone_Proxy(
  1690. IEnumNetSharingPrivateConnection * This,
  1691. /* [out] */ IEnumNetSharingPrivateConnection **ppenum);
  1692. void __RPC_STUB IEnumNetSharingPrivateConnection_Clone_Stub(
  1693. IRpcStubBuffer *This,
  1694. IRpcChannelBuffer *_pRpcChannelBuffer,
  1695. PRPC_MESSAGE _pRpcMessage,
  1696. DWORD *_pdwStubPhase);
  1697. #endif /* __IEnumNetSharingPrivateConnection_INTERFACE_DEFINED__ */
  1698. #ifndef __INetSharingPortMappingCollection_INTERFACE_DEFINED__
  1699. #define __INetSharingPortMappingCollection_INTERFACE_DEFINED__
  1700. /* interface INetSharingPortMappingCollection */
  1701. /* [unique][helpstring][dual][oleautomation][uuid][object] */
  1702. EXTERN_C const IID IID_INetSharingPortMappingCollection;
  1703. #if defined(__cplusplus) && !defined(CINTERFACE)
  1704. MIDL_INTERFACE("02E4A2DE-DA20-4E34-89C8-AC22275A010B")
  1705. INetSharingPortMappingCollection : public IDispatch
  1706. {
  1707. public:
  1708. virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  1709. /* [retval][out] */ IUnknown **pVal) = 0;
  1710. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  1711. /* [retval][out] */ long *pVal) = 0;
  1712. };
  1713. #else /* C style interface */
  1714. typedef struct INetSharingPortMappingCollectionVtbl
  1715. {
  1716. BEGIN_INTERFACE
  1717. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1718. INetSharingPortMappingCollection * This,
  1719. /* [in] */ REFIID riid,
  1720. /* [iid_is][out] */ void **ppvObject);
  1721. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1722. INetSharingPortMappingCollection * This);
  1723. ULONG ( STDMETHODCALLTYPE *Release )(
  1724. INetSharingPortMappingCollection * This);
  1725. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  1726. INetSharingPortMappingCollection * This,
  1727. /* [out] */ UINT *pctinfo);
  1728. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  1729. INetSharingPortMappingCollection * This,
  1730. /* [in] */ UINT iTInfo,
  1731. /* [in] */ LCID lcid,
  1732. /* [out] */ ITypeInfo **ppTInfo);
  1733. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  1734. INetSharingPortMappingCollection * This,
  1735. /* [in] */ REFIID riid,
  1736. /* [size_is][in] */ LPOLESTR *rgszNames,
  1737. /* [in] */ UINT cNames,
  1738. /* [in] */ LCID lcid,
  1739. /* [size_is][out] */ DISPID *rgDispId);
  1740. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  1741. INetSharingPortMappingCollection * This,
  1742. /* [in] */ DISPID dispIdMember,
  1743. /* [in] */ REFIID riid,
  1744. /* [in] */ LCID lcid,
  1745. /* [in] */ WORD wFlags,
  1746. /* [out][in] */ DISPPARAMS *pDispParams,
  1747. /* [out] */ VARIANT *pVarResult,
  1748. /* [out] */ EXCEPINFO *pExcepInfo,
  1749. /* [out] */ UINT *puArgErr);
  1750. /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  1751. INetSharingPortMappingCollection * This,
  1752. /* [retval][out] */ IUnknown **pVal);
  1753. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  1754. INetSharingPortMappingCollection * This,
  1755. /* [retval][out] */ long *pVal);
  1756. END_INTERFACE
  1757. } INetSharingPortMappingCollectionVtbl;
  1758. interface INetSharingPortMappingCollection
  1759. {
  1760. CONST_VTBL struct INetSharingPortMappingCollectionVtbl *lpVtbl;
  1761. };
  1762. #ifdef COBJMACROS
  1763. #define INetSharingPortMappingCollection_QueryInterface(This,riid,ppvObject) \
  1764. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1765. #define INetSharingPortMappingCollection_AddRef(This) \
  1766. (This)->lpVtbl -> AddRef(This)
  1767. #define INetSharingPortMappingCollection_Release(This) \
  1768. (This)->lpVtbl -> Release(This)
  1769. #define INetSharingPortMappingCollection_GetTypeInfoCount(This,pctinfo) \
  1770. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1771. #define INetSharingPortMappingCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  1772. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1773. #define INetSharingPortMappingCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  1774. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1775. #define INetSharingPortMappingCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  1776. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1777. #define INetSharingPortMappingCollection_get__NewEnum(This,pVal) \
  1778. (This)->lpVtbl -> get__NewEnum(This,pVal)
  1779. #define INetSharingPortMappingCollection_get_Count(This,pVal) \
  1780. (This)->lpVtbl -> get_Count(This,pVal)
  1781. #endif /* COBJMACROS */
  1782. #endif /* C style interface */
  1783. /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPortMappingCollection_get__NewEnum_Proxy(
  1784. INetSharingPortMappingCollection * This,
  1785. /* [retval][out] */ IUnknown **pVal);
  1786. void __RPC_STUB INetSharingPortMappingCollection_get__NewEnum_Stub(
  1787. IRpcStubBuffer *This,
  1788. IRpcChannelBuffer *_pRpcChannelBuffer,
  1789. PRPC_MESSAGE _pRpcMessage,
  1790. DWORD *_pdwStubPhase);
  1791. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPortMappingCollection_get_Count_Proxy(
  1792. INetSharingPortMappingCollection * This,
  1793. /* [retval][out] */ long *pVal);
  1794. void __RPC_STUB INetSharingPortMappingCollection_get_Count_Stub(
  1795. IRpcStubBuffer *This,
  1796. IRpcChannelBuffer *_pRpcChannelBuffer,
  1797. PRPC_MESSAGE _pRpcMessage,
  1798. DWORD *_pdwStubPhase);
  1799. #endif /* __INetSharingPortMappingCollection_INTERFACE_DEFINED__ */
  1800. /* interface __MIDL_itf_netcon_0133 */
  1801. /* [local] */
  1802. // properties for INetConnection (wraps NETCON_PROPERTIES)
  1803. extern RPC_IF_HANDLE __MIDL_itf_netcon_0133_v0_0_c_ifspec;
  1804. extern RPC_IF_HANDLE __MIDL_itf_netcon_0133_v0_0_s_ifspec;
  1805. #ifndef __INetConnectionProps_INTERFACE_DEFINED__
  1806. #define __INetConnectionProps_INTERFACE_DEFINED__
  1807. /* interface INetConnectionProps */
  1808. /* [unique][helpstring][dual][oleautomation][uuid][object] */
  1809. EXTERN_C const IID IID_INetConnectionProps;
  1810. #if defined(__cplusplus) && !defined(CINTERFACE)
  1811. MIDL_INTERFACE("F4277C95-CE5B-463D-8167-5662D9BCAA72")
  1812. INetConnectionProps : public IDispatch
  1813. {
  1814. public:
  1815. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Guid(
  1816. /* [retval][out] */ BSTR *pbstrGuid) = 0;
  1817. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name(
  1818. /* [retval][out] */ BSTR *pbstrName) = 0;
  1819. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceName(
  1820. /* [retval][out] */ BSTR *pbstrDeviceName) = 0;
  1821. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Status(
  1822. /* [retval][out] */ NETCON_STATUS *pStatus) = 0;
  1823. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MediaType(
  1824. /* [retval][out] */ NETCON_MEDIATYPE *pMediaType) = 0;
  1825. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Characteristics(
  1826. /* [retval][out] */ DWORD *pdwFlags) = 0;
  1827. };
  1828. #else /* C style interface */
  1829. typedef struct INetConnectionPropsVtbl
  1830. {
  1831. BEGIN_INTERFACE
  1832. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1833. INetConnectionProps * This,
  1834. /* [in] */ REFIID riid,
  1835. /* [iid_is][out] */ void **ppvObject);
  1836. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1837. INetConnectionProps * This);
  1838. ULONG ( STDMETHODCALLTYPE *Release )(
  1839. INetConnectionProps * This);
  1840. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  1841. INetConnectionProps * This,
  1842. /* [out] */ UINT *pctinfo);
  1843. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  1844. INetConnectionProps * This,
  1845. /* [in] */ UINT iTInfo,
  1846. /* [in] */ LCID lcid,
  1847. /* [out] */ ITypeInfo **ppTInfo);
  1848. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  1849. INetConnectionProps * This,
  1850. /* [in] */ REFIID riid,
  1851. /* [size_is][in] */ LPOLESTR *rgszNames,
  1852. /* [in] */ UINT cNames,
  1853. /* [in] */ LCID lcid,
  1854. /* [size_is][out] */ DISPID *rgDispId);
  1855. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  1856. INetConnectionProps * This,
  1857. /* [in] */ DISPID dispIdMember,
  1858. /* [in] */ REFIID riid,
  1859. /* [in] */ LCID lcid,
  1860. /* [in] */ WORD wFlags,
  1861. /* [out][in] */ DISPPARAMS *pDispParams,
  1862. /* [out] */ VARIANT *pVarResult,
  1863. /* [out] */ EXCEPINFO *pExcepInfo,
  1864. /* [out] */ UINT *puArgErr);
  1865. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Guid )(
  1866. INetConnectionProps * This,
  1867. /* [retval][out] */ BSTR *pbstrGuid);
  1868. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )(
  1869. INetConnectionProps * This,
  1870. /* [retval][out] */ BSTR *pbstrName);
  1871. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceName )(
  1872. INetConnectionProps * This,
  1873. /* [retval][out] */ BSTR *pbstrDeviceName);
  1874. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )(
  1875. INetConnectionProps * This,
  1876. /* [retval][out] */ NETCON_STATUS *pStatus);
  1877. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaType )(
  1878. INetConnectionProps * This,
  1879. /* [retval][out] */ NETCON_MEDIATYPE *pMediaType);
  1880. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Characteristics )(
  1881. INetConnectionProps * This,
  1882. /* [retval][out] */ DWORD *pdwFlags);
  1883. END_INTERFACE
  1884. } INetConnectionPropsVtbl;
  1885. interface INetConnectionProps
  1886. {
  1887. CONST_VTBL struct INetConnectionPropsVtbl *lpVtbl;
  1888. };
  1889. #ifdef COBJMACROS
  1890. #define INetConnectionProps_QueryInterface(This,riid,ppvObject) \
  1891. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1892. #define INetConnectionProps_AddRef(This) \
  1893. (This)->lpVtbl -> AddRef(This)
  1894. #define INetConnectionProps_Release(This) \
  1895. (This)->lpVtbl -> Release(This)
  1896. #define INetConnectionProps_GetTypeInfoCount(This,pctinfo) \
  1897. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1898. #define INetConnectionProps_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  1899. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1900. #define INetConnectionProps_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  1901. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1902. #define INetConnectionProps_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  1903. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1904. #define INetConnectionProps_get_Guid(This,pbstrGuid) \
  1905. (This)->lpVtbl -> get_Guid(This,pbstrGuid)
  1906. #define INetConnectionProps_get_Name(This,pbstrName) \
  1907. (This)->lpVtbl -> get_Name(This,pbstrName)
  1908. #define INetConnectionProps_get_DeviceName(This,pbstrDeviceName) \
  1909. (This)->lpVtbl -> get_DeviceName(This,pbstrDeviceName)
  1910. #define INetConnectionProps_get_Status(This,pStatus) \
  1911. (This)->lpVtbl -> get_Status(This,pStatus)
  1912. #define INetConnectionProps_get_MediaType(This,pMediaType) \
  1913. (This)->lpVtbl -> get_MediaType(This,pMediaType)
  1914. #define INetConnectionProps_get_Characteristics(This,pdwFlags) \
  1915. (This)->lpVtbl -> get_Characteristics(This,pdwFlags)
  1916. #endif /* COBJMACROS */
  1917. #endif /* C style interface */
  1918. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetConnectionProps_get_Guid_Proxy(
  1919. INetConnectionProps * This,
  1920. /* [retval][out] */ BSTR *pbstrGuid);
  1921. void __RPC_STUB INetConnectionProps_get_Guid_Stub(
  1922. IRpcStubBuffer *This,
  1923. IRpcChannelBuffer *_pRpcChannelBuffer,
  1924. PRPC_MESSAGE _pRpcMessage,
  1925. DWORD *_pdwStubPhase);
  1926. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetConnectionProps_get_Name_Proxy(
  1927. INetConnectionProps * This,
  1928. /* [retval][out] */ BSTR *pbstrName);
  1929. void __RPC_STUB INetConnectionProps_get_Name_Stub(
  1930. IRpcStubBuffer *This,
  1931. IRpcChannelBuffer *_pRpcChannelBuffer,
  1932. PRPC_MESSAGE _pRpcMessage,
  1933. DWORD *_pdwStubPhase);
  1934. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetConnectionProps_get_DeviceName_Proxy(
  1935. INetConnectionProps * This,
  1936. /* [retval][out] */ BSTR *pbstrDeviceName);
  1937. void __RPC_STUB INetConnectionProps_get_DeviceName_Stub(
  1938. IRpcStubBuffer *This,
  1939. IRpcChannelBuffer *_pRpcChannelBuffer,
  1940. PRPC_MESSAGE _pRpcMessage,
  1941. DWORD *_pdwStubPhase);
  1942. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetConnectionProps_get_Status_Proxy(
  1943. INetConnectionProps * This,
  1944. /* [retval][out] */ NETCON_STATUS *pStatus);
  1945. void __RPC_STUB INetConnectionProps_get_Status_Stub(
  1946. IRpcStubBuffer *This,
  1947. IRpcChannelBuffer *_pRpcChannelBuffer,
  1948. PRPC_MESSAGE _pRpcMessage,
  1949. DWORD *_pdwStubPhase);
  1950. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetConnectionProps_get_MediaType_Proxy(
  1951. INetConnectionProps * This,
  1952. /* [retval][out] */ NETCON_MEDIATYPE *pMediaType);
  1953. void __RPC_STUB INetConnectionProps_get_MediaType_Stub(
  1954. IRpcStubBuffer *This,
  1955. IRpcChannelBuffer *_pRpcChannelBuffer,
  1956. PRPC_MESSAGE _pRpcMessage,
  1957. DWORD *_pdwStubPhase);
  1958. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetConnectionProps_get_Characteristics_Proxy(
  1959. INetConnectionProps * This,
  1960. /* [retval][out] */ DWORD *pdwFlags);
  1961. void __RPC_STUB INetConnectionProps_get_Characteristics_Stub(
  1962. IRpcStubBuffer *This,
  1963. IRpcChannelBuffer *_pRpcChannelBuffer,
  1964. PRPC_MESSAGE _pRpcMessage,
  1965. DWORD *_pdwStubPhase);
  1966. #endif /* __INetConnectionProps_INTERFACE_DEFINED__ */
  1967. #ifndef __INetSharingConfiguration_INTERFACE_DEFINED__
  1968. #define __INetSharingConfiguration_INTERFACE_DEFINED__
  1969. /* interface INetSharingConfiguration */
  1970. /* [unique][dual][oleautomation][uuid][object] */
  1971. typedef
  1972. enum tagSHARINGCONNECTIONTYPE
  1973. { ICSSHARINGTYPE_PUBLIC = 0,
  1974. ICSSHARINGTYPE_PRIVATE = ICSSHARINGTYPE_PUBLIC + 1
  1975. } SHARINGCONNECTIONTYPE;
  1976. typedef enum tagSHARINGCONNECTIONTYPE *LPSHARINGCONNECTIONTYPE;
  1977. typedef
  1978. enum tagSHARINGCONNECTION_ENUM_FLAGS
  1979. { ICSSC_DEFAULT = 0,
  1980. ICSSC_ENABLED = ICSSC_DEFAULT + 1
  1981. } SHARINGCONNECTION_ENUM_FLAGS;
  1982. typedef
  1983. enum tagICS_TARGETTYPE
  1984. { ICSTT_NAME = 0,
  1985. ICSTT_IPADDRESS = ICSTT_NAME + 1
  1986. } ICS_TARGETTYPE;
  1987. EXTERN_C const IID IID_INetSharingConfiguration;
  1988. #if defined(__cplusplus) && !defined(CINTERFACE)
  1989. MIDL_INTERFACE("C08956B6-1CD3-11D1-B1C5-00805FC1270E")
  1990. INetSharingConfiguration : public IDispatch
  1991. {
  1992. public:
  1993. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SharingEnabled(
  1994. /* [retval][out] */ VARIANT_BOOL *pbEnabled) = 0;
  1995. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SharingConnectionType(
  1996. /* [retval][out] */ SHARINGCONNECTIONTYPE *pType) = 0;
  1997. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DisableSharing( void) = 0;
  1998. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnableSharing(
  1999. /* [in] */ SHARINGCONNECTIONTYPE Type) = 0;
  2000. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InternetFirewallEnabled(
  2001. /* [retval][out] */ VARIANT_BOOL *pbEnabled) = 0;
  2002. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DisableInternetFirewall( void) = 0;
  2003. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnableInternetFirewall( void) = 0;
  2004. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnumPortMappings(
  2005. /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  2006. /* [retval][out] */ INetSharingPortMappingCollection **ppColl) = 0;
  2007. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddPortMapping(
  2008. /* [in] */ BSTR bstrName,
  2009. /* [in] */ UCHAR ucIPProtocol,
  2010. /* [in] */ USHORT usExternalPort,
  2011. /* [in] */ USHORT usInternalPort,
  2012. /* [in] */ DWORD dwOptions,
  2013. /* [in] */ BSTR bstrTargetNameOrIPAddress,
  2014. /* [in] */ ICS_TARGETTYPE eTargetType,
  2015. /* [retval][out] */ INetSharingPortMapping **ppMapping) = 0;
  2016. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemovePortMapping(
  2017. /* [in] */ INetSharingPortMapping *pMapping) = 0;
  2018. };
  2019. #else /* C style interface */
  2020. typedef struct INetSharingConfigurationVtbl
  2021. {
  2022. BEGIN_INTERFACE
  2023. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2024. INetSharingConfiguration * This,
  2025. /* [in] */ REFIID riid,
  2026. /* [iid_is][out] */ void **ppvObject);
  2027. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2028. INetSharingConfiguration * This);
  2029. ULONG ( STDMETHODCALLTYPE *Release )(
  2030. INetSharingConfiguration * This);
  2031. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  2032. INetSharingConfiguration * This,
  2033. /* [out] */ UINT *pctinfo);
  2034. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  2035. INetSharingConfiguration * This,
  2036. /* [in] */ UINT iTInfo,
  2037. /* [in] */ LCID lcid,
  2038. /* [out] */ ITypeInfo **ppTInfo);
  2039. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  2040. INetSharingConfiguration * This,
  2041. /* [in] */ REFIID riid,
  2042. /* [size_is][in] */ LPOLESTR *rgszNames,
  2043. /* [in] */ UINT cNames,
  2044. /* [in] */ LCID lcid,
  2045. /* [size_is][out] */ DISPID *rgDispId);
  2046. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  2047. INetSharingConfiguration * This,
  2048. /* [in] */ DISPID dispIdMember,
  2049. /* [in] */ REFIID riid,
  2050. /* [in] */ LCID lcid,
  2051. /* [in] */ WORD wFlags,
  2052. /* [out][in] */ DISPPARAMS *pDispParams,
  2053. /* [out] */ VARIANT *pVarResult,
  2054. /* [out] */ EXCEPINFO *pExcepInfo,
  2055. /* [out] */ UINT *puArgErr);
  2056. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SharingEnabled )(
  2057. INetSharingConfiguration * This,
  2058. /* [retval][out] */ VARIANT_BOOL *pbEnabled);
  2059. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SharingConnectionType )(
  2060. INetSharingConfiguration * This,
  2061. /* [retval][out] */ SHARINGCONNECTIONTYPE *pType);
  2062. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DisableSharing )(
  2063. INetSharingConfiguration * This);
  2064. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnableSharing )(
  2065. INetSharingConfiguration * This,
  2066. /* [in] */ SHARINGCONNECTIONTYPE Type);
  2067. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InternetFirewallEnabled )(
  2068. INetSharingConfiguration * This,
  2069. /* [retval][out] */ VARIANT_BOOL *pbEnabled);
  2070. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DisableInternetFirewall )(
  2071. INetSharingConfiguration * This);
  2072. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnableInternetFirewall )(
  2073. INetSharingConfiguration * This);
  2074. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumPortMappings )(
  2075. INetSharingConfiguration * This,
  2076. /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  2077. /* [retval][out] */ INetSharingPortMappingCollection **ppColl);
  2078. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddPortMapping )(
  2079. INetSharingConfiguration * This,
  2080. /* [in] */ BSTR bstrName,
  2081. /* [in] */ UCHAR ucIPProtocol,
  2082. /* [in] */ USHORT usExternalPort,
  2083. /* [in] */ USHORT usInternalPort,
  2084. /* [in] */ DWORD dwOptions,
  2085. /* [in] */ BSTR bstrTargetNameOrIPAddress,
  2086. /* [in] */ ICS_TARGETTYPE eTargetType,
  2087. /* [retval][out] */ INetSharingPortMapping **ppMapping);
  2088. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemovePortMapping )(
  2089. INetSharingConfiguration * This,
  2090. /* [in] */ INetSharingPortMapping *pMapping);
  2091. END_INTERFACE
  2092. } INetSharingConfigurationVtbl;
  2093. interface INetSharingConfiguration
  2094. {
  2095. CONST_VTBL struct INetSharingConfigurationVtbl *lpVtbl;
  2096. };
  2097. #ifdef COBJMACROS
  2098. #define INetSharingConfiguration_QueryInterface(This,riid,ppvObject) \
  2099. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2100. #define INetSharingConfiguration_AddRef(This) \
  2101. (This)->lpVtbl -> AddRef(This)
  2102. #define INetSharingConfiguration_Release(This) \
  2103. (This)->lpVtbl -> Release(This)
  2104. #define INetSharingConfiguration_GetTypeInfoCount(This,pctinfo) \
  2105. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  2106. #define INetSharingConfiguration_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  2107. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  2108. #define INetSharingConfiguration_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  2109. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  2110. #define INetSharingConfiguration_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  2111. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  2112. #define INetSharingConfiguration_get_SharingEnabled(This,pbEnabled) \
  2113. (This)->lpVtbl -> get_SharingEnabled(This,pbEnabled)
  2114. #define INetSharingConfiguration_get_SharingConnectionType(This,pType) \
  2115. (This)->lpVtbl -> get_SharingConnectionType(This,pType)
  2116. #define INetSharingConfiguration_DisableSharing(This) \
  2117. (This)->lpVtbl -> DisableSharing(This)
  2118. #define INetSharingConfiguration_EnableSharing(This,Type) \
  2119. (This)->lpVtbl -> EnableSharing(This,Type)
  2120. #define INetSharingConfiguration_get_InternetFirewallEnabled(This,pbEnabled) \
  2121. (This)->lpVtbl -> get_InternetFirewallEnabled(This,pbEnabled)
  2122. #define INetSharingConfiguration_DisableInternetFirewall(This) \
  2123. (This)->lpVtbl -> DisableInternetFirewall(This)
  2124. #define INetSharingConfiguration_EnableInternetFirewall(This) \
  2125. (This)->lpVtbl -> EnableInternetFirewall(This)
  2126. #define INetSharingConfiguration_get_EnumPortMappings(This,Flags,ppColl) \
  2127. (This)->lpVtbl -> get_EnumPortMappings(This,Flags,ppColl)
  2128. #define INetSharingConfiguration_AddPortMapping(This,bstrName,ucIPProtocol,usExternalPort,usInternalPort,dwOptions,bstrTargetNameOrIPAddress,eTargetType,ppMapping) \
  2129. (This)->lpVtbl -> AddPortMapping(This,bstrName,ucIPProtocol,usExternalPort,usInternalPort,dwOptions,bstrTargetNameOrIPAddress,eTargetType,ppMapping)
  2130. #define INetSharingConfiguration_RemovePortMapping(This,pMapping) \
  2131. (This)->lpVtbl -> RemovePortMapping(This,pMapping)
  2132. #endif /* COBJMACROS */
  2133. #endif /* C style interface */
  2134. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_get_SharingEnabled_Proxy(
  2135. INetSharingConfiguration * This,
  2136. /* [retval][out] */ VARIANT_BOOL *pbEnabled);
  2137. void __RPC_STUB INetSharingConfiguration_get_SharingEnabled_Stub(
  2138. IRpcStubBuffer *This,
  2139. IRpcChannelBuffer *_pRpcChannelBuffer,
  2140. PRPC_MESSAGE _pRpcMessage,
  2141. DWORD *_pdwStubPhase);
  2142. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_get_SharingConnectionType_Proxy(
  2143. INetSharingConfiguration * This,
  2144. /* [retval][out] */ SHARINGCONNECTIONTYPE *pType);
  2145. void __RPC_STUB INetSharingConfiguration_get_SharingConnectionType_Stub(
  2146. IRpcStubBuffer *This,
  2147. IRpcChannelBuffer *_pRpcChannelBuffer,
  2148. PRPC_MESSAGE _pRpcMessage,
  2149. DWORD *_pdwStubPhase);
  2150. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_DisableSharing_Proxy(
  2151. INetSharingConfiguration * This);
  2152. void __RPC_STUB INetSharingConfiguration_DisableSharing_Stub(
  2153. IRpcStubBuffer *This,
  2154. IRpcChannelBuffer *_pRpcChannelBuffer,
  2155. PRPC_MESSAGE _pRpcMessage,
  2156. DWORD *_pdwStubPhase);
  2157. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_EnableSharing_Proxy(
  2158. INetSharingConfiguration * This,
  2159. /* [in] */ SHARINGCONNECTIONTYPE Type);
  2160. void __RPC_STUB INetSharingConfiguration_EnableSharing_Stub(
  2161. IRpcStubBuffer *This,
  2162. IRpcChannelBuffer *_pRpcChannelBuffer,
  2163. PRPC_MESSAGE _pRpcMessage,
  2164. DWORD *_pdwStubPhase);
  2165. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_get_InternetFirewallEnabled_Proxy(
  2166. INetSharingConfiguration * This,
  2167. /* [retval][out] */ VARIANT_BOOL *pbEnabled);
  2168. void __RPC_STUB INetSharingConfiguration_get_InternetFirewallEnabled_Stub(
  2169. IRpcStubBuffer *This,
  2170. IRpcChannelBuffer *_pRpcChannelBuffer,
  2171. PRPC_MESSAGE _pRpcMessage,
  2172. DWORD *_pdwStubPhase);
  2173. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_DisableInternetFirewall_Proxy(
  2174. INetSharingConfiguration * This);
  2175. void __RPC_STUB INetSharingConfiguration_DisableInternetFirewall_Stub(
  2176. IRpcStubBuffer *This,
  2177. IRpcChannelBuffer *_pRpcChannelBuffer,
  2178. PRPC_MESSAGE _pRpcMessage,
  2179. DWORD *_pdwStubPhase);
  2180. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_EnableInternetFirewall_Proxy(
  2181. INetSharingConfiguration * This);
  2182. void __RPC_STUB INetSharingConfiguration_EnableInternetFirewall_Stub(
  2183. IRpcStubBuffer *This,
  2184. IRpcChannelBuffer *_pRpcChannelBuffer,
  2185. PRPC_MESSAGE _pRpcMessage,
  2186. DWORD *_pdwStubPhase);
  2187. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_get_EnumPortMappings_Proxy(
  2188. INetSharingConfiguration * This,
  2189. /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  2190. /* [retval][out] */ INetSharingPortMappingCollection **ppColl);
  2191. void __RPC_STUB INetSharingConfiguration_get_EnumPortMappings_Stub(
  2192. IRpcStubBuffer *This,
  2193. IRpcChannelBuffer *_pRpcChannelBuffer,
  2194. PRPC_MESSAGE _pRpcMessage,
  2195. DWORD *_pdwStubPhase);
  2196. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_AddPortMapping_Proxy(
  2197. INetSharingConfiguration * This,
  2198. /* [in] */ BSTR bstrName,
  2199. /* [in] */ UCHAR ucIPProtocol,
  2200. /* [in] */ USHORT usExternalPort,
  2201. /* [in] */ USHORT usInternalPort,
  2202. /* [in] */ DWORD dwOptions,
  2203. /* [in] */ BSTR bstrTargetNameOrIPAddress,
  2204. /* [in] */ ICS_TARGETTYPE eTargetType,
  2205. /* [retval][out] */ INetSharingPortMapping **ppMapping);
  2206. void __RPC_STUB INetSharingConfiguration_AddPortMapping_Stub(
  2207. IRpcStubBuffer *This,
  2208. IRpcChannelBuffer *_pRpcChannelBuffer,
  2209. PRPC_MESSAGE _pRpcMessage,
  2210. DWORD *_pdwStubPhase);
  2211. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE INetSharingConfiguration_RemovePortMapping_Proxy(
  2212. INetSharingConfiguration * This,
  2213. /* [in] */ INetSharingPortMapping *pMapping);
  2214. void __RPC_STUB INetSharingConfiguration_RemovePortMapping_Stub(
  2215. IRpcStubBuffer *This,
  2216. IRpcChannelBuffer *_pRpcChannelBuffer,
  2217. PRPC_MESSAGE _pRpcMessage,
  2218. DWORD *_pdwStubPhase);
  2219. #endif /* __INetSharingConfiguration_INTERFACE_DEFINED__ */
  2220. #ifndef __INetSharingEveryConnectionCollection_INTERFACE_DEFINED__
  2221. #define __INetSharingEveryConnectionCollection_INTERFACE_DEFINED__
  2222. /* interface INetSharingEveryConnectionCollection */
  2223. /* [unique][helpstring][dual][oleautomation][uuid][object] */
  2224. EXTERN_C const IID IID_INetSharingEveryConnectionCollection;
  2225. #if defined(__cplusplus) && !defined(CINTERFACE)
  2226. MIDL_INTERFACE("33C4643C-7811-46FA-A89A-768597BD7223")
  2227. INetSharingEveryConnectionCollection : public IDispatch
  2228. {
  2229. public:
  2230. virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  2231. /* [retval][out] */ IUnknown **pVal) = 0;
  2232. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  2233. /* [retval][out] */ long *pVal) = 0;
  2234. };
  2235. #else /* C style interface */
  2236. typedef struct INetSharingEveryConnectionCollectionVtbl
  2237. {
  2238. BEGIN_INTERFACE
  2239. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2240. INetSharingEveryConnectionCollection * This,
  2241. /* [in] */ REFIID riid,
  2242. /* [iid_is][out] */ void **ppvObject);
  2243. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2244. INetSharingEveryConnectionCollection * This);
  2245. ULONG ( STDMETHODCALLTYPE *Release )(
  2246. INetSharingEveryConnectionCollection * This);
  2247. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  2248. INetSharingEveryConnectionCollection * This,
  2249. /* [out] */ UINT *pctinfo);
  2250. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  2251. INetSharingEveryConnectionCollection * This,
  2252. /* [in] */ UINT iTInfo,
  2253. /* [in] */ LCID lcid,
  2254. /* [out] */ ITypeInfo **ppTInfo);
  2255. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  2256. INetSharingEveryConnectionCollection * This,
  2257. /* [in] */ REFIID riid,
  2258. /* [size_is][in] */ LPOLESTR *rgszNames,
  2259. /* [in] */ UINT cNames,
  2260. /* [in] */ LCID lcid,
  2261. /* [size_is][out] */ DISPID *rgDispId);
  2262. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  2263. INetSharingEveryConnectionCollection * This,
  2264. /* [in] */ DISPID dispIdMember,
  2265. /* [in] */ REFIID riid,
  2266. /* [in] */ LCID lcid,
  2267. /* [in] */ WORD wFlags,
  2268. /* [out][in] */ DISPPARAMS *pDispParams,
  2269. /* [out] */ VARIANT *pVarResult,
  2270. /* [out] */ EXCEPINFO *pExcepInfo,
  2271. /* [out] */ UINT *puArgErr);
  2272. /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  2273. INetSharingEveryConnectionCollection * This,
  2274. /* [retval][out] */ IUnknown **pVal);
  2275. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  2276. INetSharingEveryConnectionCollection * This,
  2277. /* [retval][out] */ long *pVal);
  2278. END_INTERFACE
  2279. } INetSharingEveryConnectionCollectionVtbl;
  2280. interface INetSharingEveryConnectionCollection
  2281. {
  2282. CONST_VTBL struct INetSharingEveryConnectionCollectionVtbl *lpVtbl;
  2283. };
  2284. #ifdef COBJMACROS
  2285. #define INetSharingEveryConnectionCollection_QueryInterface(This,riid,ppvObject) \
  2286. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2287. #define INetSharingEveryConnectionCollection_AddRef(This) \
  2288. (This)->lpVtbl -> AddRef(This)
  2289. #define INetSharingEveryConnectionCollection_Release(This) \
  2290. (This)->lpVtbl -> Release(This)
  2291. #define INetSharingEveryConnectionCollection_GetTypeInfoCount(This,pctinfo) \
  2292. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  2293. #define INetSharingEveryConnectionCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  2294. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  2295. #define INetSharingEveryConnectionCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  2296. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  2297. #define INetSharingEveryConnectionCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  2298. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  2299. #define INetSharingEveryConnectionCollection_get__NewEnum(This,pVal) \
  2300. (This)->lpVtbl -> get__NewEnum(This,pVal)
  2301. #define INetSharingEveryConnectionCollection_get_Count(This,pVal) \
  2302. (This)->lpVtbl -> get_Count(This,pVal)
  2303. #endif /* COBJMACROS */
  2304. #endif /* C style interface */
  2305. /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingEveryConnectionCollection_get__NewEnum_Proxy(
  2306. INetSharingEveryConnectionCollection * This,
  2307. /* [retval][out] */ IUnknown **pVal);
  2308. void __RPC_STUB INetSharingEveryConnectionCollection_get__NewEnum_Stub(
  2309. IRpcStubBuffer *This,
  2310. IRpcChannelBuffer *_pRpcChannelBuffer,
  2311. PRPC_MESSAGE _pRpcMessage,
  2312. DWORD *_pdwStubPhase);
  2313. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingEveryConnectionCollection_get_Count_Proxy(
  2314. INetSharingEveryConnectionCollection * This,
  2315. /* [retval][out] */ long *pVal);
  2316. void __RPC_STUB INetSharingEveryConnectionCollection_get_Count_Stub(
  2317. IRpcStubBuffer *This,
  2318. IRpcChannelBuffer *_pRpcChannelBuffer,
  2319. PRPC_MESSAGE _pRpcMessage,
  2320. DWORD *_pdwStubPhase);
  2321. #endif /* __INetSharingEveryConnectionCollection_INTERFACE_DEFINED__ */
  2322. #ifndef __INetSharingPublicConnectionCollection_INTERFACE_DEFINED__
  2323. #define __INetSharingPublicConnectionCollection_INTERFACE_DEFINED__
  2324. /* interface INetSharingPublicConnectionCollection */
  2325. /* [unique][helpstring][dual][oleautomation][uuid][object] */
  2326. EXTERN_C const IID IID_INetSharingPublicConnectionCollection;
  2327. #if defined(__cplusplus) && !defined(CINTERFACE)
  2328. MIDL_INTERFACE("7D7A6355-F372-4971-A149-BFC927BE762A")
  2329. INetSharingPublicConnectionCollection : public IDispatch
  2330. {
  2331. public:
  2332. virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  2333. /* [retval][out] */ IUnknown **pVal) = 0;
  2334. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  2335. /* [retval][out] */ long *pVal) = 0;
  2336. };
  2337. #else /* C style interface */
  2338. typedef struct INetSharingPublicConnectionCollectionVtbl
  2339. {
  2340. BEGIN_INTERFACE
  2341. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2342. INetSharingPublicConnectionCollection * This,
  2343. /* [in] */ REFIID riid,
  2344. /* [iid_is][out] */ void **ppvObject);
  2345. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2346. INetSharingPublicConnectionCollection * This);
  2347. ULONG ( STDMETHODCALLTYPE *Release )(
  2348. INetSharingPublicConnectionCollection * This);
  2349. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  2350. INetSharingPublicConnectionCollection * This,
  2351. /* [out] */ UINT *pctinfo);
  2352. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  2353. INetSharingPublicConnectionCollection * This,
  2354. /* [in] */ UINT iTInfo,
  2355. /* [in] */ LCID lcid,
  2356. /* [out] */ ITypeInfo **ppTInfo);
  2357. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  2358. INetSharingPublicConnectionCollection * This,
  2359. /* [in] */ REFIID riid,
  2360. /* [size_is][in] */ LPOLESTR *rgszNames,
  2361. /* [in] */ UINT cNames,
  2362. /* [in] */ LCID lcid,
  2363. /* [size_is][out] */ DISPID *rgDispId);
  2364. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  2365. INetSharingPublicConnectionCollection * This,
  2366. /* [in] */ DISPID dispIdMember,
  2367. /* [in] */ REFIID riid,
  2368. /* [in] */ LCID lcid,
  2369. /* [in] */ WORD wFlags,
  2370. /* [out][in] */ DISPPARAMS *pDispParams,
  2371. /* [out] */ VARIANT *pVarResult,
  2372. /* [out] */ EXCEPINFO *pExcepInfo,
  2373. /* [out] */ UINT *puArgErr);
  2374. /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  2375. INetSharingPublicConnectionCollection * This,
  2376. /* [retval][out] */ IUnknown **pVal);
  2377. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  2378. INetSharingPublicConnectionCollection * This,
  2379. /* [retval][out] */ long *pVal);
  2380. END_INTERFACE
  2381. } INetSharingPublicConnectionCollectionVtbl;
  2382. interface INetSharingPublicConnectionCollection
  2383. {
  2384. CONST_VTBL struct INetSharingPublicConnectionCollectionVtbl *lpVtbl;
  2385. };
  2386. #ifdef COBJMACROS
  2387. #define INetSharingPublicConnectionCollection_QueryInterface(This,riid,ppvObject) \
  2388. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2389. #define INetSharingPublicConnectionCollection_AddRef(This) \
  2390. (This)->lpVtbl -> AddRef(This)
  2391. #define INetSharingPublicConnectionCollection_Release(This) \
  2392. (This)->lpVtbl -> Release(This)
  2393. #define INetSharingPublicConnectionCollection_GetTypeInfoCount(This,pctinfo) \
  2394. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  2395. #define INetSharingPublicConnectionCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  2396. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  2397. #define INetSharingPublicConnectionCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  2398. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  2399. #define INetSharingPublicConnectionCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  2400. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  2401. #define INetSharingPublicConnectionCollection_get__NewEnum(This,pVal) \
  2402. (This)->lpVtbl -> get__NewEnum(This,pVal)
  2403. #define INetSharingPublicConnectionCollection_get_Count(This,pVal) \
  2404. (This)->lpVtbl -> get_Count(This,pVal)
  2405. #endif /* COBJMACROS */
  2406. #endif /* C style interface */
  2407. /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPublicConnectionCollection_get__NewEnum_Proxy(
  2408. INetSharingPublicConnectionCollection * This,
  2409. /* [retval][out] */ IUnknown **pVal);
  2410. void __RPC_STUB INetSharingPublicConnectionCollection_get__NewEnum_Stub(
  2411. IRpcStubBuffer *This,
  2412. IRpcChannelBuffer *_pRpcChannelBuffer,
  2413. PRPC_MESSAGE _pRpcMessage,
  2414. DWORD *_pdwStubPhase);
  2415. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPublicConnectionCollection_get_Count_Proxy(
  2416. INetSharingPublicConnectionCollection * This,
  2417. /* [retval][out] */ long *pVal);
  2418. void __RPC_STUB INetSharingPublicConnectionCollection_get_Count_Stub(
  2419. IRpcStubBuffer *This,
  2420. IRpcChannelBuffer *_pRpcChannelBuffer,
  2421. PRPC_MESSAGE _pRpcMessage,
  2422. DWORD *_pdwStubPhase);
  2423. #endif /* __INetSharingPublicConnectionCollection_INTERFACE_DEFINED__ */
  2424. #ifndef __INetSharingPrivateConnectionCollection_INTERFACE_DEFINED__
  2425. #define __INetSharingPrivateConnectionCollection_INTERFACE_DEFINED__
  2426. /* interface INetSharingPrivateConnectionCollection */
  2427. /* [unique][helpstring][dual][oleautomation][uuid][object] */
  2428. EXTERN_C const IID IID_INetSharingPrivateConnectionCollection;
  2429. #if defined(__cplusplus) && !defined(CINTERFACE)
  2430. MIDL_INTERFACE("38AE69E0-4409-402A-A2CB-E965C727F840")
  2431. INetSharingPrivateConnectionCollection : public IDispatch
  2432. {
  2433. public:
  2434. virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  2435. /* [retval][out] */ IUnknown **pVal) = 0;
  2436. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  2437. /* [retval][out] */ long *pVal) = 0;
  2438. };
  2439. #else /* C style interface */
  2440. typedef struct INetSharingPrivateConnectionCollectionVtbl
  2441. {
  2442. BEGIN_INTERFACE
  2443. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2444. INetSharingPrivateConnectionCollection * This,
  2445. /* [in] */ REFIID riid,
  2446. /* [iid_is][out] */ void **ppvObject);
  2447. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2448. INetSharingPrivateConnectionCollection * This);
  2449. ULONG ( STDMETHODCALLTYPE *Release )(
  2450. INetSharingPrivateConnectionCollection * This);
  2451. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  2452. INetSharingPrivateConnectionCollection * This,
  2453. /* [out] */ UINT *pctinfo);
  2454. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  2455. INetSharingPrivateConnectionCollection * This,
  2456. /* [in] */ UINT iTInfo,
  2457. /* [in] */ LCID lcid,
  2458. /* [out] */ ITypeInfo **ppTInfo);
  2459. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  2460. INetSharingPrivateConnectionCollection * This,
  2461. /* [in] */ REFIID riid,
  2462. /* [size_is][in] */ LPOLESTR *rgszNames,
  2463. /* [in] */ UINT cNames,
  2464. /* [in] */ LCID lcid,
  2465. /* [size_is][out] */ DISPID *rgDispId);
  2466. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  2467. INetSharingPrivateConnectionCollection * This,
  2468. /* [in] */ DISPID dispIdMember,
  2469. /* [in] */ REFIID riid,
  2470. /* [in] */ LCID lcid,
  2471. /* [in] */ WORD wFlags,
  2472. /* [out][in] */ DISPPARAMS *pDispParams,
  2473. /* [out] */ VARIANT *pVarResult,
  2474. /* [out] */ EXCEPINFO *pExcepInfo,
  2475. /* [out] */ UINT *puArgErr);
  2476. /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  2477. INetSharingPrivateConnectionCollection * This,
  2478. /* [retval][out] */ IUnknown **pVal);
  2479. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  2480. INetSharingPrivateConnectionCollection * This,
  2481. /* [retval][out] */ long *pVal);
  2482. END_INTERFACE
  2483. } INetSharingPrivateConnectionCollectionVtbl;
  2484. interface INetSharingPrivateConnectionCollection
  2485. {
  2486. CONST_VTBL struct INetSharingPrivateConnectionCollectionVtbl *lpVtbl;
  2487. };
  2488. #ifdef COBJMACROS
  2489. #define INetSharingPrivateConnectionCollection_QueryInterface(This,riid,ppvObject) \
  2490. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2491. #define INetSharingPrivateConnectionCollection_AddRef(This) \
  2492. (This)->lpVtbl -> AddRef(This)
  2493. #define INetSharingPrivateConnectionCollection_Release(This) \
  2494. (This)->lpVtbl -> Release(This)
  2495. #define INetSharingPrivateConnectionCollection_GetTypeInfoCount(This,pctinfo) \
  2496. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  2497. #define INetSharingPrivateConnectionCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  2498. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  2499. #define INetSharingPrivateConnectionCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  2500. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  2501. #define INetSharingPrivateConnectionCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  2502. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  2503. #define INetSharingPrivateConnectionCollection_get__NewEnum(This,pVal) \
  2504. (This)->lpVtbl -> get__NewEnum(This,pVal)
  2505. #define INetSharingPrivateConnectionCollection_get_Count(This,pVal) \
  2506. (This)->lpVtbl -> get_Count(This,pVal)
  2507. #endif /* COBJMACROS */
  2508. #endif /* C style interface */
  2509. /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPrivateConnectionCollection_get__NewEnum_Proxy(
  2510. INetSharingPrivateConnectionCollection * This,
  2511. /* [retval][out] */ IUnknown **pVal);
  2512. void __RPC_STUB INetSharingPrivateConnectionCollection_get__NewEnum_Stub(
  2513. IRpcStubBuffer *This,
  2514. IRpcChannelBuffer *_pRpcChannelBuffer,
  2515. PRPC_MESSAGE _pRpcMessage,
  2516. DWORD *_pdwStubPhase);
  2517. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingPrivateConnectionCollection_get_Count_Proxy(
  2518. INetSharingPrivateConnectionCollection * This,
  2519. /* [retval][out] */ long *pVal);
  2520. void __RPC_STUB INetSharingPrivateConnectionCollection_get_Count_Stub(
  2521. IRpcStubBuffer *This,
  2522. IRpcChannelBuffer *_pRpcChannelBuffer,
  2523. PRPC_MESSAGE _pRpcMessage,
  2524. DWORD *_pdwStubPhase);
  2525. #endif /* __INetSharingPrivateConnectionCollection_INTERFACE_DEFINED__ */
  2526. #ifndef __INetSharingManager_INTERFACE_DEFINED__
  2527. #define __INetSharingManager_INTERFACE_DEFINED__
  2528. /* interface INetSharingManager */
  2529. /* [unique][dual][oleautomation][uuid][object] */
  2530. EXTERN_C const IID IID_INetSharingManager;
  2531. #if defined(__cplusplus) && !defined(CINTERFACE)
  2532. MIDL_INTERFACE("C08956B7-1CD3-11D1-B1C5-00805FC1270E")
  2533. INetSharingManager : public IDispatch
  2534. {
  2535. public:
  2536. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SharingInstalled(
  2537. /* [retval][out] */ VARIANT_BOOL *pbInstalled) = 0;
  2538. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnumPublicConnections(
  2539. /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  2540. /* [retval][out] */ INetSharingPublicConnectionCollection **ppColl) = 0;
  2541. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnumPrivateConnections(
  2542. /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  2543. /* [retval][out] */ INetSharingPrivateConnectionCollection **ppColl) = 0;
  2544. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_INetSharingConfigurationForINetConnection(
  2545. /* [in] */ INetConnection *pNetConnection,
  2546. /* [retval][out] */ INetSharingConfiguration **ppNetSharingConfiguration) = 0;
  2547. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnumEveryConnection(
  2548. /* [retval][out] */ INetSharingEveryConnectionCollection **ppColl) = 0;
  2549. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NetConnectionProps(
  2550. /* [in] */ INetConnection *pNetConnection,
  2551. /* [retval][out] */ INetConnectionProps **ppProps) = 0;
  2552. };
  2553. #else /* C style interface */
  2554. typedef struct INetSharingManagerVtbl
  2555. {
  2556. BEGIN_INTERFACE
  2557. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2558. INetSharingManager * This,
  2559. /* [in] */ REFIID riid,
  2560. /* [iid_is][out] */ void **ppvObject);
  2561. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2562. INetSharingManager * This);
  2563. ULONG ( STDMETHODCALLTYPE *Release )(
  2564. INetSharingManager * This);
  2565. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  2566. INetSharingManager * This,
  2567. /* [out] */ UINT *pctinfo);
  2568. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  2569. INetSharingManager * This,
  2570. /* [in] */ UINT iTInfo,
  2571. /* [in] */ LCID lcid,
  2572. /* [out] */ ITypeInfo **ppTInfo);
  2573. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  2574. INetSharingManager * This,
  2575. /* [in] */ REFIID riid,
  2576. /* [size_is][in] */ LPOLESTR *rgszNames,
  2577. /* [in] */ UINT cNames,
  2578. /* [in] */ LCID lcid,
  2579. /* [size_is][out] */ DISPID *rgDispId);
  2580. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  2581. INetSharingManager * This,
  2582. /* [in] */ DISPID dispIdMember,
  2583. /* [in] */ REFIID riid,
  2584. /* [in] */ LCID lcid,
  2585. /* [in] */ WORD wFlags,
  2586. /* [out][in] */ DISPPARAMS *pDispParams,
  2587. /* [out] */ VARIANT *pVarResult,
  2588. /* [out] */ EXCEPINFO *pExcepInfo,
  2589. /* [out] */ UINT *puArgErr);
  2590. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SharingInstalled )(
  2591. INetSharingManager * This,
  2592. /* [retval][out] */ VARIANT_BOOL *pbInstalled);
  2593. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumPublicConnections )(
  2594. INetSharingManager * This,
  2595. /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  2596. /* [retval][out] */ INetSharingPublicConnectionCollection **ppColl);
  2597. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumPrivateConnections )(
  2598. INetSharingManager * This,
  2599. /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  2600. /* [retval][out] */ INetSharingPrivateConnectionCollection **ppColl);
  2601. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_INetSharingConfigurationForINetConnection )(
  2602. INetSharingManager * This,
  2603. /* [in] */ INetConnection *pNetConnection,
  2604. /* [retval][out] */ INetSharingConfiguration **ppNetSharingConfiguration);
  2605. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumEveryConnection )(
  2606. INetSharingManager * This,
  2607. /* [retval][out] */ INetSharingEveryConnectionCollection **ppColl);
  2608. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetConnectionProps )(
  2609. INetSharingManager * This,
  2610. /* [in] */ INetConnection *pNetConnection,
  2611. /* [retval][out] */ INetConnectionProps **ppProps);
  2612. END_INTERFACE
  2613. } INetSharingManagerVtbl;
  2614. interface INetSharingManager
  2615. {
  2616. CONST_VTBL struct INetSharingManagerVtbl *lpVtbl;
  2617. };
  2618. #ifdef COBJMACROS
  2619. #define INetSharingManager_QueryInterface(This,riid,ppvObject) \
  2620. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2621. #define INetSharingManager_AddRef(This) \
  2622. (This)->lpVtbl -> AddRef(This)
  2623. #define INetSharingManager_Release(This) \
  2624. (This)->lpVtbl -> Release(This)
  2625. #define INetSharingManager_GetTypeInfoCount(This,pctinfo) \
  2626. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  2627. #define INetSharingManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  2628. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  2629. #define INetSharingManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  2630. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  2631. #define INetSharingManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  2632. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  2633. #define INetSharingManager_get_SharingInstalled(This,pbInstalled) \
  2634. (This)->lpVtbl -> get_SharingInstalled(This,pbInstalled)
  2635. #define INetSharingManager_get_EnumPublicConnections(This,Flags,ppColl) \
  2636. (This)->lpVtbl -> get_EnumPublicConnections(This,Flags,ppColl)
  2637. #define INetSharingManager_get_EnumPrivateConnections(This,Flags,ppColl) \
  2638. (This)->lpVtbl -> get_EnumPrivateConnections(This,Flags,ppColl)
  2639. #define INetSharingManager_get_INetSharingConfigurationForINetConnection(This,pNetConnection,ppNetSharingConfiguration) \
  2640. (This)->lpVtbl -> get_INetSharingConfigurationForINetConnection(This,pNetConnection,ppNetSharingConfiguration)
  2641. #define INetSharingManager_get_EnumEveryConnection(This,ppColl) \
  2642. (This)->lpVtbl -> get_EnumEveryConnection(This,ppColl)
  2643. #define INetSharingManager_get_NetConnectionProps(This,pNetConnection,ppProps) \
  2644. (This)->lpVtbl -> get_NetConnectionProps(This,pNetConnection,ppProps)
  2645. #endif /* COBJMACROS */
  2646. #endif /* C style interface */
  2647. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingManager_get_SharingInstalled_Proxy(
  2648. INetSharingManager * This,
  2649. /* [retval][out] */ VARIANT_BOOL *pbInstalled);
  2650. void __RPC_STUB INetSharingManager_get_SharingInstalled_Stub(
  2651. IRpcStubBuffer *This,
  2652. IRpcChannelBuffer *_pRpcChannelBuffer,
  2653. PRPC_MESSAGE _pRpcMessage,
  2654. DWORD *_pdwStubPhase);
  2655. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingManager_get_EnumPublicConnections_Proxy(
  2656. INetSharingManager * This,
  2657. /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  2658. /* [retval][out] */ INetSharingPublicConnectionCollection **ppColl);
  2659. void __RPC_STUB INetSharingManager_get_EnumPublicConnections_Stub(
  2660. IRpcStubBuffer *This,
  2661. IRpcChannelBuffer *_pRpcChannelBuffer,
  2662. PRPC_MESSAGE _pRpcMessage,
  2663. DWORD *_pdwStubPhase);
  2664. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingManager_get_EnumPrivateConnections_Proxy(
  2665. INetSharingManager * This,
  2666. /* [in] */ SHARINGCONNECTION_ENUM_FLAGS Flags,
  2667. /* [retval][out] */ INetSharingPrivateConnectionCollection **ppColl);
  2668. void __RPC_STUB INetSharingManager_get_EnumPrivateConnections_Stub(
  2669. IRpcStubBuffer *This,
  2670. IRpcChannelBuffer *_pRpcChannelBuffer,
  2671. PRPC_MESSAGE _pRpcMessage,
  2672. DWORD *_pdwStubPhase);
  2673. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingManager_get_INetSharingConfigurationForINetConnection_Proxy(
  2674. INetSharingManager * This,
  2675. /* [in] */ INetConnection *pNetConnection,
  2676. /* [retval][out] */ INetSharingConfiguration **ppNetSharingConfiguration);
  2677. void __RPC_STUB INetSharingManager_get_INetSharingConfigurationForINetConnection_Stub(
  2678. IRpcStubBuffer *This,
  2679. IRpcChannelBuffer *_pRpcChannelBuffer,
  2680. PRPC_MESSAGE _pRpcMessage,
  2681. DWORD *_pdwStubPhase);
  2682. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingManager_get_EnumEveryConnection_Proxy(
  2683. INetSharingManager * This,
  2684. /* [retval][out] */ INetSharingEveryConnectionCollection **ppColl);
  2685. void __RPC_STUB INetSharingManager_get_EnumEveryConnection_Stub(
  2686. IRpcStubBuffer *This,
  2687. IRpcChannelBuffer *_pRpcChannelBuffer,
  2688. PRPC_MESSAGE _pRpcMessage,
  2689. DWORD *_pdwStubPhase);
  2690. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE INetSharingManager_get_NetConnectionProps_Proxy(
  2691. INetSharingManager * This,
  2692. /* [in] */ INetConnection *pNetConnection,
  2693. /* [retval][out] */ INetConnectionProps **ppProps);
  2694. void __RPC_STUB INetSharingManager_get_NetConnectionProps_Stub(
  2695. IRpcStubBuffer *This,
  2696. IRpcChannelBuffer *_pRpcChannelBuffer,
  2697. PRPC_MESSAGE _pRpcMessage,
  2698. DWORD *_pdwStubPhase);
  2699. #endif /* __INetSharingManager_INTERFACE_DEFINED__ */
  2700. /* interface __MIDL_itf_netcon_0139 */
  2701. /* [local] */
  2702. #define ALG_SETUP_PORTS_LIST_BYTE_SIZE ( 2048 )
  2703. extern RPC_IF_HANDLE __MIDL_itf_netcon_0139_v0_0_c_ifspec;
  2704. extern RPC_IF_HANDLE __MIDL_itf_netcon_0139_v0_0_s_ifspec;
  2705. #ifndef __IAlgSetup_INTERFACE_DEFINED__
  2706. #define __IAlgSetup_INTERFACE_DEFINED__
  2707. /* interface IAlgSetup */
  2708. /* [unique][helpstring][dual][uuid][object] */
  2709. EXTERN_C const IID IID_IAlgSetup;
  2710. #if defined(__cplusplus) && !defined(CINTERFACE)
  2711. MIDL_INTERFACE("A779AF1A-009A-4C44-B9F0-8F0F4CF2AE49")
  2712. IAlgSetup : public IDispatch
  2713. {
  2714. public:
  2715. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add(
  2716. /* [in] */ BSTR pszProgID,
  2717. /* [in] */ BSTR pszPublisher,
  2718. /* [in] */ BSTR pszProduct,
  2719. /* [in] */ BSTR pszVersion,
  2720. /* [in] */ short nProtocol,
  2721. /* [in] */ BSTR pszPorts) = 0;
  2722. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove(
  2723. /* [in] */ BSTR pszProgID) = 0;
  2724. };
  2725. #else /* C style interface */
  2726. typedef struct IAlgSetupVtbl
  2727. {
  2728. BEGIN_INTERFACE
  2729. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2730. IAlgSetup * This,
  2731. /* [in] */ REFIID riid,
  2732. /* [iid_is][out] */ void **ppvObject);
  2733. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2734. IAlgSetup * This);
  2735. ULONG ( STDMETHODCALLTYPE *Release )(
  2736. IAlgSetup * This);
  2737. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  2738. IAlgSetup * This,
  2739. /* [out] */ UINT *pctinfo);
  2740. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  2741. IAlgSetup * This,
  2742. /* [in] */ UINT iTInfo,
  2743. /* [in] */ LCID lcid,
  2744. /* [out] */ ITypeInfo **ppTInfo);
  2745. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  2746. IAlgSetup * This,
  2747. /* [in] */ REFIID riid,
  2748. /* [size_is][in] */ LPOLESTR *rgszNames,
  2749. /* [in] */ UINT cNames,
  2750. /* [in] */ LCID lcid,
  2751. /* [size_is][out] */ DISPID *rgDispId);
  2752. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  2753. IAlgSetup * This,
  2754. /* [in] */ DISPID dispIdMember,
  2755. /* [in] */ REFIID riid,
  2756. /* [in] */ LCID lcid,
  2757. /* [in] */ WORD wFlags,
  2758. /* [out][in] */ DISPPARAMS *pDispParams,
  2759. /* [out] */ VARIANT *pVarResult,
  2760. /* [out] */ EXCEPINFO *pExcepInfo,
  2761. /* [out] */ UINT *puArgErr);
  2762. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )(
  2763. IAlgSetup * This,
  2764. /* [in] */ BSTR pszProgID,
  2765. /* [in] */ BSTR pszPublisher,
  2766. /* [in] */ BSTR pszProduct,
  2767. /* [in] */ BSTR pszVersion,
  2768. /* [in] */ short nProtocol,
  2769. /* [in] */ BSTR pszPorts);
  2770. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )(
  2771. IAlgSetup * This,
  2772. /* [in] */ BSTR pszProgID);
  2773. END_INTERFACE
  2774. } IAlgSetupVtbl;
  2775. interface IAlgSetup
  2776. {
  2777. CONST_VTBL struct IAlgSetupVtbl *lpVtbl;
  2778. };
  2779. #ifdef COBJMACROS
  2780. #define IAlgSetup_QueryInterface(This,riid,ppvObject) \
  2781. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2782. #define IAlgSetup_AddRef(This) \
  2783. (This)->lpVtbl -> AddRef(This)
  2784. #define IAlgSetup_Release(This) \
  2785. (This)->lpVtbl -> Release(This)
  2786. #define IAlgSetup_GetTypeInfoCount(This,pctinfo) \
  2787. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  2788. #define IAlgSetup_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  2789. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  2790. #define IAlgSetup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  2791. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  2792. #define IAlgSetup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  2793. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  2794. #define IAlgSetup_Add(This,pszProgID,pszPublisher,pszProduct,pszVersion,nProtocol,pszPorts) \
  2795. (This)->lpVtbl -> Add(This,pszProgID,pszPublisher,pszProduct,pszVersion,nProtocol,pszPorts)
  2796. #define IAlgSetup_Remove(This,pszProgID) \
  2797. (This)->lpVtbl -> Remove(This,pszProgID)
  2798. #endif /* COBJMACROS */
  2799. #endif /* C style interface */
  2800. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IAlgSetup_Add_Proxy(
  2801. IAlgSetup * This,
  2802. /* [in] */ BSTR pszProgID,
  2803. /* [in] */ BSTR pszPublisher,
  2804. /* [in] */ BSTR pszProduct,
  2805. /* [in] */ BSTR pszVersion,
  2806. /* [in] */ short nProtocol,
  2807. /* [in] */ BSTR pszPorts);
  2808. void __RPC_STUB IAlgSetup_Add_Stub(
  2809. IRpcStubBuffer *This,
  2810. IRpcChannelBuffer *_pRpcChannelBuffer,
  2811. PRPC_MESSAGE _pRpcMessage,
  2812. DWORD *_pdwStubPhase);
  2813. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IAlgSetup_Remove_Proxy(
  2814. IAlgSetup * This,
  2815. /* [in] */ BSTR pszProgID);
  2816. void __RPC_STUB IAlgSetup_Remove_Stub(
  2817. IRpcStubBuffer *This,
  2818. IRpcChannelBuffer *_pRpcChannelBuffer,
  2819. PRPC_MESSAGE _pRpcMessage,
  2820. DWORD *_pdwStubPhase);
  2821. #endif /* __IAlgSetup_INTERFACE_DEFINED__ */
  2822. #ifndef __NETCONLib_LIBRARY_DEFINED__
  2823. #define __NETCONLib_LIBRARY_DEFINED__
  2824. /* library NETCONLib */
  2825. /* [helpstring][version][uuid] */
  2826. EXTERN_C const IID LIBID_NETCONLib;
  2827. EXTERN_C const CLSID CLSID_NetSharingManager;
  2828. #ifdef __cplusplus
  2829. class DECLSPEC_UUID("5C63C1AD-3956-4FF8-8486-40034758315B")
  2830. NetSharingManager;
  2831. #endif
  2832. EXTERN_C const CLSID CLSID_AlgSetup;
  2833. #ifdef __cplusplus
  2834. class DECLSPEC_UUID("27D0BCCC-344D-4287-AF37-0C72C161C14C")
  2835. AlgSetup;
  2836. #endif
  2837. #endif /* __NETCONLib_LIBRARY_DEFINED__ */
  2838. /* Additional Prototypes for ALL interfaces */
  2839. unsigned long __RPC_USER BSTR_UserSize( unsigned long *, unsigned long , BSTR * );
  2840. unsigned char * __RPC_USER BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * );
  2841. unsigned char * __RPC_USER BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * );
  2842. void __RPC_USER BSTR_UserFree( unsigned long *, BSTR * );
  2843. unsigned long __RPC_USER VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * );
  2844. unsigned char * __RPC_USER VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * );
  2845. unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * );
  2846. void __RPC_USER VARIANT_UserFree( unsigned long *, VARIANT * );
  2847. /* end of Additional Prototypes */
  2848. #ifdef __cplusplus
  2849. }
  2850. #endif
  2851. #endif