18#define WIN32_LEAN_AND_MEAN
31 static const WCHAR tcpipW[] = {
'M',
'S',
'_',
'T',
'C',
'P',
'I',
'P',0};
32 static const WCHAR myclient[] = {
'M',
'Y',
' ',
'C',
'L',
'I',
'E',
'N',
'T',0};
35 INetCfgLock *netlock =
NULL;
36 INetCfgComponent *component =
NULL;
40 ok(
hr ==
S_OK,
"Failed to create object\n");
55 trace(
"Not run with Admin permissions\n");
90 ok(
hr ==
S_OK,
"failed to init com\n");
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
VOID WINAPI CoTaskMemFree(LPVOID ptr)
static void create_configuration(void)
#define NETCFG_E_NO_WRITE_LOCK
#define INetCfg_Release(p)
#define INetCfgComponent_Release(p)
#define INetCfg_QueryInterface(p, a, b)
EXTERN_C const IID IID_INetCfgLock
EXTERN_C const GUID CLSID_CNetCfg
#define INetCfgLock_AcquireWriteLock(p, a, b, c)
#define INetCfgLock_ReleaseWriteLock(p)
#define INetCfg_Uninitialize(p)
#define INetCfgLock_Release(p)
#define INetCfg_FindComponent(p, a, b)
EXTERN_C const IID IID_INetCfg
#define NETCFG_E_ALREADY_INITIALIZED
#define INetCfg_Initialize(p, a)