28{
29 static const WCHAR rootW[] = {
'R',
'O',
'O',
'T',
'\\',
'C',
'I',
'M',
'V',
'2',0};
36
39 {
40 win_skip(
"can't create instance of WbemLocator\n");
41 return;
42 }
43 ok(
hr ==
S_OK,
"failed to create IWbemLocator interface %08x\n",
hr );
44
45 refs = IWbemLocator_Release(
locator );
46 ok( refs == 0,
"unexpected refcount %u\n", refs );
47
49 ok(
hr ==
S_OK,
"failed to create IWbemLocator interface %08x\n",
hr );
50
52 ok(
hr ==
S_OK,
"failed to get IWbemServices interface %08x\n",
hr );
53
54 refs = IWbemServices_Release(
services );
55 ok( refs == 0,
"unexpected refcount %u\n", refs );
56
58 ok(
hr ==
S_OK,
"failed to get IWbemServices interface %08x\n",
hr );
59
60 hr = IWbemServices_QueryInterface(
services, &IID_IClientSecurity, (
void **)&
security );
61 ok(
hr ==
S_OK,
"failed to query IClientSecurity interface %08x\n",
hr );
63
64 refs = IClientSecurity_Release(
security );
65 ok( refs == 1,
"unexpected refcount %u\n", refs );
66
67 refs = IWbemServices_Release(
services );
68 ok( refs == 0,
"unexpected refcount %u\n", refs );
69
71 ok(
hr ==
S_OK,
"failed to get IWbemServices interface %08x\n",
hr );
72
73 hr = IWbemServices_QueryInterface(
services, &IID_IClientSecurity, (
void **)&
security );
74 ok(
hr ==
S_OK,
"failed to query IClientSecurity interface %08x\n",
hr );
76
77 refs = IWbemServices_Release(
services );
78 todo_wine ok( refs == 1,
"unexpected refcount %u\n", refs );
79
80 refs = IClientSecurity_Release(
security );
81 todo_wine ok( refs == 0,
"unexpected refcount %u\n", refs );
82
83 IWbemLocator_Release(
locator );
85}
static const WCHAR rootW[]
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
BSTR WINAPI SysAllocString(LPCOLESTR str)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)