58 TRACE(
"destroying %p\n", wl);
83 IWbemLocator_AddRef( iface );
90 static const WCHAR localhostW[] = {
'l',
'o',
'c',
'a',
'l',
'h',
'o',
's',
't',0};
101 static const WCHAR rootW[] = {
'R',
'O',
'O',
'T'};
102 static const WCHAR cimv2W[] = {
'C',
'I',
'M',
'V',
'2',0};
103 static const WCHAR defaultW[] = {
'D',
'E',
'F',
'A',
'U',
'L',
'T',0};
111 if (*
p ==
'\\' || *
p ==
'/')
114 if (*
p ==
'\\' || *
p ==
'/')
p++;
118 while (*
q && *
q !=
'\\' && *
q !=
'/')
q++;
132 while (*
q && *
q !=
'\\' && *
q !=
'/')
q++;
148 (*namespace)[
len] = 0;
163 const BSTR NetworkResource,
168 const BSTR Authority,
175 TRACE(
"%p, %s, %s, %s, %s, 0x%08x, %s, %p, %p)\n", iface,
debugstr_w(NetworkResource),
debugstr_w(User),
183 FIXME(
"remote computer not supported\n");
189 FIXME(
"authentication not supported\n");
191 FIXME(
"specific locale not supported\n");
193 FIXME(
"unsupported flags\n");
216 TRACE(
"(%p)\n", ppObj);
226 TRACE(
"returning iface %p\n", *ppObj);
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
BOOL WINAPI GetComputerNameW(LPWSTR lpBuffer, LPDWORD lpnSize)
static const WCHAR rootW[]
HRESULT WbemServices_create(const WCHAR *namespace, LPVOID *ppObj)
GLdouble GLdouble GLdouble GLdouble q
#define memcpy(s1, s2, n)
static const WCHAR dotW[]
static const WCHAR localhostW[]
#define IsEqualGUID(rguid1, rguid2)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_Check_return_ _CRTIMP int __cdecl _wcsnicmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
IWbemLocator IWbemLocator_iface
#define CONTAINING_RECORD(address, type, field)
static const WCHAR defaultW[]
static rfbScreenInfoPtr server
@ WBEM_E_TRANSPORT_FAILURE
@ WBEM_E_INVALID_NAMESPACE
@ WBEM_E_INVALID_PARAMETER
static ULONG WINAPI wbem_locator_AddRef(IWbemLocator *iface)
static ULONG WINAPI wbem_locator_Release(IWbemLocator *iface)
static BOOL is_local_machine(const WCHAR *server)
static wbem_locator * impl_from_IWbemLocator(IWbemLocator *iface)
static HRESULT parse_resource(const WCHAR *resource, WCHAR **server, WCHAR **namespace)
static HRESULT WINAPI wbem_locator_QueryInterface(IWbemLocator *iface, REFIID riid, void **ppvObject)
static const IWbemLocatorVtbl wbem_locator_vtbl
static HRESULT WINAPI wbem_locator_ConnectServer(IWbemLocator *iface, const BSTR NetworkResource, const BSTR User, const BSTR Password, const BSTR Locale, LONG SecurityFlags, const BSTR Authority, IWbemContext *pCtx, IWbemServices **ppNamespace)
HRESULT WbemLocator_create(LPVOID *ppObj)
#define MAX_COMPUTERNAME_LENGTH
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject