51{
52 INetCfg *pNetCfg =
NULL;
53 INetCfgLock *pNetCfgLock =
NULL;
54 INetCfgClass *pNetCfgClass =
NULL;
55 INetCfgComponent *pTcpipComponent =
NULL;
56 INetCfgComponentPrivate *pTcpipComponentPrivate =
NULL;
57 ITcpipProperties *pTcpipProperties =
NULL;
58
61
62 DPRINT(
"GetInterfaceProperties()\n");
63
66 {
67 DPRINT1(
"CoInitialize failed\n");
69 }
70
73 CLSCTX_INPROC_SERVER,
77 {
78 DPRINT1(
"CoCreateInstance failed\n");
80 }
81
82
85 (
PVOID*)&pNetCfgLock);
87 {
88 DPRINT1(
"QueryInterface failed\n");
90 }
91
96 {
97 DPRINT1(
"AcquireWriteLock failed\n");
99 }
100
102
103
106 {
107 DPRINT1(
"Initialize failed\n");
109 }
110
112
113 GUID ClassGuid = GUID_DEVCLASS_NETTRANS;
116 {
117 DPRINT1(
"INetCfg_QueryNetCfgClass failed!\n");
119 }
120
123 {
124 DPRINT1(
"INetCfgClass_FindComponent failed\n");
126 }
127
130 {
131 DPRINT1(
"INetCfgComponent_QueryInterface failed\n");
133 }
134
137 {
138 DPRINT1(
"INetCfgComponentPrivate_Unknown1 failed\n");
140 }
141
145 {
146 DPRINT1(
"ITcpipProperties_Unknown1 failed\n");
147 }
148 else
149 {
150 DPRINT(
"pInfo: %p\n", pInfo);
158
159 *ppProperties = pInfo;
160 }
161
164 if (pTcpipProperties)
166
167 if (pTcpipComponentPrivate)
169
170 if (pTcpipComponent !=
NULL)
172
173 if (pNetCfgClass !=
NULL)
175
176 if (fInitialized)
178
179 if (fWriteLocked)
181
182 if (pNetCfgLock !=
NULL)
184
187
189
190 DPRINT(
"GetInterfaceProperties() done!\n");
191
193}
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