205{
206 INetCfg *pNetCfg =
NULL;
207 INetCfgLock *pNetCfgLock =
NULL;
208 INetCfgClass *pNetCfgClass =
NULL;
209 INetCfgComponent *pTcpipComponent =
NULL;
210 INetCfgComponentPrivate *pTcpipComponentPrivate =
NULL;
211 ITcpipProperties *pTcpipProperties =
NULL;
212
215
216 DPRINT(
"GetInterfaceProperties()\n");
217
220 {
221 DPRINT1(
"CoInitialize failed\n");
223 }
224
227 CLSCTX_INPROC_SERVER,
231 {
232 DPRINT1(
"CoCreateInstance failed\n");
234 }
235
236
239 (
PVOID*)&pNetCfgLock);
241 {
242 DPRINT1(
"QueryInterface failed\n");
244 }
245
250 {
251 DPRINT1(
"AcquireWriteLock failed\n");
253 }
254
256
257
260 {
261 DPRINT1(
"Initialize failed\n");
263 }
264
266
267 GUID ClassGuid = GUID_DEVCLASS_NETTRANS;
270 {
271 DPRINT1(
"INetCfg_QueryNetCfgClass failed!\n");
273 }
274
277 {
278 DPRINT1(
"INetCfgClass_FindComponent failed\n");
280 }
281
284 {
285 DPRINT1(
"INetCfgComponent_QueryInterface failed\n");
287 }
288
291 {
292 DPRINT1(
"INetCfgComponentPrivate_Unknown1 failed\n");
294 }
295
299 {
300 DPRINT1(
"ITcpipProperties_Unknown1 failed\n");
301 }
302 else
303 {
304 DPRINT(
"pInfo: %p\n", pInfo);
312
313 *ppProperties = pInfo;
314 }
315
318 if (pTcpipProperties)
320
321 if (pTcpipComponentPrivate)
323
324 if (pTcpipComponent !=
NULL)
326
327 if (pNetCfgClass !=
NULL)
329
330 if (fInitialized)
332
333 if (fWriteLocked)
335
336 if (pNetCfgLock !=
NULL)
338
341
343
344 DPRINT(
"GetInterfaceProperties() done!\n");
345
347}
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, IUnknown *outer, DWORD cls_context, REFIID riid, void **obj)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
#define ITcpipProperties_Unknown1(p, a, b)
EXTERN_C const IID IID_ITcpipProperties
#define ITcpipProperties_Release(p)
#define INetCfgComponent_QueryInterface(p, a, b)
#define INetCfg_Release(p)
#define INetCfgComponent_Release(p)
#define INetCfg_QueryInterface(p, a, b)
#define INetCfg_QueryNetCfgClass(p, a, b, c)
EXTERN_C const IID IID_INetCfgLock
EXTERN_C const IID IID_INetCfgClass
EXTERN_C const GUID CLSID_CNetCfg
#define INetCfgLock_AcquireWriteLock(p, a, b, c)
#define INetCfgLock_ReleaseWriteLock(p)
#define INetCfgClass_Release(p)
#define INetCfg_Uninitialize(p)
#define INetCfgLock_Release(p)
EXTERN_C const IID IID_INetCfg
#define INetCfgClass_FindComponent(p, a, b)
#define INetCfg_Initialize(p, a)
#define INetCfgComponentPrivate_Unknown1(p, a, b)
#define INetCfgComponentPrivate_Release(p)
EXTERN_C const IID IID_INetCfgComponentPrivate
static const GUID InterfaceGuid