netcon.h 88 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  7. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  8. #endif
  9. #include "rpc.h"
  10. #include "rpcndr.h"
  11. #ifndef __RPCNDR_H_VERSION__
  12. #error This stub requires an updated version of <rpcndr.h>
  13. #endif
  14. #ifndef COM_NO_WINDOWS_H
  15. #include "windows.h"
  16. #include "ole2.h"
  17. #endif
  18. #ifndef __netcon_h__
  19. #define __netcon_h__
  20. #ifndef __IEnumNetConnection_FWD_DEFINED__
  21. #define __IEnumNetConnection_FWD_DEFINED__
  22. typedef struct IEnumNetConnection IEnumNetConnection;
  23. #endif
  24. #ifndef __INetConnection_FWD_DEFINED__
  25. #define __INetConnection_FWD_DEFINED__
  26. typedef struct INetConnection INetConnection;
  27. #endif
  28. #ifndef __INetConnectionManager_FWD_DEFINED__
  29. #define __INetConnectionManager_FWD_DEFINED__
  30. typedef struct INetConnectionManager INetConnectionManager;
  31. #endif
  32. #ifndef __INetConnectionManagerEvents_FWD_DEFINED__
  33. #define __INetConnectionManagerEvents_FWD_DEFINED__
  34. typedef struct INetConnectionManagerEvents INetConnectionManagerEvents;
  35. #endif
  36. #ifndef __INetConnectionConnectUi_FWD_DEFINED__
  37. #define __INetConnectionConnectUi_FWD_DEFINED__
  38. typedef struct INetConnectionConnectUi INetConnectionConnectUi;
  39. #endif
  40. #ifndef __INetConnectionPropertyUi_FWD_DEFINED__
  41. #define __INetConnectionPropertyUi_FWD_DEFINED__
  42. typedef struct INetConnectionPropertyUi INetConnectionPropertyUi;
  43. #endif
  44. #ifndef __INetConnectionPropertyUi2_FWD_DEFINED__
  45. #define __INetConnectionPropertyUi2_FWD_DEFINED__
  46. typedef struct INetConnectionPropertyUi2 INetConnectionPropertyUi2;
  47. #endif
  48. #ifndef __INetConnectionCommonUi_FWD_DEFINED__
  49. #define __INetConnectionCommonUi_FWD_DEFINED__
  50. typedef struct INetConnectionCommonUi INetConnectionCommonUi;
  51. #endif
  52. #ifndef __IEnumNetSharingPortMapping_FWD_DEFINED__
  53. #define __IEnumNetSharingPortMapping_FWD_DEFINED__
  54. typedef struct IEnumNetSharingPortMapping IEnumNetSharingPortMapping;
  55. #endif
  56. #ifndef __INetSharingPortMappingProps_FWD_DEFINED__
  57. #define __INetSharingPortMappingProps_FWD_DEFINED__
  58. typedef struct INetSharingPortMappingProps INetSharingPortMappingProps;
  59. #endif
  60. #ifndef __INetSharingPortMapping_FWD_DEFINED__
  61. #define __INetSharingPortMapping_FWD_DEFINED__
  62. typedef struct INetSharingPortMapping INetSharingPortMapping;
  63. #endif
  64. #ifndef __IEnumNetSharingEveryConnection_FWD_DEFINED__
  65. #define __IEnumNetSharingEveryConnection_FWD_DEFINED__
  66. typedef struct IEnumNetSharingEveryConnection IEnumNetSharingEveryConnection;
  67. #endif
  68. #ifndef __IEnumNetSharingPublicConnection_FWD_DEFINED__
  69. #define __IEnumNetSharingPublicConnection_FWD_DEFINED__
  70. typedef struct IEnumNetSharingPublicConnection IEnumNetSharingPublicConnection;
  71. #endif
  72. #ifndef __IEnumNetSharingPrivateConnection_FWD_DEFINED__
  73. #define __IEnumNetSharingPrivateConnection_FWD_DEFINED__
  74. typedef struct IEnumNetSharingPrivateConnection IEnumNetSharingPrivateConnection;
  75. #endif
  76. #ifndef __INetSharingPortMappingCollection_FWD_DEFINED__
  77. #define __INetSharingPortMappingCollection_FWD_DEFINED__
  78. typedef struct INetSharingPortMappingCollection INetSharingPortMappingCollection;
  79. #endif
  80. #ifndef __INetConnectionProps_FWD_DEFINED__
  81. #define __INetConnectionProps_FWD_DEFINED__
  82. typedef struct INetConnectionProps INetConnectionProps;
  83. #endif
  84. #ifndef __INetSharingConfiguration_FWD_DEFINED__
  85. #define __INetSharingConfiguration_FWD_DEFINED__
  86. typedef struct INetSharingConfiguration INetSharingConfiguration;
  87. #endif
  88. #ifndef __INetSharingEveryConnectionCollection_FWD_DEFINED__
  89. #define __INetSharingEveryConnectionCollection_FWD_DEFINED__
  90. typedef struct INetSharingEveryConnectionCollection INetSharingEveryConnectionCollection;
  91. #endif
  92. #ifndef __INetSharingPublicConnectionCollection_FWD_DEFINED__
  93. #define __INetSharingPublicConnectionCollection_FWD_DEFINED__
  94. typedef struct INetSharingPublicConnectionCollection INetSharingPublicConnectionCollection;
  95. #endif
  96. #ifndef __INetSharingPrivateConnectionCollection_FWD_DEFINED__
  97. #define __INetSharingPrivateConnectionCollection_FWD_DEFINED__
  98. typedef struct INetSharingPrivateConnectionCollection INetSharingPrivateConnectionCollection;
  99. #endif
  100. #ifndef __INetSharingManager_FWD_DEFINED__
  101. #define __INetSharingManager_FWD_DEFINED__
  102. typedef struct INetSharingManager INetSharingManager;
  103. #endif
  104. #ifndef __NetSharingManager_FWD_DEFINED__
  105. #define __NetSharingManager_FWD_DEFINED__
  106. #ifdef __cplusplus
  107. typedef class NetSharingManager NetSharingManager;
  108. #else
  109. typedef struct NetSharingManager NetSharingManager;
  110. #endif
  111. #endif
  112. #include "oaidl.h"
  113. #include "prsht.h"
  114. #ifdef __cplusplus
  115. extern "C" {
  116. #endif
  117. #ifndef __MIDL_user_allocate_free_DEFINED__
  118. #define __MIDL_user_allocate_free_DEFINED__
  119. void *__RPC_API MIDL_user_allocate(size_t);
  120. void __RPC_API MIDL_user_free(void *);
  121. #endif
  122. EXTERN_C const CLSID CLSID_ConnectionManager;
  123. EXTERN_C const CLSID CLSID_ConnectionCommonUi;
  124. EXTERN_C const CLSID CLSID_NetSharingManager;
  125. #define NETCON_HKEYCURRENTUSERPATH TEXT("Software\\Microsoft\\Windows NT\\CurrentVersion\\Network\\Network Connections")
  126. #define NETCON_DESKTOPSHORTCUT TEXT("DesktopShortcut")
  127. #define NETCON_MAX_NAME_LEN 256
  128. extern RPC_IF_HANDLE __MIDL_itf_netcon_0000_v0_0_c_ifspec;
  129. extern RPC_IF_HANDLE __MIDL_itf_netcon_0000_v0_0_s_ifspec;
  130. #ifndef __IEnumNetConnection_INTERFACE_DEFINED__
  131. #define __IEnumNetConnection_INTERFACE_DEFINED__
  132. EXTERN_C const IID IID_IEnumNetConnection;
  133. #if defined(__cplusplus) && !defined(CINTERFACE)
  134. struct IEnumNetConnection : public IUnknown {
  135. public:
  136. virtual HRESULT WINAPI Next(ULONG celt,INetConnection **rgelt,ULONG *pceltFetched) = 0;
  137. virtual HRESULT WINAPI Skip(ULONG celt) = 0;
  138. virtual HRESULT WINAPI Reset(void) = 0;
  139. virtual HRESULT WINAPI Clone(IEnumNetConnection **ppenum) = 0;
  140. };
  141. #else
  142. typedef struct IEnumNetConnectionVtbl {
  143. BEGIN_INTERFACE
  144. HRESULT (WINAPI *QueryInterface)(IEnumNetConnection *This,REFIID riid,void **ppvObject);
  145. ULONG (WINAPI *AddRef)(IEnumNetConnection *This);
  146. ULONG (WINAPI *Release)(IEnumNetConnection *This);
  147. HRESULT (WINAPI *Next)(IEnumNetConnection *This,ULONG celt,INetConnection **rgelt,ULONG *pceltFetched);
  148. HRESULT (WINAPI *Skip)(IEnumNetConnection *This,ULONG celt);
  149. HRESULT (WINAPI *Reset)(IEnumNetConnection *This);
  150. HRESULT (WINAPI *Clone)(IEnumNetConnection *This,IEnumNetConnection **ppenum);
  151. END_INTERFACE
  152. } IEnumNetConnectionVtbl;
  153. struct IEnumNetConnection {
  154. CONST_VTBL struct IEnumNetConnectionVtbl *lpVtbl;
  155. };
  156. #ifdef COBJMACROS
  157. #define IEnumNetConnection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  158. #define IEnumNetConnection_AddRef(This) (This)->lpVtbl->AddRef(This)
  159. #define IEnumNetConnection_Release(This) (This)->lpVtbl->Release(This)
  160. #define IEnumNetConnection_Next(This,celt,rgelt,pceltFetched) (This)->lpVtbl->Next(This,celt,rgelt,pceltFetched)
  161. #define IEnumNetConnection_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
  162. #define IEnumNetConnection_Reset(This) (This)->lpVtbl->Reset(This)
  163. #define IEnumNetConnection_Clone(This,ppenum) (This)->lpVtbl->Clone(This,ppenum)
  164. #endif
  165. #endif
  166. HRESULT WINAPI IEnumNetConnection_Next_Proxy(IEnumNetConnection *This,ULONG celt,INetConnection **rgelt,ULONG *pceltFetched);
  167. void __RPC_STUB IEnumNetConnection_Next_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  168. HRESULT WINAPI IEnumNetConnection_Skip_Proxy(IEnumNetConnection *This,ULONG celt);
  169. void __RPC_STUB IEnumNetConnection_Skip_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  170. HRESULT WINAPI IEnumNetConnection_Reset_Proxy(IEnumNetConnection *This);
  171. void __RPC_STUB IEnumNetConnection_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  172. HRESULT WINAPI IEnumNetConnection_Clone_Proxy(IEnumNetConnection *This,IEnumNetConnection **ppenum);
  173. void __RPC_STUB IEnumNetConnection_Clone_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  174. #endif
  175. #ifndef __INetConnection_INTERFACE_DEFINED__
  176. #define __INetConnection_INTERFACE_DEFINED__
  177. typedef enum tagNETCON_CHARACTERISTIC_FLAGS {
  178. NCCF_NONE = 0,NCCF_ALL_USERS = 0x1,NCCF_ALLOW_DUPLICATION = 0x2,NCCF_ALLOW_REMOVAL = 0x4,NCCF_ALLOW_RENAME = 0x8,NCCF_SHOW_ICON = 0x10,
  179. NCCF_INCOMING_ONLY = 0x20,NCCF_OUTGOING_ONLY = 0x40,NCCF_BRANDED = 0x80,NCCF_SHARED = 0x100,NCCF_BRIDGED = 0x200,NCCF_FIREWALLED = 0x400,
  180. NCCF_DEFAULT = 0x800,NCCF_HOMENET_CAPABLE = 0x1000,NCCF_SHARED_PRIVATE = 0x2000,NCCF_QUARANTINED = 0x4000,NCCF_RESERVED = 0x8000,
  181. NCCF_BLUETOOTH_MASK = 0xf0000,NCCF_LAN_MASK = 0xf00000
  182. } NETCON_CHARACTERISTIC_FLAGS;
  183. typedef enum tagNETCON_STATUS {
  184. NCS_DISCONNECTED = 0,NCS_CONNECTING,NCS_CONNECTED,NCS_DISCONNECTING,
  185. NCS_HARDWARE_NOT_PRESENT,NCS_HARDWARE_DISABLED,NCS_HARDWARE_MALFUNCTION,
  186. NCS_MEDIA_DISCONNECTED,NCS_AUTHENTICATING,NCS_AUTHENTICATION_SUCCEEDED,
  187. NCS_AUTHENTICATION_FAILED,NCS_INVALID_ADDRESS,NCS_CREDENTIALS_REQUIRED
  188. } NETCON_STATUS;
  189. typedef enum tagNETCON_TYPE {
  190. NCT_DIRECT_CONNECT = 0,NCT_INBOUND,NCT_INTERNET,NCT_LAN,NCT_PHONE,NCT_TUNNEL,NCT_BRIDGE
  191. } NETCON_TYPE;
  192. typedef enum tagNETCON_MEDIATYPE {
  193. NCM_NONE = 0,NCM_DIRECT,NCM_ISDN,NCM_LAN,NCM_PHONE,NCM_TUNNEL,
  194. NCM_PPPOE,NCM_BRIDGE,NCM_SHAREDACCESSHOST_LAN,NCM_SHAREDACCESSHOST_RAS
  195. } NETCON_MEDIATYPE;
  196. typedef struct tagNETCON_PROPERTIES {
  197. GUID guidId;
  198. LPWSTR pszwName;
  199. LPWSTR pszwDeviceName;
  200. NETCON_STATUS Status;
  201. NETCON_MEDIATYPE MediaType;
  202. DWORD dwCharacter;
  203. CLSID clsidThisObject;
  204. CLSID clsidUiObject;
  205. } NETCON_PROPERTIES;
  206. #define S_OBJECT_NO_LONGER_VALID ((HRESULT)0x00000002)
  207. EXTERN_C const IID IID_INetConnection;
  208. #if defined(__cplusplus) && !defined(CINTERFACE)
  209. struct INetConnection : public IUnknown {
  210. public:
  211. virtual HRESULT WINAPI Connect(void) = 0;
  212. virtual HRESULT WINAPI Disconnect(void) = 0;
  213. virtual HRESULT WINAPI Delete(void) = 0;
  214. virtual HRESULT WINAPI Duplicate(LPCWSTR pszwDuplicateName,INetConnection **ppCon) = 0;
  215. virtual HRESULT WINAPI GetProperties(NETCON_PROPERTIES **ppProps) = 0;
  216. virtual HRESULT WINAPI GetUiObjectClassId(CLSID *pclsid) = 0;
  217. virtual HRESULT WINAPI Rename(LPCWSTR pszwNewName) = 0;
  218. };
  219. #else
  220. typedef struct INetConnectionVtbl {
  221. BEGIN_INTERFACE
  222. HRESULT (WINAPI *QueryInterface)(INetConnection *This,REFIID riid,void **ppvObject);
  223. ULONG (WINAPI *AddRef)(INetConnection *This);
  224. ULONG (WINAPI *Release)(INetConnection *This);
  225. HRESULT (WINAPI *Connect)(INetConnection *This);
  226. HRESULT (WINAPI *Disconnect)(INetConnection *This);
  227. HRESULT (WINAPI *Delete)(INetConnection *This);
  228. HRESULT (WINAPI *Duplicate)(INetConnection *This,LPCWSTR pszwDuplicateName,INetConnection **ppCon);
  229. HRESULT (WINAPI *GetProperties)(INetConnection *This,NETCON_PROPERTIES **ppProps);
  230. HRESULT (WINAPI *GetUiObjectClassId)(INetConnection *This,CLSID *pclsid);
  231. HRESULT (WINAPI *Rename)(INetConnection *This,LPCWSTR pszwNewName);
  232. END_INTERFACE
  233. } INetConnectionVtbl;
  234. struct INetConnection {
  235. CONST_VTBL struct INetConnectionVtbl *lpVtbl;
  236. };
  237. #ifdef COBJMACROS
  238. #define INetConnection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  239. #define INetConnection_AddRef(This) (This)->lpVtbl->AddRef(This)
  240. #define INetConnection_Release(This) (This)->lpVtbl->Release(This)
  241. #define INetConnection_Connect(This) (This)->lpVtbl->Connect(This)
  242. #define INetConnection_Disconnect(This) (This)->lpVtbl->Disconnect(This)
  243. #define INetConnection_Delete(This) (This)->lpVtbl->Delete(This)
  244. #define INetConnection_Duplicate(This,pszwDuplicateName,ppCon) (This)->lpVtbl->Duplicate(This,pszwDuplicateName,ppCon)
  245. #define INetConnection_GetProperties(This,ppProps) (This)->lpVtbl->GetProperties(This,ppProps)
  246. #define INetConnection_GetUiObjectClassId(This,pclsid) (This)->lpVtbl->GetUiObjectClassId(This,pclsid)
  247. #define INetConnection_Rename(This,pszwNewName) (This)->lpVtbl->Rename(This,pszwNewName)
  248. #endif
  249. #endif
  250. HRESULT WINAPI INetConnection_Connect_Proxy(INetConnection *This);
  251. void __RPC_STUB INetConnection_Connect_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  252. HRESULT WINAPI INetConnection_Disconnect_Proxy(INetConnection *This);
  253. void __RPC_STUB INetConnection_Disconnect_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  254. HRESULT WINAPI INetConnection_Delete_Proxy(INetConnection *This);
  255. void __RPC_STUB INetConnection_Delete_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  256. HRESULT WINAPI INetConnection_Duplicate_Proxy(INetConnection *This,LPCWSTR pszwDuplicateName,INetConnection **ppCon);
  257. void __RPC_STUB INetConnection_Duplicate_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  258. HRESULT WINAPI INetConnection_GetProperties_Proxy(INetConnection *This,NETCON_PROPERTIES **ppProps);
  259. void __RPC_STUB INetConnection_GetProperties_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  260. HRESULT WINAPI INetConnection_GetUiObjectClassId_Proxy(INetConnection *This,CLSID *pclsid);
  261. void __RPC_STUB INetConnection_GetUiObjectClassId_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  262. HRESULT WINAPI INetConnection_Rename_Proxy(INetConnection *This,LPCWSTR pszwNewName);
  263. void __RPC_STUB INetConnection_Rename_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  264. #endif
  265. STDAPI_(VOID) NcFreeNetconProperties(NETCON_PROPERTIES *pProps);
  266. STDAPI_(WINBOOL) NcIsValidConnectionName(PCWSTR pszwName);
  267. extern RPC_IF_HANDLE __MIDL_itf_netcon_0120_v0_0_c_ifspec;
  268. extern RPC_IF_HANDLE __MIDL_itf_netcon_0120_v0_0_s_ifspec;
  269. #ifndef __INetConnectionManager_INTERFACE_DEFINED__
  270. #define __INetConnectionManager_INTERFACE_DEFINED__
  271. typedef enum tagNETCONMGR_ENUM_FLAGS {
  272. NCME_DEFAULT = 0
  273. } NETCONMGR_ENUM_FLAGS;
  274. EXTERN_C const IID IID_INetConnectionManager;
  275. #if defined(__cplusplus) && !defined(CINTERFACE)
  276. struct INetConnectionManager : public IUnknown {
  277. public:
  278. virtual HRESULT WINAPI EnumConnections(NETCONMGR_ENUM_FLAGS Flags,IEnumNetConnection **ppEnum) = 0;
  279. };
  280. #else
  281. typedef struct INetConnectionManagerVtbl {
  282. BEGIN_INTERFACE
  283. HRESULT (WINAPI *QueryInterface)(INetConnectionManager *This,REFIID riid,void **ppvObject);
  284. ULONG (WINAPI *AddRef)(INetConnectionManager *This);
  285. ULONG (WINAPI *Release)(INetConnectionManager *This);
  286. HRESULT (WINAPI *EnumConnections)(INetConnectionManager *This,NETCONMGR_ENUM_FLAGS Flags,IEnumNetConnection **ppEnum);
  287. END_INTERFACE
  288. } INetConnectionManagerVtbl;
  289. struct INetConnectionManager {
  290. CONST_VTBL struct INetConnectionManagerVtbl *lpVtbl;
  291. };
  292. #ifdef COBJMACROS
  293. #define INetConnectionManager_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  294. #define INetConnectionManager_AddRef(This) (This)->lpVtbl->AddRef(This)
  295. #define INetConnectionManager_Release(This) (This)->lpVtbl->Release(This)
  296. #define INetConnectionManager_EnumConnections(This,Flags,ppEnum) (This)->lpVtbl->EnumConnections(This,Flags,ppEnum)
  297. #endif
  298. #endif
  299. HRESULT WINAPI INetConnectionManager_EnumConnections_Proxy(INetConnectionManager *This,NETCONMGR_ENUM_FLAGS Flags,IEnumNetConnection **ppEnum);
  300. void __RPC_STUB INetConnectionManager_EnumConnections_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  301. #endif
  302. #ifndef __INetConnectionManagerEvents_INTERFACE_DEFINED__
  303. #define __INetConnectionManagerEvents_INTERFACE_DEFINED__
  304. EXTERN_C const IID IID_INetConnectionManagerEvents;
  305. #if defined(__cplusplus) && !defined(CINTERFACE)
  306. struct INetConnectionManagerEvents : public IUnknown {
  307. public:
  308. virtual HRESULT WINAPI RefreshConnections(void) = 0;
  309. virtual HRESULT WINAPI Enable(void) = 0;
  310. virtual HRESULT WINAPI Disable(ULONG ulDisableTimeout) = 0;
  311. };
  312. #else
  313. typedef struct INetConnectionManagerEventsVtbl {
  314. BEGIN_INTERFACE
  315. HRESULT (WINAPI *QueryInterface)(INetConnectionManagerEvents *This,REFIID riid,void **ppvObject);
  316. ULONG (WINAPI *AddRef)(INetConnectionManagerEvents *This);
  317. ULONG (WINAPI *Release)(INetConnectionManagerEvents *This);
  318. HRESULT (WINAPI *RefreshConnections)(INetConnectionManagerEvents *This);
  319. HRESULT (WINAPI *Enable)(INetConnectionManagerEvents *This);
  320. HRESULT (WINAPI *Disable)(INetConnectionManagerEvents *This,ULONG ulDisableTimeout);
  321. END_INTERFACE
  322. } INetConnectionManagerEventsVtbl;
  323. struct INetConnectionManagerEvents {
  324. CONST_VTBL struct INetConnectionManagerEventsVtbl *lpVtbl;
  325. };
  326. #ifdef COBJMACROS
  327. #define INetConnectionManagerEvents_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  328. #define INetConnectionManagerEvents_AddRef(This) (This)->lpVtbl->AddRef(This)
  329. #define INetConnectionManagerEvents_Release(This) (This)->lpVtbl->Release(This)
  330. #define INetConnectionManagerEvents_RefreshConnections(This) (This)->lpVtbl->RefreshConnections(This)
  331. #define INetConnectionManagerEvents_Enable(This) (This)->lpVtbl->Enable(This)
  332. #define INetConnectionManagerEvents_Disable(This,ulDisableTimeout) (This)->lpVtbl->Disable(This,ulDisableTimeout)
  333. #endif
  334. #endif
  335. HRESULT WINAPI INetConnectionManagerEvents_RefreshConnections_Proxy(INetConnectionManagerEvents *This);
  336. void __RPC_STUB INetConnectionManagerEvents_RefreshConnections_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  337. HRESULT WINAPI INetConnectionManagerEvents_Enable_Proxy(INetConnectionManagerEvents *This);
  338. void __RPC_STUB INetConnectionManagerEvents_Enable_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  339. HRESULT WINAPI INetConnectionManagerEvents_Disable_Proxy(INetConnectionManagerEvents *This,ULONG ulDisableTimeout);
  340. void __RPC_STUB INetConnectionManagerEvents_Disable_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  341. #endif
  342. #ifndef __INetConnectionConnectUi_INTERFACE_DEFINED__
  343. #define __INetConnectionConnectUi_INTERFACE_DEFINED__
  344. typedef enum tagNETCONUI_CONNECT_FLAGS {
  345. NCUC_DEFAULT = 0,NCUC_NO_UI = 0x1,NCUC_ENABLE_DISABLE = 0x2
  346. } NETCONUI_CONNECT_FLAGS;
  347. EXTERN_C const IID IID_INetConnectionConnectUi;
  348. #if defined(__cplusplus) && !defined(CINTERFACE)
  349. struct INetConnectionConnectUi : public IUnknown {
  350. public:
  351. virtual HRESULT WINAPI SetConnection(INetConnection *pCon) = 0;
  352. virtual HRESULT WINAPI Connect(HWND hwndParent,DWORD dwFlags) = 0;
  353. virtual HRESULT WINAPI Disconnect(HWND hwndParent,DWORD dwFlags) = 0;
  354. };
  355. #else
  356. typedef struct INetConnectionConnectUiVtbl {
  357. BEGIN_INTERFACE
  358. HRESULT (WINAPI *QueryInterface)(INetConnectionConnectUi *This,REFIID riid,void **ppvObject);
  359. ULONG (WINAPI *AddRef)(INetConnectionConnectUi *This);
  360. ULONG (WINAPI *Release)(INetConnectionConnectUi *This);
  361. HRESULT (WINAPI *SetConnection)(INetConnectionConnectUi *This,INetConnection *pCon);
  362. HRESULT (WINAPI *Connect)(INetConnectionConnectUi *This,HWND hwndParent,DWORD dwFlags);
  363. HRESULT (WINAPI *Disconnect)(INetConnectionConnectUi *This,HWND hwndParent,DWORD dwFlags);
  364. END_INTERFACE
  365. } INetConnectionConnectUiVtbl;
  366. struct INetConnectionConnectUi {
  367. CONST_VTBL struct INetConnectionConnectUiVtbl *lpVtbl;
  368. };
  369. #ifdef COBJMACROS
  370. #define INetConnectionConnectUi_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  371. #define INetConnectionConnectUi_AddRef(This) (This)->lpVtbl->AddRef(This)
  372. #define INetConnectionConnectUi_Release(This) (This)->lpVtbl->Release(This)
  373. #define INetConnectionConnectUi_SetConnection(This,pCon) (This)->lpVtbl->SetConnection(This,pCon)
  374. #define INetConnectionConnectUi_Connect(This,hwndParent,dwFlags) (This)->lpVtbl->Connect(This,hwndParent,dwFlags)
  375. #define INetConnectionConnectUi_Disconnect(This,hwndParent,dwFlags) (This)->lpVtbl->Disconnect(This,hwndParent,dwFlags)
  376. #endif
  377. #endif
  378. HRESULT WINAPI INetConnectionConnectUi_SetConnection_Proxy(INetConnectionConnectUi *This,INetConnection *pCon);
  379. void __RPC_STUB INetConnectionConnectUi_SetConnection_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  380. HRESULT WINAPI INetConnectionConnectUi_Connect_Proxy(INetConnectionConnectUi *This,HWND hwndParent,DWORD dwFlags);
  381. void __RPC_STUB INetConnectionConnectUi_Connect_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  382. HRESULT WINAPI INetConnectionConnectUi_Disconnect_Proxy(INetConnectionConnectUi *This,HWND hwndParent,DWORD dwFlags);
  383. void __RPC_STUB INetConnectionConnectUi_Disconnect_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  384. #endif
  385. #ifndef __INetConnectionPropertyUi_INTERFACE_DEFINED__
  386. #define __INetConnectionPropertyUi_INTERFACE_DEFINED__
  387. EXTERN_C const IID IID_INetConnectionPropertyUi;
  388. #if defined(__cplusplus) && !defined(CINTERFACE)
  389. struct INetConnectionPropertyUi : public IUnknown {
  390. public:
  391. virtual HRESULT WINAPI SetConnection(INetConnection *pCon) = 0;
  392. virtual HRESULT WINAPI AddPages(HWND hwndParent,LPFNADDPROPSHEETPAGE pfnAddPage,LPARAM lParam) = 0;
  393. };
  394. #else
  395. typedef struct INetConnectionPropertyUiVtbl {
  396. BEGIN_INTERFACE
  397. HRESULT (WINAPI *QueryInterface)(INetConnectionPropertyUi *This,REFIID riid,void **ppvObject);
  398. ULONG (WINAPI *AddRef)(INetConnectionPropertyUi *This);
  399. ULONG (WINAPI *Release)(INetConnectionPropertyUi *This);
  400. HRESULT (WINAPI *SetConnection)(INetConnectionPropertyUi *This,INetConnection *pCon);
  401. HRESULT (WINAPI *AddPages)(INetConnectionPropertyUi *This,HWND hwndParent,LPFNADDPROPSHEETPAGE pfnAddPage,LPARAM lParam);
  402. END_INTERFACE
  403. } INetConnectionPropertyUiVtbl;
  404. struct INetConnectionPropertyUi {
  405. CONST_VTBL struct INetConnectionPropertyUiVtbl *lpVtbl;
  406. };
  407. #ifdef COBJMACROS
  408. #define INetConnectionPropertyUi_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  409. #define INetConnectionPropertyUi_AddRef(This) (This)->lpVtbl->AddRef(This)
  410. #define INetConnectionPropertyUi_Release(This) (This)->lpVtbl->Release(This)
  411. #define INetConnectionPropertyUi_SetConnection(This,pCon) (This)->lpVtbl->SetConnection(This,pCon)
  412. #define INetConnectionPropertyUi_AddPages(This,hwndParent,pfnAddPage,lParam) (This)->lpVtbl->AddPages(This,hwndParent,pfnAddPage,lParam)
  413. #endif
  414. #endif
  415. HRESULT WINAPI INetConnectionPropertyUi_SetConnection_Proxy(INetConnectionPropertyUi *This,INetConnection *pCon);
  416. void __RPC_STUB INetConnectionPropertyUi_SetConnection_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  417. HRESULT WINAPI INetConnectionPropertyUi_AddPages_Proxy(INetConnectionPropertyUi *This,HWND hwndParent,LPFNADDPROPSHEETPAGE pfnAddPage,LPARAM lParam);
  418. void __RPC_STUB INetConnectionPropertyUi_AddPages_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  419. #endif
  420. #ifndef __INetConnectionPropertyUi2_INTERFACE_DEFINED__
  421. #define __INetConnectionPropertyUi2_INTERFACE_DEFINED__
  422. EXTERN_C const IID IID_INetConnectionPropertyUi2;
  423. #if defined(__cplusplus) && !defined(CINTERFACE)
  424. struct INetConnectionPropertyUi2 : public INetConnectionPropertyUi {
  425. public:
  426. virtual HRESULT WINAPI GetIcon(DWORD dwSize,HICON *phIcon) = 0;
  427. };
  428. #else
  429. typedef struct INetConnectionPropertyUi2Vtbl {
  430. BEGIN_INTERFACE
  431. HRESULT (WINAPI *QueryInterface)(INetConnectionPropertyUi2 *This,REFIID riid,void **ppvObject);
  432. ULONG (WINAPI *AddRef)(INetConnectionPropertyUi2 *This);
  433. ULONG (WINAPI *Release)(INetConnectionPropertyUi2 *This);
  434. HRESULT (WINAPI *SetConnection)(INetConnectionPropertyUi2 *This,INetConnection *pCon);
  435. HRESULT (WINAPI *AddPages)(INetConnectionPropertyUi2 *This,HWND hwndParent,LPFNADDPROPSHEETPAGE pfnAddPage,LPARAM lParam);
  436. HRESULT (WINAPI *GetIcon)(INetConnectionPropertyUi2 *This,DWORD dwSize,HICON *phIcon);
  437. END_INTERFACE
  438. } INetConnectionPropertyUi2Vtbl;
  439. struct INetConnectionPropertyUi2 {
  440. CONST_VTBL struct INetConnectionPropertyUi2Vtbl *lpVtbl;
  441. };
  442. #ifdef COBJMACROS
  443. #define INetConnectionPropertyUi2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  444. #define INetConnectionPropertyUi2_AddRef(This) (This)->lpVtbl->AddRef(This)
  445. #define INetConnectionPropertyUi2_Release(This) (This)->lpVtbl->Release(This)
  446. #define INetConnectionPropertyUi2_SetConnection(This,pCon) (This)->lpVtbl->SetConnection(This,pCon)
  447. #define INetConnectionPropertyUi2_AddPages(This,hwndParent,pfnAddPage,lParam) (This)->lpVtbl->AddPages(This,hwndParent,pfnAddPage,lParam)
  448. #define INetConnectionPropertyUi2_GetIcon(This,dwSize,phIcon) (This)->lpVtbl->GetIcon(This,dwSize,phIcon)
  449. #endif
  450. #endif
  451. HRESULT WINAPI INetConnectionPropertyUi2_GetIcon_Proxy(INetConnectionPropertyUi2 *This,DWORD dwSize,HICON *phIcon);
  452. void __RPC_STUB INetConnectionPropertyUi2_GetIcon_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  453. #endif
  454. #ifndef __INetConnectionCommonUi_INTERFACE_DEFINED__
  455. #define __INetConnectionCommonUi_INTERFACE_DEFINED__
  456. typedef enum tagNETCON_CHOOSEFLAGS {
  457. NCCHF_CONNECT = 0x1,NCCHF_CAPTION = 0x2,NCCHF_OKBTTNTEXT = 0x4,NCCHF_DISABLENEW = 0x8,NCCHF_AUTOSELECT = 0x10
  458. } NETCON_CHOOSEFLAGS;
  459. typedef enum tagNETCON_CHOOSETYPE {
  460. NCCHT_DIRECT_CONNECT = 0x1,NCCHT_LAN = 0x2,NCCHT_PHONE = 0x4,NCCHT_TUNNEL = 0x8,NCCHT_ISDN = 0x10,NCCHT_ALL = 0x1f
  461. } NETCON_CHOOSETYPE;
  462. typedef struct tagNETCON_CHOOSECONN {
  463. DWORD lStructSize;
  464. HWND hwndParent;
  465. DWORD dwFlags;
  466. DWORD dwTypeMask;
  467. LPCWSTR lpstrCaption;
  468. LPCWSTR lpstrOkBttnText;
  469. } NETCON_CHOOSECONN;
  470. EXTERN_C const IID IID_INetConnectionCommonUi;
  471. #if defined(__cplusplus) && !defined(CINTERFACE)
  472. struct INetConnectionCommonUi : public IUnknown {
  473. public:
  474. virtual HRESULT WINAPI ChooseConnection(NETCON_CHOOSECONN *pChooseConn,INetConnection **ppCon) = 0;
  475. virtual HRESULT WINAPI ShowConnectionProperties(HWND hwndParent,INetConnection *pCon) = 0;
  476. virtual HRESULT WINAPI StartNewConnectionWizard(HWND hwndParent,INetConnection **ppCon) = 0;
  477. };
  478. #else
  479. typedef struct INetConnectionCommonUiVtbl {
  480. BEGIN_INTERFACE
  481. HRESULT (WINAPI *QueryInterface)(INetConnectionCommonUi *This,REFIID riid,void **ppvObject);
  482. ULONG (WINAPI *AddRef)(INetConnectionCommonUi *This);
  483. ULONG (WINAPI *Release)(INetConnectionCommonUi *This);
  484. HRESULT (WINAPI *ChooseConnection)(INetConnectionCommonUi *This,NETCON_CHOOSECONN *pChooseConn,INetConnection **ppCon);
  485. HRESULT (WINAPI *ShowConnectionProperties)(INetConnectionCommonUi *This,HWND hwndParent,INetConnection *pCon);
  486. HRESULT (WINAPI *StartNewConnectionWizard)(INetConnectionCommonUi *This,HWND hwndParent,INetConnection **ppCon);
  487. END_INTERFACE
  488. } INetConnectionCommonUiVtbl;
  489. struct INetConnectionCommonUi {
  490. CONST_VTBL struct INetConnectionCommonUiVtbl *lpVtbl;
  491. };
  492. #ifdef COBJMACROS
  493. #define INetConnectionCommonUi_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  494. #define INetConnectionCommonUi_AddRef(This) (This)->lpVtbl->AddRef(This)
  495. #define INetConnectionCommonUi_Release(This) (This)->lpVtbl->Release(This)
  496. #define INetConnectionCommonUi_ChooseConnection(This,pChooseConn,ppCon) (This)->lpVtbl->ChooseConnection(This,pChooseConn,ppCon)
  497. #define INetConnectionCommonUi_ShowConnectionProperties(This,hwndParent,pCon) (This)->lpVtbl->ShowConnectionProperties(This,hwndParent,pCon)
  498. #define INetConnectionCommonUi_StartNewConnectionWizard(This,hwndParent,ppCon) (This)->lpVtbl->StartNewConnectionWizard(This,hwndParent,ppCon)
  499. #endif
  500. #endif
  501. HRESULT WINAPI INetConnectionCommonUi_ChooseConnection_Proxy(INetConnectionCommonUi *This,NETCON_CHOOSECONN *pChooseConn,INetConnection **ppCon);
  502. void __RPC_STUB INetConnectionCommonUi_ChooseConnection_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  503. HRESULT WINAPI INetConnectionCommonUi_ShowConnectionProperties_Proxy(INetConnectionCommonUi *This,HWND hwndParent,INetConnection *pCon);
  504. void __RPC_STUB INetConnectionCommonUi_ShowConnectionProperties_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  505. HRESULT WINAPI INetConnectionCommonUi_StartNewConnectionWizard_Proxy(INetConnectionCommonUi *This,HWND hwndParent,INetConnection **ppCon);
  506. void __RPC_STUB INetConnectionCommonUi_StartNewConnectionWizard_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  507. #endif
  508. #ifndef __IEnumNetSharingPortMapping_INTERFACE_DEFINED__
  509. #define __IEnumNetSharingPortMapping_INTERFACE_DEFINED__
  510. EXTERN_C const IID IID_IEnumNetSharingPortMapping;
  511. #if defined(__cplusplus) && !defined(CINTERFACE)
  512. struct IEnumNetSharingPortMapping : public IUnknown {
  513. public:
  514. virtual HRESULT WINAPI Next(ULONG celt,VARIANT *rgVar,ULONG *pceltFetched) = 0;
  515. virtual HRESULT WINAPI Skip(ULONG celt) = 0;
  516. virtual HRESULT WINAPI Reset(void) = 0;
  517. virtual HRESULT WINAPI Clone(IEnumNetSharingPortMapping **ppenum) = 0;
  518. };
  519. #else
  520. typedef struct IEnumNetSharingPortMappingVtbl {
  521. BEGIN_INTERFACE
  522. HRESULT (WINAPI *QueryInterface)(IEnumNetSharingPortMapping *This,REFIID riid,void **ppvObject);
  523. ULONG (WINAPI *AddRef)(IEnumNetSharingPortMapping *This);
  524. ULONG (WINAPI *Release)(IEnumNetSharingPortMapping *This);
  525. HRESULT (WINAPI *Next)(IEnumNetSharingPortMapping *This,ULONG celt,VARIANT *rgVar,ULONG *pceltFetched);
  526. HRESULT (WINAPI *Skip)(IEnumNetSharingPortMapping *This,ULONG celt);
  527. HRESULT (WINAPI *Reset)(IEnumNetSharingPortMapping *This);
  528. HRESULT (WINAPI *Clone)(IEnumNetSharingPortMapping *This,IEnumNetSharingPortMapping **ppenum);
  529. END_INTERFACE
  530. } IEnumNetSharingPortMappingVtbl;
  531. struct IEnumNetSharingPortMapping {
  532. CONST_VTBL struct IEnumNetSharingPortMappingVtbl *lpVtbl;
  533. };
  534. #ifdef COBJMACROS
  535. #define IEnumNetSharingPortMapping_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  536. #define IEnumNetSharingPortMapping_AddRef(This) (This)->lpVtbl->AddRef(This)
  537. #define IEnumNetSharingPortMapping_Release(This) (This)->lpVtbl->Release(This)
  538. #define IEnumNetSharingPortMapping_Next(This,celt,rgVar,pceltFetched) (This)->lpVtbl->Next(This,celt,rgVar,pceltFetched)
  539. #define IEnumNetSharingPortMapping_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
  540. #define IEnumNetSharingPortMapping_Reset(This) (This)->lpVtbl->Reset(This)
  541. #define IEnumNetSharingPortMapping_Clone(This,ppenum) (This)->lpVtbl->Clone(This,ppenum)
  542. #endif
  543. #endif
  544. HRESULT WINAPI IEnumNetSharingPortMapping_Next_Proxy(IEnumNetSharingPortMapping *This,ULONG celt,VARIANT *rgVar,ULONG *pceltFetched);
  545. void __RPC_STUB IEnumNetSharingPortMapping_Next_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  546. HRESULT WINAPI IEnumNetSharingPortMapping_Skip_Proxy(IEnumNetSharingPortMapping *This,ULONG celt);
  547. void __RPC_STUB IEnumNetSharingPortMapping_Skip_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  548. HRESULT WINAPI IEnumNetSharingPortMapping_Reset_Proxy(IEnumNetSharingPortMapping *This);
  549. void __RPC_STUB IEnumNetSharingPortMapping_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  550. HRESULT WINAPI IEnumNetSharingPortMapping_Clone_Proxy(IEnumNetSharingPortMapping *This,IEnumNetSharingPortMapping **ppenum);
  551. void __RPC_STUB IEnumNetSharingPortMapping_Clone_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  552. #endif
  553. #ifndef __INetSharingPortMappingProps_INTERFACE_DEFINED__
  554. #define __INetSharingPortMappingProps_INTERFACE_DEFINED__
  555. EXTERN_C const IID IID_INetSharingPortMappingProps;
  556. #if defined(__cplusplus) && !defined(CINTERFACE)
  557. struct INetSharingPortMappingProps : public IDispatch {
  558. public:
  559. virtual HRESULT WINAPI get_Name(BSTR *pbstrName) = 0;
  560. virtual HRESULT WINAPI get_IPProtocol(UCHAR *pucIPProt) = 0;
  561. virtual HRESULT WINAPI get_ExternalPort(__LONG32 *pusPort) = 0;
  562. virtual HRESULT WINAPI get_InternalPort(__LONG32 *pusPort) = 0;
  563. virtual HRESULT WINAPI get_Options(__LONG32 *pdwOptions) = 0;
  564. virtual HRESULT WINAPI get_TargetName(BSTR *pbstrTargetName) = 0;
  565. virtual HRESULT WINAPI get_TargetIPAddress(BSTR *pbstrTargetIPAddress) = 0;
  566. virtual HRESULT WINAPI get_Enabled(VARIANT_BOOL *pbool) = 0;
  567. };
  568. #else
  569. typedef struct INetSharingPortMappingPropsVtbl {
  570. BEGIN_INTERFACE
  571. HRESULT (WINAPI *QueryInterface)(INetSharingPortMappingProps *This,REFIID riid,void **ppvObject);
  572. ULONG (WINAPI *AddRef)(INetSharingPortMappingProps *This);
  573. ULONG (WINAPI *Release)(INetSharingPortMappingProps *This);
  574. HRESULT (WINAPI *GetTypeInfoCount)(INetSharingPortMappingProps *This,UINT *pctinfo);
  575. HRESULT (WINAPI *GetTypeInfo)(INetSharingPortMappingProps *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  576. HRESULT (WINAPI *GetIDsOfNames)(INetSharingPortMappingProps *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  577. HRESULT (WINAPI *Invoke)(INetSharingPortMappingProps *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  578. HRESULT (WINAPI *get_Name)(INetSharingPortMappingProps *This,BSTR *pbstrName);
  579. HRESULT (WINAPI *get_IPProtocol)(INetSharingPortMappingProps *This,UCHAR *pucIPProt);
  580. HRESULT (WINAPI *get_ExternalPort)(INetSharingPortMappingProps *This,__LONG32 *pusPort);
  581. HRESULT (WINAPI *get_InternalPort)(INetSharingPortMappingProps *This,__LONG32 *pusPort);
  582. HRESULT (WINAPI *get_Options)(INetSharingPortMappingProps *This,__LONG32 *pdwOptions);
  583. HRESULT (WINAPI *get_TargetName)(INetSharingPortMappingProps *This,BSTR *pbstrTargetName);
  584. HRESULT (WINAPI *get_TargetIPAddress)(INetSharingPortMappingProps *This,BSTR *pbstrTargetIPAddress);
  585. HRESULT (WINAPI *get_Enabled)(INetSharingPortMappingProps *This,VARIANT_BOOL *pbool);
  586. END_INTERFACE
  587. } INetSharingPortMappingPropsVtbl;
  588. struct INetSharingPortMappingProps {
  589. CONST_VTBL struct INetSharingPortMappingPropsVtbl *lpVtbl;
  590. };
  591. #ifdef COBJMACROS
  592. #define INetSharingPortMappingProps_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  593. #define INetSharingPortMappingProps_AddRef(This) (This)->lpVtbl->AddRef(This)
  594. #define INetSharingPortMappingProps_Release(This) (This)->lpVtbl->Release(This)
  595. #define INetSharingPortMappingProps_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  596. #define INetSharingPortMappingProps_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  597. #define INetSharingPortMappingProps_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  598. #define INetSharingPortMappingProps_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  599. #define INetSharingPortMappingProps_get_Name(This,pbstrName) (This)->lpVtbl->get_Name(This,pbstrName)
  600. #define INetSharingPortMappingProps_get_IPProtocol(This,pucIPProt) (This)->lpVtbl->get_IPProtocol(This,pucIPProt)
  601. #define INetSharingPortMappingProps_get_ExternalPort(This,pusPort) (This)->lpVtbl->get_ExternalPort(This,pusPort)
  602. #define INetSharingPortMappingProps_get_InternalPort(This,pusPort) (This)->lpVtbl->get_InternalPort(This,pusPort)
  603. #define INetSharingPortMappingProps_get_Options(This,pdwOptions) (This)->lpVtbl->get_Options(This,pdwOptions)
  604. #define INetSharingPortMappingProps_get_TargetName(This,pbstrTargetName) (This)->lpVtbl->get_TargetName(This,pbstrTargetName)
  605. #define INetSharingPortMappingProps_get_TargetIPAddress(This,pbstrTargetIPAddress) (This)->lpVtbl->get_TargetIPAddress(This,pbstrTargetIPAddress)
  606. #define INetSharingPortMappingProps_get_Enabled(This,pbool) (This)->lpVtbl->get_Enabled(This,pbool)
  607. #endif
  608. #endif
  609. HRESULT WINAPI INetSharingPortMappingProps_get_Name_Proxy(INetSharingPortMappingProps *This,BSTR *pbstrName);
  610. void __RPC_STUB INetSharingPortMappingProps_get_Name_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  611. HRESULT WINAPI INetSharingPortMappingProps_get_IPProtocol_Proxy(INetSharingPortMappingProps *This,UCHAR *pucIPProt);
  612. void __RPC_STUB INetSharingPortMappingProps_get_IPProtocol_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  613. HRESULT WINAPI INetSharingPortMappingProps_get_ExternalPort_Proxy(INetSharingPortMappingProps *This,__LONG32 *pusPort);
  614. void __RPC_STUB INetSharingPortMappingProps_get_ExternalPort_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  615. HRESULT WINAPI INetSharingPortMappingProps_get_InternalPort_Proxy(INetSharingPortMappingProps *This,__LONG32 *pusPort);
  616. void __RPC_STUB INetSharingPortMappingProps_get_InternalPort_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  617. HRESULT WINAPI INetSharingPortMappingProps_get_Options_Proxy(INetSharingPortMappingProps *This,__LONG32 *pdwOptions);
  618. void __RPC_STUB INetSharingPortMappingProps_get_Options_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  619. HRESULT WINAPI INetSharingPortMappingProps_get_TargetName_Proxy(INetSharingPortMappingProps *This,BSTR *pbstrTargetName);
  620. void __RPC_STUB INetSharingPortMappingProps_get_TargetName_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  621. HRESULT WINAPI INetSharingPortMappingProps_get_TargetIPAddress_Proxy(INetSharingPortMappingProps *This,BSTR *pbstrTargetIPAddress);
  622. void __RPC_STUB INetSharingPortMappingProps_get_TargetIPAddress_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  623. HRESULT WINAPI INetSharingPortMappingProps_get_Enabled_Proxy(INetSharingPortMappingProps *This,VARIANT_BOOL *pbool);
  624. void __RPC_STUB INetSharingPortMappingProps_get_Enabled_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  625. #endif
  626. #ifndef __INetSharingPortMapping_INTERFACE_DEFINED__
  627. #define __INetSharingPortMapping_INTERFACE_DEFINED__
  628. EXTERN_C const IID IID_INetSharingPortMapping;
  629. #if defined(__cplusplus) && !defined(CINTERFACE)
  630. struct INetSharingPortMapping : public IDispatch {
  631. public:
  632. virtual HRESULT WINAPI Disable(void) = 0;
  633. virtual HRESULT WINAPI Enable(void) = 0;
  634. virtual HRESULT WINAPI get_Properties(INetSharingPortMappingProps **ppNSPMP) = 0;
  635. virtual HRESULT WINAPI Delete(void) = 0;
  636. };
  637. #else
  638. typedef struct INetSharingPortMappingVtbl {
  639. BEGIN_INTERFACE
  640. HRESULT (WINAPI *QueryInterface)(INetSharingPortMapping *This,REFIID riid,void **ppvObject);
  641. ULONG (WINAPI *AddRef)(INetSharingPortMapping *This);
  642. ULONG (WINAPI *Release)(INetSharingPortMapping *This);
  643. HRESULT (WINAPI *GetTypeInfoCount)(INetSharingPortMapping *This,UINT *pctinfo);
  644. HRESULT (WINAPI *GetTypeInfo)(INetSharingPortMapping *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  645. HRESULT (WINAPI *GetIDsOfNames)(INetSharingPortMapping *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  646. HRESULT (WINAPI *Invoke)(INetSharingPortMapping *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  647. HRESULT (WINAPI *Disable)(INetSharingPortMapping *This);
  648. HRESULT (WINAPI *Enable)(INetSharingPortMapping *This);
  649. HRESULT (WINAPI *get_Properties)(INetSharingPortMapping *This,INetSharingPortMappingProps **ppNSPMP);
  650. HRESULT (WINAPI *Delete)(INetSharingPortMapping *This);
  651. END_INTERFACE
  652. } INetSharingPortMappingVtbl;
  653. struct INetSharingPortMapping {
  654. CONST_VTBL struct INetSharingPortMappingVtbl *lpVtbl;
  655. };
  656. #ifdef COBJMACROS
  657. #define INetSharingPortMapping_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  658. #define INetSharingPortMapping_AddRef(This) (This)->lpVtbl->AddRef(This)
  659. #define INetSharingPortMapping_Release(This) (This)->lpVtbl->Release(This)
  660. #define INetSharingPortMapping_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  661. #define INetSharingPortMapping_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  662. #define INetSharingPortMapping_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  663. #define INetSharingPortMapping_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  664. #define INetSharingPortMapping_Disable(This) (This)->lpVtbl->Disable(This)
  665. #define INetSharingPortMapping_Enable(This) (This)->lpVtbl->Enable(This)
  666. #define INetSharingPortMapping_get_Properties(This,ppNSPMP) (This)->lpVtbl->get_Properties(This,ppNSPMP)
  667. #define INetSharingPortMapping_Delete(This) (This)->lpVtbl->Delete(This)
  668. #endif
  669. #endif
  670. HRESULT WINAPI INetSharingPortMapping_Disable_Proxy(INetSharingPortMapping *This);
  671. void __RPC_STUB INetSharingPortMapping_Disable_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  672. HRESULT WINAPI INetSharingPortMapping_Enable_Proxy(INetSharingPortMapping *This);
  673. void __RPC_STUB INetSharingPortMapping_Enable_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  674. HRESULT WINAPI INetSharingPortMapping_get_Properties_Proxy(INetSharingPortMapping *This,INetSharingPortMappingProps **ppNSPMP);
  675. void __RPC_STUB INetSharingPortMapping_get_Properties_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  676. HRESULT WINAPI INetSharingPortMapping_Delete_Proxy(INetSharingPortMapping *This);
  677. void __RPC_STUB INetSharingPortMapping_Delete_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  678. #endif
  679. #ifndef __IEnumNetSharingEveryConnection_INTERFACE_DEFINED__
  680. #define __IEnumNetSharingEveryConnection_INTERFACE_DEFINED__
  681. EXTERN_C const IID IID_IEnumNetSharingEveryConnection;
  682. #if defined(__cplusplus) && !defined(CINTERFACE)
  683. struct IEnumNetSharingEveryConnection : public IUnknown {
  684. public:
  685. virtual HRESULT WINAPI Next(ULONG celt,VARIANT *rgVar,ULONG *pceltFetched) = 0;
  686. virtual HRESULT WINAPI Skip(ULONG celt) = 0;
  687. virtual HRESULT WINAPI Reset(void) = 0;
  688. virtual HRESULT WINAPI Clone(IEnumNetSharingEveryConnection **ppenum) = 0;
  689. };
  690. #else
  691. typedef struct IEnumNetSharingEveryConnectionVtbl {
  692. BEGIN_INTERFACE
  693. HRESULT (WINAPI *QueryInterface)(IEnumNetSharingEveryConnection *This,REFIID riid,void **ppvObject);
  694. ULONG (WINAPI *AddRef)(IEnumNetSharingEveryConnection *This);
  695. ULONG (WINAPI *Release)(IEnumNetSharingEveryConnection *This);
  696. HRESULT (WINAPI *Next)(IEnumNetSharingEveryConnection *This,ULONG celt,VARIANT *rgVar,ULONG *pceltFetched);
  697. HRESULT (WINAPI *Skip)(IEnumNetSharingEveryConnection *This,ULONG celt);
  698. HRESULT (WINAPI *Reset)(IEnumNetSharingEveryConnection *This);
  699. HRESULT (WINAPI *Clone)(IEnumNetSharingEveryConnection *This,IEnumNetSharingEveryConnection **ppenum);
  700. END_INTERFACE
  701. } IEnumNetSharingEveryConnectionVtbl;
  702. struct IEnumNetSharingEveryConnection {
  703. CONST_VTBL struct IEnumNetSharingEveryConnectionVtbl *lpVtbl;
  704. };
  705. #ifdef COBJMACROS
  706. #define IEnumNetSharingEveryConnection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  707. #define IEnumNetSharingEveryConnection_AddRef(This) (This)->lpVtbl->AddRef(This)
  708. #define IEnumNetSharingEveryConnection_Release(This) (This)->lpVtbl->Release(This)
  709. #define IEnumNetSharingEveryConnection_Next(This,celt,rgVar,pceltFetched) (This)->lpVtbl->Next(This,celt,rgVar,pceltFetched)
  710. #define IEnumNetSharingEveryConnection_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
  711. #define IEnumNetSharingEveryConnection_Reset(This) (This)->lpVtbl->Reset(This)
  712. #define IEnumNetSharingEveryConnection_Clone(This,ppenum) (This)->lpVtbl->Clone(This,ppenum)
  713. #endif
  714. #endif
  715. HRESULT WINAPI IEnumNetSharingEveryConnection_Next_Proxy(IEnumNetSharingEveryConnection *This,ULONG celt,VARIANT *rgVar,ULONG *pceltFetched);
  716. void __RPC_STUB IEnumNetSharingEveryConnection_Next_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  717. HRESULT WINAPI IEnumNetSharingEveryConnection_Skip_Proxy(IEnumNetSharingEveryConnection *This,ULONG celt);
  718. void __RPC_STUB IEnumNetSharingEveryConnection_Skip_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  719. HRESULT WINAPI IEnumNetSharingEveryConnection_Reset_Proxy(IEnumNetSharingEveryConnection *This);
  720. void __RPC_STUB IEnumNetSharingEveryConnection_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  721. HRESULT WINAPI IEnumNetSharingEveryConnection_Clone_Proxy(IEnumNetSharingEveryConnection *This,IEnumNetSharingEveryConnection **ppenum);
  722. void __RPC_STUB IEnumNetSharingEveryConnection_Clone_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  723. #endif
  724. #ifndef __IEnumNetSharingPublicConnection_INTERFACE_DEFINED__
  725. #define __IEnumNetSharingPublicConnection_INTERFACE_DEFINED__
  726. EXTERN_C const IID IID_IEnumNetSharingPublicConnection;
  727. #if defined(__cplusplus) && !defined(CINTERFACE)
  728. struct IEnumNetSharingPublicConnection : public IUnknown {
  729. public:
  730. virtual HRESULT WINAPI Next(ULONG celt,VARIANT *rgVar,ULONG *pceltFetched) = 0;
  731. virtual HRESULT WINAPI Skip(ULONG celt) = 0;
  732. virtual HRESULT WINAPI Reset(void) = 0;
  733. virtual HRESULT WINAPI Clone(IEnumNetSharingPublicConnection **ppenum) = 0;
  734. };
  735. #else
  736. typedef struct IEnumNetSharingPublicConnectionVtbl {
  737. BEGIN_INTERFACE
  738. HRESULT (WINAPI *QueryInterface)(IEnumNetSharingPublicConnection *This,REFIID riid,void **ppvObject);
  739. ULONG (WINAPI *AddRef)(IEnumNetSharingPublicConnection *This);
  740. ULONG (WINAPI *Release)(IEnumNetSharingPublicConnection *This);
  741. HRESULT (WINAPI *Next)(IEnumNetSharingPublicConnection *This,ULONG celt,VARIANT *rgVar,ULONG *pceltFetched);
  742. HRESULT (WINAPI *Skip)(IEnumNetSharingPublicConnection *This,ULONG celt);
  743. HRESULT (WINAPI *Reset)(IEnumNetSharingPublicConnection *This);
  744. HRESULT (WINAPI *Clone)(IEnumNetSharingPublicConnection *This,IEnumNetSharingPublicConnection **ppenum);
  745. END_INTERFACE
  746. } IEnumNetSharingPublicConnectionVtbl;
  747. struct IEnumNetSharingPublicConnection {
  748. CONST_VTBL struct IEnumNetSharingPublicConnectionVtbl *lpVtbl;
  749. };
  750. #ifdef COBJMACROS
  751. #define IEnumNetSharingPublicConnection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  752. #define IEnumNetSharingPublicConnection_AddRef(This) (This)->lpVtbl->AddRef(This)
  753. #define IEnumNetSharingPublicConnection_Release(This) (This)->lpVtbl->Release(This)
  754. #define IEnumNetSharingPublicConnection_Next(This,celt,rgVar,pceltFetched) (This)->lpVtbl->Next(This,celt,rgVar,pceltFetched)
  755. #define IEnumNetSharingPublicConnection_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
  756. #define IEnumNetSharingPublicConnection_Reset(This) (This)->lpVtbl->Reset(This)
  757. #define IEnumNetSharingPublicConnection_Clone(This,ppenum) (This)->lpVtbl->Clone(This,ppenum)
  758. #endif
  759. #endif
  760. HRESULT WINAPI IEnumNetSharingPublicConnection_Next_Proxy(IEnumNetSharingPublicConnection *This,ULONG celt,VARIANT *rgVar,ULONG *pceltFetched);
  761. void __RPC_STUB IEnumNetSharingPublicConnection_Next_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  762. HRESULT WINAPI IEnumNetSharingPublicConnection_Skip_Proxy(IEnumNetSharingPublicConnection *This,ULONG celt);
  763. void __RPC_STUB IEnumNetSharingPublicConnection_Skip_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  764. HRESULT WINAPI IEnumNetSharingPublicConnection_Reset_Proxy(IEnumNetSharingPublicConnection *This);
  765. void __RPC_STUB IEnumNetSharingPublicConnection_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  766. HRESULT WINAPI IEnumNetSharingPublicConnection_Clone_Proxy(IEnumNetSharingPublicConnection *This,IEnumNetSharingPublicConnection **ppenum);
  767. void __RPC_STUB IEnumNetSharingPublicConnection_Clone_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  768. #endif
  769. #ifndef __IEnumNetSharingPrivateConnection_INTERFACE_DEFINED__
  770. #define __IEnumNetSharingPrivateConnection_INTERFACE_DEFINED__
  771. EXTERN_C const IID IID_IEnumNetSharingPrivateConnection;
  772. #if defined(__cplusplus) && !defined(CINTERFACE)
  773. struct IEnumNetSharingPrivateConnection : public IUnknown {
  774. public:
  775. virtual HRESULT WINAPI Next(ULONG celt,VARIANT *rgVar,ULONG *pCeltFetched) = 0;
  776. virtual HRESULT WINAPI Skip(ULONG celt) = 0;
  777. virtual HRESULT WINAPI Reset(void) = 0;
  778. virtual HRESULT WINAPI Clone(IEnumNetSharingPrivateConnection **ppenum) = 0;
  779. };
  780. #else
  781. typedef struct IEnumNetSharingPrivateConnectionVtbl {
  782. BEGIN_INTERFACE
  783. HRESULT (WINAPI *QueryInterface)(IEnumNetSharingPrivateConnection *This,REFIID riid,void **ppvObject);
  784. ULONG (WINAPI *AddRef)(IEnumNetSharingPrivateConnection *This);
  785. ULONG (WINAPI *Release)(IEnumNetSharingPrivateConnection *This);
  786. HRESULT (WINAPI *Next)(IEnumNetSharingPrivateConnection *This,ULONG celt,VARIANT *rgVar,ULONG *pCeltFetched);
  787. HRESULT (WINAPI *Skip)(IEnumNetSharingPrivateConnection *This,ULONG celt);
  788. HRESULT (WINAPI *Reset)(IEnumNetSharingPrivateConnection *This);
  789. HRESULT (WINAPI *Clone)(IEnumNetSharingPrivateConnection *This,IEnumNetSharingPrivateConnection **ppenum);
  790. END_INTERFACE
  791. } IEnumNetSharingPrivateConnectionVtbl;
  792. struct IEnumNetSharingPrivateConnection {
  793. CONST_VTBL struct IEnumNetSharingPrivateConnectionVtbl *lpVtbl;
  794. };
  795. #ifdef COBJMACROS
  796. #define IEnumNetSharingPrivateConnection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  797. #define IEnumNetSharingPrivateConnection_AddRef(This) (This)->lpVtbl->AddRef(This)
  798. #define IEnumNetSharingPrivateConnection_Release(This) (This)->lpVtbl->Release(This)
  799. #define IEnumNetSharingPrivateConnection_Next(This,celt,rgVar,pCeltFetched) (This)->lpVtbl->Next(This,celt,rgVar,pCeltFetched)
  800. #define IEnumNetSharingPrivateConnection_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
  801. #define IEnumNetSharingPrivateConnection_Reset(This) (This)->lpVtbl->Reset(This)
  802. #define IEnumNetSharingPrivateConnection_Clone(This,ppenum) (This)->lpVtbl->Clone(This,ppenum)
  803. #endif
  804. #endif
  805. HRESULT WINAPI IEnumNetSharingPrivateConnection_Next_Proxy(IEnumNetSharingPrivateConnection *This,ULONG celt,VARIANT *rgVar,ULONG *pCeltFetched);
  806. void __RPC_STUB IEnumNetSharingPrivateConnection_Next_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  807. HRESULT WINAPI IEnumNetSharingPrivateConnection_Skip_Proxy(IEnumNetSharingPrivateConnection *This,ULONG celt);
  808. void __RPC_STUB IEnumNetSharingPrivateConnection_Skip_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  809. HRESULT WINAPI IEnumNetSharingPrivateConnection_Reset_Proxy(IEnumNetSharingPrivateConnection *This);
  810. void __RPC_STUB IEnumNetSharingPrivateConnection_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  811. HRESULT WINAPI IEnumNetSharingPrivateConnection_Clone_Proxy(IEnumNetSharingPrivateConnection *This,IEnumNetSharingPrivateConnection **ppenum);
  812. void __RPC_STUB IEnumNetSharingPrivateConnection_Clone_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  813. #endif
  814. #ifndef __INetSharingPortMappingCollection_INTERFACE_DEFINED__
  815. #define __INetSharingPortMappingCollection_INTERFACE_DEFINED__
  816. EXTERN_C const IID IID_INetSharingPortMappingCollection;
  817. #if defined(__cplusplus) && !defined(CINTERFACE)
  818. struct INetSharingPortMappingCollection : public IDispatch {
  819. public:
  820. virtual HRESULT WINAPI get__NewEnum(IUnknown **pVal) = 0;
  821. virtual HRESULT WINAPI get_Count(__LONG32 *pVal) = 0;
  822. };
  823. #else
  824. typedef struct INetSharingPortMappingCollectionVtbl {
  825. BEGIN_INTERFACE
  826. HRESULT (WINAPI *QueryInterface)(INetSharingPortMappingCollection *This,REFIID riid,void **ppvObject);
  827. ULONG (WINAPI *AddRef)(INetSharingPortMappingCollection *This);
  828. ULONG (WINAPI *Release)(INetSharingPortMappingCollection *This);
  829. HRESULT (WINAPI *GetTypeInfoCount)(INetSharingPortMappingCollection *This,UINT *pctinfo);
  830. HRESULT (WINAPI *GetTypeInfo)(INetSharingPortMappingCollection *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  831. HRESULT (WINAPI *GetIDsOfNames)(INetSharingPortMappingCollection *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  832. HRESULT (WINAPI *Invoke)(INetSharingPortMappingCollection *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  833. HRESULT (WINAPI *get__NewEnum)(INetSharingPortMappingCollection *This,IUnknown **pVal);
  834. HRESULT (WINAPI *get_Count)(INetSharingPortMappingCollection *This,__LONG32 *pVal);
  835. END_INTERFACE
  836. } INetSharingPortMappingCollectionVtbl;
  837. struct INetSharingPortMappingCollection {
  838. CONST_VTBL struct INetSharingPortMappingCollectionVtbl *lpVtbl;
  839. };
  840. #ifdef COBJMACROS
  841. #define INetSharingPortMappingCollection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  842. #define INetSharingPortMappingCollection_AddRef(This) (This)->lpVtbl->AddRef(This)
  843. #define INetSharingPortMappingCollection_Release(This) (This)->lpVtbl->Release(This)
  844. #define INetSharingPortMappingCollection_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  845. #define INetSharingPortMappingCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  846. #define INetSharingPortMappingCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  847. #define INetSharingPortMappingCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  848. #define INetSharingPortMappingCollection_get__NewEnum(This,pVal) (This)->lpVtbl->get__NewEnum(This,pVal)
  849. #define INetSharingPortMappingCollection_get_Count(This,pVal) (This)->lpVtbl->get_Count(This,pVal)
  850. #endif
  851. #endif
  852. HRESULT WINAPI INetSharingPortMappingCollection_get__NewEnum_Proxy(INetSharingPortMappingCollection *This,IUnknown **pVal);
  853. void __RPC_STUB INetSharingPortMappingCollection_get__NewEnum_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  854. HRESULT WINAPI INetSharingPortMappingCollection_get_Count_Proxy(INetSharingPortMappingCollection *This,__LONG32 *pVal);
  855. void __RPC_STUB INetSharingPortMappingCollection_get_Count_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  856. #endif
  857. extern RPC_IF_HANDLE __MIDL_itf_netcon_0133_v0_0_c_ifspec;
  858. extern RPC_IF_HANDLE __MIDL_itf_netcon_0133_v0_0_s_ifspec;
  859. #ifndef __INetConnectionProps_INTERFACE_DEFINED__
  860. #define __INetConnectionProps_INTERFACE_DEFINED__
  861. EXTERN_C const IID IID_INetConnectionProps;
  862. #if defined(__cplusplus) && !defined(CINTERFACE)
  863. struct INetConnectionProps : public IDispatch {
  864. public:
  865. virtual HRESULT WINAPI get_Guid(BSTR *pbstrGuid) = 0;
  866. virtual HRESULT WINAPI get_Name(BSTR *pbstrName) = 0;
  867. virtual HRESULT WINAPI get_DeviceName(BSTR *pbstrDeviceName) = 0;
  868. virtual HRESULT WINAPI get_Status(NETCON_STATUS *pStatus) = 0;
  869. virtual HRESULT WINAPI get_MediaType(NETCON_MEDIATYPE *pMediaType) = 0;
  870. virtual HRESULT WINAPI get_Characteristics(DWORD *pdwFlags) = 0;
  871. };
  872. #else
  873. typedef struct INetConnectionPropsVtbl {
  874. BEGIN_INTERFACE
  875. HRESULT (WINAPI *QueryInterface)(INetConnectionProps *This,REFIID riid,void **ppvObject);
  876. ULONG (WINAPI *AddRef)(INetConnectionProps *This);
  877. ULONG (WINAPI *Release)(INetConnectionProps *This);
  878. HRESULT (WINAPI *GetTypeInfoCount)(INetConnectionProps *This,UINT *pctinfo);
  879. HRESULT (WINAPI *GetTypeInfo)(INetConnectionProps *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  880. HRESULT (WINAPI *GetIDsOfNames)(INetConnectionProps *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  881. HRESULT (WINAPI *Invoke)(INetConnectionProps *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  882. HRESULT (WINAPI *get_Guid)(INetConnectionProps *This,BSTR *pbstrGuid);
  883. HRESULT (WINAPI *get_Name)(INetConnectionProps *This,BSTR *pbstrName);
  884. HRESULT (WINAPI *get_DeviceName)(INetConnectionProps *This,BSTR *pbstrDeviceName);
  885. HRESULT (WINAPI *get_Status)(INetConnectionProps *This,NETCON_STATUS *pStatus);
  886. HRESULT (WINAPI *get_MediaType)(INetConnectionProps *This,NETCON_MEDIATYPE *pMediaType);
  887. HRESULT (WINAPI *get_Characteristics)(INetConnectionProps *This,DWORD *pdwFlags);
  888. END_INTERFACE
  889. } INetConnectionPropsVtbl;
  890. struct INetConnectionProps {
  891. CONST_VTBL struct INetConnectionPropsVtbl *lpVtbl;
  892. };
  893. #ifdef COBJMACROS
  894. #define INetConnectionProps_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  895. #define INetConnectionProps_AddRef(This) (This)->lpVtbl->AddRef(This)
  896. #define INetConnectionProps_Release(This) (This)->lpVtbl->Release(This)
  897. #define INetConnectionProps_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  898. #define INetConnectionProps_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  899. #define INetConnectionProps_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  900. #define INetConnectionProps_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  901. #define INetConnectionProps_get_Guid(This,pbstrGuid) (This)->lpVtbl->get_Guid(This,pbstrGuid)
  902. #define INetConnectionProps_get_Name(This,pbstrName) (This)->lpVtbl->get_Name(This,pbstrName)
  903. #define INetConnectionProps_get_DeviceName(This,pbstrDeviceName) (This)->lpVtbl->get_DeviceName(This,pbstrDeviceName)
  904. #define INetConnectionProps_get_Status(This,pStatus) (This)->lpVtbl->get_Status(This,pStatus)
  905. #define INetConnectionProps_get_MediaType(This,pMediaType) (This)->lpVtbl->get_MediaType(This,pMediaType)
  906. #define INetConnectionProps_get_Characteristics(This,pdwFlags) (This)->lpVtbl->get_Characteristics(This,pdwFlags)
  907. #endif
  908. #endif
  909. HRESULT WINAPI INetConnectionProps_get_Guid_Proxy(INetConnectionProps *This,BSTR *pbstrGuid);
  910. void __RPC_STUB INetConnectionProps_get_Guid_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  911. HRESULT WINAPI INetConnectionProps_get_Name_Proxy(INetConnectionProps *This,BSTR *pbstrName);
  912. void __RPC_STUB INetConnectionProps_get_Name_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  913. HRESULT WINAPI INetConnectionProps_get_DeviceName_Proxy(INetConnectionProps *This,BSTR *pbstrDeviceName);
  914. void __RPC_STUB INetConnectionProps_get_DeviceName_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  915. HRESULT WINAPI INetConnectionProps_get_Status_Proxy(INetConnectionProps *This,NETCON_STATUS *pStatus);
  916. void __RPC_STUB INetConnectionProps_get_Status_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  917. HRESULT WINAPI INetConnectionProps_get_MediaType_Proxy(INetConnectionProps *This,NETCON_MEDIATYPE *pMediaType);
  918. void __RPC_STUB INetConnectionProps_get_MediaType_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  919. HRESULT WINAPI INetConnectionProps_get_Characteristics_Proxy(INetConnectionProps *This,DWORD *pdwFlags);
  920. void __RPC_STUB INetConnectionProps_get_Characteristics_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  921. #endif
  922. #ifndef __INetSharingConfiguration_INTERFACE_DEFINED__
  923. #define __INetSharingConfiguration_INTERFACE_DEFINED__
  924. typedef enum tagSHARINGCONNECTIONTYPE {
  925. ICSSHARINGTYPE_PUBLIC = 0,ICSSHARINGTYPE_PRIVATE = ICSSHARINGTYPE_PUBLIC + 1
  926. } SHARINGCONNECTIONTYPE;
  927. typedef enum tagSHARINGCONNECTIONTYPE *LPSHARINGCONNECTIONTYPE;
  928. typedef enum tagSHARINGCONNECTION_ENUM_FLAGS {
  929. ICSSC_DEFAULT = 0,ICSSC_ENABLED = ICSSC_DEFAULT + 1
  930. } SHARINGCONNECTION_ENUM_FLAGS;
  931. typedef enum tagICS_TARGETTYPE {
  932. ICSTT_NAME = 0,ICSTT_IPADDRESS = ICSTT_NAME + 1
  933. } ICS_TARGETTYPE;
  934. EXTERN_C const IID IID_INetSharingConfiguration;
  935. #if defined(__cplusplus) && !defined(CINTERFACE)
  936. struct INetSharingConfiguration : public IDispatch {
  937. public:
  938. virtual HRESULT WINAPI get_SharingEnabled(VARIANT_BOOL *pbEnabled) = 0;
  939. virtual HRESULT WINAPI get_SharingConnectionType(SHARINGCONNECTIONTYPE *pType) = 0;
  940. virtual HRESULT WINAPI DisableSharing(void) = 0;
  941. virtual HRESULT WINAPI EnableSharing(SHARINGCONNECTIONTYPE Type) = 0;
  942. virtual HRESULT WINAPI get_InternetFirewallEnabled(VARIANT_BOOL *pbEnabled) = 0;
  943. virtual HRESULT WINAPI DisableInternetFirewall(void) = 0;
  944. virtual HRESULT WINAPI EnableInternetFirewall(void) = 0;
  945. virtual HRESULT WINAPI get_EnumPortMappings(SHARINGCONNECTION_ENUM_FLAGS Flags,INetSharingPortMappingCollection **ppColl) = 0;
  946. virtual HRESULT WINAPI AddPortMapping(BSTR bstrName,UCHAR ucIPProtocol,USHORT usExternalPort,USHORT usInternalPort,DWORD dwOptions,BSTR bstrTargetNameOrIPAddress,ICS_TARGETTYPE eTargetType,INetSharingPortMapping **ppMapping) = 0;
  947. virtual HRESULT WINAPI RemovePortMapping(INetSharingPortMapping *pMapping) = 0;
  948. };
  949. #else
  950. typedef struct INetSharingConfigurationVtbl {
  951. BEGIN_INTERFACE
  952. HRESULT (WINAPI *QueryInterface)(INetSharingConfiguration *This,REFIID riid,void **ppvObject);
  953. ULONG (WINAPI *AddRef)(INetSharingConfiguration *This);
  954. ULONG (WINAPI *Release)(INetSharingConfiguration *This);
  955. HRESULT (WINAPI *GetTypeInfoCount)(INetSharingConfiguration *This,UINT *pctinfo);
  956. HRESULT (WINAPI *GetTypeInfo)(INetSharingConfiguration *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  957. HRESULT (WINAPI *GetIDsOfNames)(INetSharingConfiguration *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  958. HRESULT (WINAPI *Invoke)(INetSharingConfiguration *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  959. HRESULT (WINAPI *get_SharingEnabled)(INetSharingConfiguration *This,VARIANT_BOOL *pbEnabled);
  960. HRESULT (WINAPI *get_SharingConnectionType)(INetSharingConfiguration *This,SHARINGCONNECTIONTYPE *pType);
  961. HRESULT (WINAPI *DisableSharing)(INetSharingConfiguration *This);
  962. HRESULT (WINAPI *EnableSharing)(INetSharingConfiguration *This,SHARINGCONNECTIONTYPE Type);
  963. HRESULT (WINAPI *get_InternetFirewallEnabled)(INetSharingConfiguration *This,VARIANT_BOOL *pbEnabled);
  964. HRESULT (WINAPI *DisableInternetFirewall)(INetSharingConfiguration *This);
  965. HRESULT (WINAPI *EnableInternetFirewall)(INetSharingConfiguration *This);
  966. HRESULT (WINAPI *get_EnumPortMappings)(INetSharingConfiguration *This,SHARINGCONNECTION_ENUM_FLAGS Flags,INetSharingPortMappingCollection **ppColl);
  967. HRESULT (WINAPI *AddPortMapping)(INetSharingConfiguration *This,BSTR bstrName,UCHAR ucIPProtocol,USHORT usExternalPort,USHORT usInternalPort,DWORD dwOptions,BSTR bstrTargetNameOrIPAddress,ICS_TARGETTYPE eTargetType,INetSharingPortMapping **ppMapping);
  968. HRESULT (WINAPI *RemovePortMapping)(INetSharingConfiguration *This,INetSharingPortMapping *pMapping);
  969. END_INTERFACE
  970. } INetSharingConfigurationVtbl;
  971. struct INetSharingConfiguration {
  972. CONST_VTBL struct INetSharingConfigurationVtbl *lpVtbl;
  973. };
  974. #ifdef COBJMACROS
  975. #define INetSharingConfiguration_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  976. #define INetSharingConfiguration_AddRef(This) (This)->lpVtbl->AddRef(This)
  977. #define INetSharingConfiguration_Release(This) (This)->lpVtbl->Release(This)
  978. #define INetSharingConfiguration_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  979. #define INetSharingConfiguration_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  980. #define INetSharingConfiguration_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  981. #define INetSharingConfiguration_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  982. #define INetSharingConfiguration_get_SharingEnabled(This,pbEnabled) (This)->lpVtbl->get_SharingEnabled(This,pbEnabled)
  983. #define INetSharingConfiguration_get_SharingConnectionType(This,pType) (This)->lpVtbl->get_SharingConnectionType(This,pType)
  984. #define INetSharingConfiguration_DisableSharing(This) (This)->lpVtbl->DisableSharing(This)
  985. #define INetSharingConfiguration_EnableSharing(This,Type) (This)->lpVtbl->EnableSharing(This,Type)
  986. #define INetSharingConfiguration_get_InternetFirewallEnabled(This,pbEnabled) (This)->lpVtbl->get_InternetFirewallEnabled(This,pbEnabled)
  987. #define INetSharingConfiguration_DisableInternetFirewall(This) (This)->lpVtbl->DisableInternetFirewall(This)
  988. #define INetSharingConfiguration_EnableInternetFirewall(This) (This)->lpVtbl->EnableInternetFirewall(This)
  989. #define INetSharingConfiguration_get_EnumPortMappings(This,Flags,ppColl) (This)->lpVtbl->get_EnumPortMappings(This,Flags,ppColl)
  990. #define INetSharingConfiguration_AddPortMapping(This,bstrName,ucIPProtocol,usExternalPort,usInternalPort,dwOptions,bstrTargetNameOrIPAddress,eTargetType,ppMapping) (This)->lpVtbl->AddPortMapping(This,bstrName,ucIPProtocol,usExternalPort,usInternalPort,dwOptions,bstrTargetNameOrIPAddress,eTargetType,ppMapping)
  991. #define INetSharingConfiguration_RemovePortMapping(This,pMapping) (This)->lpVtbl->RemovePortMapping(This,pMapping)
  992. #endif
  993. #endif
  994. HRESULT WINAPI INetSharingConfiguration_get_SharingEnabled_Proxy(INetSharingConfiguration *This,VARIANT_BOOL *pbEnabled);
  995. void __RPC_STUB INetSharingConfiguration_get_SharingEnabled_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  996. HRESULT WINAPI INetSharingConfiguration_get_SharingConnectionType_Proxy(INetSharingConfiguration *This,SHARINGCONNECTIONTYPE *pType);
  997. void __RPC_STUB INetSharingConfiguration_get_SharingConnectionType_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  998. HRESULT WINAPI INetSharingConfiguration_DisableSharing_Proxy(INetSharingConfiguration *This);
  999. void __RPC_STUB INetSharingConfiguration_DisableSharing_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1000. HRESULT WINAPI INetSharingConfiguration_EnableSharing_Proxy(INetSharingConfiguration *This,SHARINGCONNECTIONTYPE Type);
  1001. void __RPC_STUB INetSharingConfiguration_EnableSharing_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1002. HRESULT WINAPI INetSharingConfiguration_get_InternetFirewallEnabled_Proxy(INetSharingConfiguration *This,VARIANT_BOOL *pbEnabled);
  1003. void __RPC_STUB INetSharingConfiguration_get_InternetFirewallEnabled_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1004. HRESULT WINAPI INetSharingConfiguration_DisableInternetFirewall_Proxy(INetSharingConfiguration *This);
  1005. void __RPC_STUB INetSharingConfiguration_DisableInternetFirewall_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1006. HRESULT WINAPI INetSharingConfiguration_EnableInternetFirewall_Proxy(INetSharingConfiguration *This);
  1007. void __RPC_STUB INetSharingConfiguration_EnableInternetFirewall_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1008. HRESULT WINAPI INetSharingConfiguration_get_EnumPortMappings_Proxy(INetSharingConfiguration *This,SHARINGCONNECTION_ENUM_FLAGS Flags,INetSharingPortMappingCollection **ppColl);
  1009. void __RPC_STUB INetSharingConfiguration_get_EnumPortMappings_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1010. HRESULT WINAPI INetSharingConfiguration_AddPortMapping_Proxy(INetSharingConfiguration *This,BSTR bstrName,UCHAR ucIPProtocol,USHORT usExternalPort,USHORT usInternalPort,DWORD dwOptions,BSTR bstrTargetNameOrIPAddress,ICS_TARGETTYPE eTargetType,INetSharingPortMapping **ppMapping);
  1011. void __RPC_STUB INetSharingConfiguration_AddPortMapping_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1012. HRESULT WINAPI INetSharingConfiguration_RemovePortMapping_Proxy(INetSharingConfiguration *This,INetSharingPortMapping *pMapping);
  1013. void __RPC_STUB INetSharingConfiguration_RemovePortMapping_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1014. #endif
  1015. #ifndef __INetSharingEveryConnectionCollection_INTERFACE_DEFINED__
  1016. #define __INetSharingEveryConnectionCollection_INTERFACE_DEFINED__
  1017. EXTERN_C const IID IID_INetSharingEveryConnectionCollection;
  1018. #if defined(__cplusplus) && !defined(CINTERFACE)
  1019. struct INetSharingEveryConnectionCollection : public IDispatch {
  1020. public:
  1021. virtual HRESULT WINAPI get__NewEnum(IUnknown **pVal) = 0;
  1022. virtual HRESULT WINAPI get_Count(__LONG32 *pVal) = 0;
  1023. };
  1024. #else
  1025. typedef struct INetSharingEveryConnectionCollectionVtbl {
  1026. BEGIN_INTERFACE
  1027. HRESULT (WINAPI *QueryInterface)(INetSharingEveryConnectionCollection *This,REFIID riid,void **ppvObject);
  1028. ULONG (WINAPI *AddRef)(INetSharingEveryConnectionCollection *This);
  1029. ULONG (WINAPI *Release)(INetSharingEveryConnectionCollection *This);
  1030. HRESULT (WINAPI *GetTypeInfoCount)(INetSharingEveryConnectionCollection *This,UINT *pctinfo);
  1031. HRESULT (WINAPI *GetTypeInfo)(INetSharingEveryConnectionCollection *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  1032. HRESULT (WINAPI *GetIDsOfNames)(INetSharingEveryConnectionCollection *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  1033. HRESULT (WINAPI *Invoke)(INetSharingEveryConnectionCollection *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  1034. HRESULT (WINAPI *get__NewEnum)(INetSharingEveryConnectionCollection *This,IUnknown **pVal);
  1035. HRESULT (WINAPI *get_Count)(INetSharingEveryConnectionCollection *This,__LONG32 *pVal);
  1036. END_INTERFACE
  1037. } INetSharingEveryConnectionCollectionVtbl;
  1038. struct INetSharingEveryConnectionCollection {
  1039. CONST_VTBL struct INetSharingEveryConnectionCollectionVtbl *lpVtbl;
  1040. };
  1041. #ifdef COBJMACROS
  1042. #define INetSharingEveryConnectionCollection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1043. #define INetSharingEveryConnectionCollection_AddRef(This) (This)->lpVtbl->AddRef(This)
  1044. #define INetSharingEveryConnectionCollection_Release(This) (This)->lpVtbl->Release(This)
  1045. #define INetSharingEveryConnectionCollection_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  1046. #define INetSharingEveryConnectionCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1047. #define INetSharingEveryConnectionCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1048. #define INetSharingEveryConnectionCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1049. #define INetSharingEveryConnectionCollection_get__NewEnum(This,pVal) (This)->lpVtbl->get__NewEnum(This,pVal)
  1050. #define INetSharingEveryConnectionCollection_get_Count(This,pVal) (This)->lpVtbl->get_Count(This,pVal)
  1051. #endif
  1052. #endif
  1053. HRESULT WINAPI INetSharingEveryConnectionCollection_get__NewEnum_Proxy(INetSharingEveryConnectionCollection *This,IUnknown **pVal);
  1054. void __RPC_STUB INetSharingEveryConnectionCollection_get__NewEnum_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1055. HRESULT WINAPI INetSharingEveryConnectionCollection_get_Count_Proxy(INetSharingEveryConnectionCollection *This,__LONG32 *pVal);
  1056. void __RPC_STUB INetSharingEveryConnectionCollection_get_Count_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1057. #endif
  1058. #ifndef __INetSharingPublicConnectionCollection_INTERFACE_DEFINED__
  1059. #define __INetSharingPublicConnectionCollection_INTERFACE_DEFINED__
  1060. EXTERN_C const IID IID_INetSharingPublicConnectionCollection;
  1061. #if defined(__cplusplus) && !defined(CINTERFACE)
  1062. struct INetSharingPublicConnectionCollection : public IDispatch {
  1063. public:
  1064. virtual HRESULT WINAPI get__NewEnum(IUnknown **pVal) = 0;
  1065. virtual HRESULT WINAPI get_Count(__LONG32 *pVal) = 0;
  1066. };
  1067. #else
  1068. typedef struct INetSharingPublicConnectionCollectionVtbl {
  1069. BEGIN_INTERFACE
  1070. HRESULT (WINAPI *QueryInterface)(INetSharingPublicConnectionCollection *This,REFIID riid,void **ppvObject);
  1071. ULONG (WINAPI *AddRef)(INetSharingPublicConnectionCollection *This);
  1072. ULONG (WINAPI *Release)(INetSharingPublicConnectionCollection *This);
  1073. HRESULT (WINAPI *GetTypeInfoCount)(INetSharingPublicConnectionCollection *This,UINT *pctinfo);
  1074. HRESULT (WINAPI *GetTypeInfo)(INetSharingPublicConnectionCollection *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  1075. HRESULT (WINAPI *GetIDsOfNames)(INetSharingPublicConnectionCollection *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  1076. HRESULT (WINAPI *Invoke)(INetSharingPublicConnectionCollection *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  1077. HRESULT (WINAPI *get__NewEnum)(INetSharingPublicConnectionCollection *This,IUnknown **pVal);
  1078. HRESULT (WINAPI *get_Count)(INetSharingPublicConnectionCollection *This,__LONG32 *pVal);
  1079. END_INTERFACE
  1080. } INetSharingPublicConnectionCollectionVtbl;
  1081. struct INetSharingPublicConnectionCollection {
  1082. CONST_VTBL struct INetSharingPublicConnectionCollectionVtbl *lpVtbl;
  1083. };
  1084. #ifdef COBJMACROS
  1085. #define INetSharingPublicConnectionCollection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1086. #define INetSharingPublicConnectionCollection_AddRef(This) (This)->lpVtbl->AddRef(This)
  1087. #define INetSharingPublicConnectionCollection_Release(This) (This)->lpVtbl->Release(This)
  1088. #define INetSharingPublicConnectionCollection_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  1089. #define INetSharingPublicConnectionCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1090. #define INetSharingPublicConnectionCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1091. #define INetSharingPublicConnectionCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1092. #define INetSharingPublicConnectionCollection_get__NewEnum(This,pVal) (This)->lpVtbl->get__NewEnum(This,pVal)
  1093. #define INetSharingPublicConnectionCollection_get_Count(This,pVal) (This)->lpVtbl->get_Count(This,pVal)
  1094. #endif
  1095. #endif
  1096. HRESULT WINAPI INetSharingPublicConnectionCollection_get__NewEnum_Proxy(INetSharingPublicConnectionCollection *This,IUnknown **pVal);
  1097. void __RPC_STUB INetSharingPublicConnectionCollection_get__NewEnum_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1098. HRESULT WINAPI INetSharingPublicConnectionCollection_get_Count_Proxy(INetSharingPublicConnectionCollection *This,__LONG32 *pVal);
  1099. void __RPC_STUB INetSharingPublicConnectionCollection_get_Count_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1100. #endif
  1101. #ifndef __INetSharingPrivateConnectionCollection_INTERFACE_DEFINED__
  1102. #define __INetSharingPrivateConnectionCollection_INTERFACE_DEFINED__
  1103. EXTERN_C const IID IID_INetSharingPrivateConnectionCollection;
  1104. #if defined(__cplusplus) && !defined(CINTERFACE)
  1105. struct INetSharingPrivateConnectionCollection : public IDispatch {
  1106. public:
  1107. virtual HRESULT WINAPI get__NewEnum(IUnknown **pVal) = 0;
  1108. virtual HRESULT WINAPI get_Count(__LONG32 *pVal) = 0;
  1109. };
  1110. #else
  1111. typedef struct INetSharingPrivateConnectionCollectionVtbl {
  1112. BEGIN_INTERFACE
  1113. HRESULT (WINAPI *QueryInterface)(INetSharingPrivateConnectionCollection *This,REFIID riid,void **ppvObject);
  1114. ULONG (WINAPI *AddRef)(INetSharingPrivateConnectionCollection *This);
  1115. ULONG (WINAPI *Release)(INetSharingPrivateConnectionCollection *This);
  1116. HRESULT (WINAPI *GetTypeInfoCount)(INetSharingPrivateConnectionCollection *This,UINT *pctinfo);
  1117. HRESULT (WINAPI *GetTypeInfo)(INetSharingPrivateConnectionCollection *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  1118. HRESULT (WINAPI *GetIDsOfNames)(INetSharingPrivateConnectionCollection *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  1119. HRESULT (WINAPI *Invoke)(INetSharingPrivateConnectionCollection *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  1120. HRESULT (WINAPI *get__NewEnum)(INetSharingPrivateConnectionCollection *This,IUnknown **pVal);
  1121. HRESULT (WINAPI *get_Count)(INetSharingPrivateConnectionCollection *This,__LONG32 *pVal);
  1122. END_INTERFACE
  1123. } INetSharingPrivateConnectionCollectionVtbl;
  1124. struct INetSharingPrivateConnectionCollection {
  1125. CONST_VTBL struct INetSharingPrivateConnectionCollectionVtbl *lpVtbl;
  1126. };
  1127. #ifdef COBJMACROS
  1128. #define INetSharingPrivateConnectionCollection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1129. #define INetSharingPrivateConnectionCollection_AddRef(This) (This)->lpVtbl->AddRef(This)
  1130. #define INetSharingPrivateConnectionCollection_Release(This) (This)->lpVtbl->Release(This)
  1131. #define INetSharingPrivateConnectionCollection_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  1132. #define INetSharingPrivateConnectionCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1133. #define INetSharingPrivateConnectionCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1134. #define INetSharingPrivateConnectionCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1135. #define INetSharingPrivateConnectionCollection_get__NewEnum(This,pVal) (This)->lpVtbl->get__NewEnum(This,pVal)
  1136. #define INetSharingPrivateConnectionCollection_get_Count(This,pVal) (This)->lpVtbl->get_Count(This,pVal)
  1137. #endif
  1138. #endif
  1139. HRESULT WINAPI INetSharingPrivateConnectionCollection_get__NewEnum_Proxy(INetSharingPrivateConnectionCollection *This,IUnknown **pVal);
  1140. void __RPC_STUB INetSharingPrivateConnectionCollection_get__NewEnum_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1141. HRESULT WINAPI INetSharingPrivateConnectionCollection_get_Count_Proxy(INetSharingPrivateConnectionCollection *This,__LONG32 *pVal);
  1142. void __RPC_STUB INetSharingPrivateConnectionCollection_get_Count_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1143. #endif
  1144. #ifndef __INetSharingManager_INTERFACE_DEFINED__
  1145. #define __INetSharingManager_INTERFACE_DEFINED__
  1146. EXTERN_C const IID IID_INetSharingManager;
  1147. #if defined(__cplusplus) && !defined(CINTERFACE)
  1148. struct INetSharingManager : public IDispatch {
  1149. public:
  1150. virtual HRESULT WINAPI get_SharingInstalled(VARIANT_BOOL *pbInstalled) = 0;
  1151. virtual HRESULT WINAPI get_EnumPublicConnections(SHARINGCONNECTION_ENUM_FLAGS Flags,INetSharingPublicConnectionCollection **ppColl) = 0;
  1152. virtual HRESULT WINAPI get_EnumPrivateConnections(SHARINGCONNECTION_ENUM_FLAGS Flags,INetSharingPrivateConnectionCollection **ppColl) = 0;
  1153. virtual HRESULT WINAPI get_INetSharingConfigurationForINetConnection(INetConnection *pNetConnection,INetSharingConfiguration **ppNetSharingConfiguration) = 0;
  1154. virtual HRESULT WINAPI get_EnumEveryConnection(INetSharingEveryConnectionCollection **ppColl) = 0;
  1155. virtual HRESULT WINAPI get_NetConnectionProps(INetConnection *pNetConnection,INetConnectionProps **ppProps) = 0;
  1156. };
  1157. #else
  1158. typedef struct INetSharingManagerVtbl {
  1159. BEGIN_INTERFACE
  1160. HRESULT (WINAPI *QueryInterface)(INetSharingManager *This,REFIID riid,void **ppvObject);
  1161. ULONG (WINAPI *AddRef)(INetSharingManager *This);
  1162. ULONG (WINAPI *Release)(INetSharingManager *This);
  1163. HRESULT (WINAPI *GetTypeInfoCount)(INetSharingManager *This,UINT *pctinfo);
  1164. HRESULT (WINAPI *GetTypeInfo)(INetSharingManager *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  1165. HRESULT (WINAPI *GetIDsOfNames)(INetSharingManager *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  1166. HRESULT (WINAPI *Invoke)(INetSharingManager *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  1167. HRESULT (WINAPI *get_SharingInstalled)(INetSharingManager *This,VARIANT_BOOL *pbInstalled);
  1168. HRESULT (WINAPI *get_EnumPublicConnections)(INetSharingManager *This,SHARINGCONNECTION_ENUM_FLAGS Flags,INetSharingPublicConnectionCollection **ppColl);
  1169. HRESULT (WINAPI *get_EnumPrivateConnections)(INetSharingManager *This,SHARINGCONNECTION_ENUM_FLAGS Flags,INetSharingPrivateConnectionCollection **ppColl);
  1170. HRESULT (WINAPI *get_INetSharingConfigurationForINetConnection)(INetSharingManager *This,INetConnection *pNetConnection,INetSharingConfiguration **ppNetSharingConfiguration);
  1171. HRESULT (WINAPI *get_EnumEveryConnection)(INetSharingManager *This,INetSharingEveryConnectionCollection **ppColl);
  1172. HRESULT (WINAPI *get_NetConnectionProps)(INetSharingManager *This,INetConnection *pNetConnection,INetConnectionProps **ppProps);
  1173. END_INTERFACE
  1174. } INetSharingManagerVtbl;
  1175. struct INetSharingManager {
  1176. CONST_VTBL struct INetSharingManagerVtbl *lpVtbl;
  1177. };
  1178. #ifdef COBJMACROS
  1179. #define INetSharingManager_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1180. #define INetSharingManager_AddRef(This) (This)->lpVtbl->AddRef(This)
  1181. #define INetSharingManager_Release(This) (This)->lpVtbl->Release(This)
  1182. #define INetSharingManager_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  1183. #define INetSharingManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1184. #define INetSharingManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1185. #define INetSharingManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1186. #define INetSharingManager_get_SharingInstalled(This,pbInstalled) (This)->lpVtbl->get_SharingInstalled(This,pbInstalled)
  1187. #define INetSharingManager_get_EnumPublicConnections(This,Flags,ppColl) (This)->lpVtbl->get_EnumPublicConnections(This,Flags,ppColl)
  1188. #define INetSharingManager_get_EnumPrivateConnections(This,Flags,ppColl) (This)->lpVtbl->get_EnumPrivateConnections(This,Flags,ppColl)
  1189. #define INetSharingManager_get_INetSharingConfigurationForINetConnection(This,pNetConnection,ppNetSharingConfiguration) (This)->lpVtbl->get_INetSharingConfigurationForINetConnection(This,pNetConnection,ppNetSharingConfiguration)
  1190. #define INetSharingManager_get_EnumEveryConnection(This,ppColl) (This)->lpVtbl->get_EnumEveryConnection(This,ppColl)
  1191. #define INetSharingManager_get_NetConnectionProps(This,pNetConnection,ppProps) (This)->lpVtbl->get_NetConnectionProps(This,pNetConnection,ppProps)
  1192. #endif
  1193. #endif
  1194. HRESULT WINAPI INetSharingManager_get_SharingInstalled_Proxy(INetSharingManager *This,VARIANT_BOOL *pbInstalled);
  1195. void __RPC_STUB INetSharingManager_get_SharingInstalled_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1196. HRESULT WINAPI INetSharingManager_get_EnumPublicConnections_Proxy(INetSharingManager *This,SHARINGCONNECTION_ENUM_FLAGS Flags,INetSharingPublicConnectionCollection **ppColl);
  1197. void __RPC_STUB INetSharingManager_get_EnumPublicConnections_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1198. HRESULT WINAPI INetSharingManager_get_EnumPrivateConnections_Proxy(INetSharingManager *This,SHARINGCONNECTION_ENUM_FLAGS Flags,INetSharingPrivateConnectionCollection **ppColl);
  1199. void __RPC_STUB INetSharingManager_get_EnumPrivateConnections_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1200. HRESULT WINAPI INetSharingManager_get_INetSharingConfigurationForINetConnection_Proxy(INetSharingManager *This,INetConnection *pNetConnection,INetSharingConfiguration **ppNetSharingConfiguration);
  1201. void __RPC_STUB INetSharingManager_get_INetSharingConfigurationForINetConnection_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1202. HRESULT WINAPI INetSharingManager_get_EnumEveryConnection_Proxy(INetSharingManager *This,INetSharingEveryConnectionCollection **ppColl);
  1203. void __RPC_STUB INetSharingManager_get_EnumEveryConnection_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1204. HRESULT WINAPI INetSharingManager_get_NetConnectionProps_Proxy(INetSharingManager *This,INetConnection *pNetConnection,INetConnectionProps **ppProps);
  1205. void __RPC_STUB INetSharingManager_get_NetConnectionProps_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1206. #endif
  1207. #ifndef __NETCONLib_LIBRARY_DEFINED__
  1208. #define __NETCONLib_LIBRARY_DEFINED__
  1209. EXTERN_C const IID LIBID_NETCONLib;
  1210. EXTERN_C const CLSID CLSID_NetSharingManager;
  1211. #ifdef __cplusplus
  1212. class NetSharingManager;
  1213. #endif
  1214. #endif
  1215. ULONG __RPC_API BSTR_UserSize(ULONG *,ULONG,BSTR *);
  1216. unsigned char *__RPC_API BSTR_UserMarshal(ULONG *,unsigned char *,BSTR *);
  1217. unsigned char *__RPC_API BSTR_UserUnmarshal(ULONG *,unsigned char *,BSTR *);
  1218. void __RPC_API BSTR_UserFree(ULONG *,BSTR *);
  1219. ULONG __RPC_API VARIANT_UserSize(ULONG *,ULONG,VARIANT *);
  1220. unsigned char *__RPC_API VARIANT_UserMarshal(ULONG *,unsigned char *,VARIANT *);
  1221. unsigned char *__RPC_API VARIANT_UserUnmarshal(ULONG *,unsigned char *,VARIANT *);
  1222. void __RPC_API VARIANT_UserFree(ULONG *,VARIANT *);
  1223. #ifdef __cplusplus
  1224. }
  1225. #endif
  1226. #endif