30static const WCHAR path3[] = {
'\\',
'\\',
's',
'e',
'r',
'v',
'e',
'r',0};
31static const WCHAR path4[] = {
'\\',
'\\',
's',
'e',
'r',
'v',
'e',
'r',
'\\',0};
33static const WCHAR path6[] = {
'/',
'/',
'.',
'/',
'r',
'o',
'o',
't',
'/',
'c',
'i',
'm',
'v',
'2',0};
35 {
'/',
'/',
'.',
'/',
'r',
'o',
'o',
't',
'/',
'c',
'i',
'm',
'v',
'2',
':',
'W',
'i',
'n',
'3',
'2',
'_',
36 'O',
'p',
'e',
'r',
'a',
't',
'i',
'n',
'g',
'S',
'y',
's',
't',
'e',
'm',0};
38 {
'/',
'r',
'o',
'o',
't',
'/',
'c',
'i',
'm',
'v',
'2',
':',
'W',
'i',
'n',
'3',
'2',
'_',
39 'O',
'p',
'e',
'r',
'a',
't',
'i',
'n',
'g',
'S',
'y',
's',
't',
'e',
'm',0};
41 {
'\\',
'\\',
'.',
'\\',
'r',
'o',
'o',
't',
'\\',
'c',
'i',
'm',
'v',
'2',
':',
'W',
'i',
'n',
'3',
'2',
'_',
42 'O',
'p',
'e',
'r',
'a',
't',
'i',
'n',
'g',
'S',
'y',
's',
't',
'e',
'm',0};
44 {
'/',
'\\',
'.',
'\\',
'r',
'o',
'o',
't',
'\\',
'c',
'i',
'm',
'v',
'2',
':',
'W',
'i',
'n',
'3',
'2',
'_',
45 'O',
'p',
'e',
'r',
'a',
't',
'i',
'n',
'g',
'S',
'y',
's',
't',
'e',
'm',0};
47 {
'/',
'/',
'.',
'\\',
'r',
'o',
'o',
't',
'\\',
'c',
'i',
'm',
'v',
'2',
':',
'W',
'i',
'n',
'3',
'2',
'_',
48 'O',
'p',
'e',
'r',
'a',
't',
'i',
'n',
'g',
'S',
'y',
's',
't',
'e',
'm',0};
50 {
'r',
'o',
'o',
't',
'\\',
'c',
'i',
'm',
'v',
'2',
':',
'W',
'i',
'n',
'3',
'2',
'_',
51 'O',
'p',
'e',
'r',
'a',
't',
'i',
'n',
'g',
'S',
'y',
's',
't',
'e',
'm',0};
53 {
'\\',
'\\',
'.',
'\\',
'r',
'o',
'o',
't',
'\\',
'c',
'i',
'm',
'v',
'2',0};
55 {
'W',
'i',
'n',
'3',
'2',
'_',
'O',
'p',
'e',
'r',
'a',
't',
'i',
'n',
'g',
'S',
'y',
's',
't',
'e',
'm',0};
57 {
'r',
'o',
'o',
't',
'\\',
'c',
'i',
'm',
'v',
'2',0};
59 {
'\\',
'\\',
'.',
'\\',
'r',
'o',
'o',
't',
'\\',
'c',
'i',
'm',
'v',
'2',0};
61 {
'\\',
'\\',
'.',
'\\',
'r',
'o',
'o',
't',
'\\',
'c',
'i',
'm',
'v',
'2',
':',
'W',
'i',
'n',
'3',
'2',
'_',
62 'L',
'o',
'g',
'i',
'c',
'a',
'l',
'D',
'i',
's',
'k',
'.',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'd',
'=',
65 {
'\\',
'\\',
'.',
'\\',
'r',
'o',
'o',
't',
'\\',
'c',
'i',
'm',
'v',
'2',
':',
'W',
'i',
'n',
'3',
'2',
'_',
66 'L',
'o',
'g',
'i',
'c',
'a',
'l',
'D',
'i',
's',
'k',
'.',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'd',
'=',
67 '"',
'C',
':',
'"',
',',
'D',
'r',
'i',
'v',
'e',
'T',
'y',
'p',
'e',
'=',
'3',0};
69 {
'\\',
'\\',
'.',
'\\',
'r',
'o',
'o',
't',
'\\',
'c',
'i',
'm',
'v',
'2',
':',
'W',
'i',
'n',
'3',
'2',
'_',
70 'L',
'o',
'g',
'i',
'c',
'a',
'l',
'D',
'i',
's',
'k',
'.',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'd',
'=',0};
72 {
'\\',
'\\',
'.',
'\\',
'r',
'o',
'o',
't',
'\\',
'c',
'i',
'm',
'v',
'2',
':',
'W',
'i',
'n',
'3',
'2',
'_',
73 'L',
'o',
'g',
'i',
'c',
'a',
'l',
'D',
'i',
's',
'k',
'.',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'd',
' ',
'=',
' ',
84 win_skip(
"can't create WbemDefPath instance, skipping tests\n" );
159 IWbemPath_Release(
path );
164 static const WCHAR serviceW[] =
165 {
'W',
'i',
'n',
'3',
'2',
'_',
'S',
'e',
'r',
'v',
'i',
'c',
'e',
'.',
'N',
'a',
'm',
'e',
'=',
166 '\"',
'S',
'e',
'r',
'v',
'i',
'c',
'e',
'\"',0};
168 {
'W',
'i',
'n',
'3',
'2',
'_',
'C',
'l',
'a',
's',
's',0};
169 static const WCHAR expected1W[] =
170 {
'r',
'o',
'o',
't',
'\\',
'c',
'i',
'm',
'v',
'2',
':',
'W',
'i',
'n',
'3',
'2',
'_',
171 'L',
'o',
'g',
'i',
'c',
'a',
'l',
'D',
'i',
's',
'k',
'.',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'd',
'=',
173 static const WCHAR expected2W[] =
174 {
'W',
'i',
'n',
'3',
'2',
'_',
'L',
'o',
'g',
'i',
'c',
'a',
'l',
'D',
'i',
's',
'k',
'.',
175 'D',
'e',
'v',
'i',
'c',
'e',
'I',
'd',
'=',
'"',
'C',
':',
'"',0};
176 static const WCHAR expected3W[] =
177 {
'\\',
'\\',
'.',
'\\',
'r',
'o',
'o',
't',
'\\',
'c',
'i',
'm',
'v',
'2',0};
198 ok(
len == 1,
"unexpected length %u\n",
len );
213 ok(
len == 1,
"unexpected length %u\n",
len );
336 IWbemPath_Release(
path );
349 IWbemPath_Release(
path );
362 IWbemPath_Release(
path );
367 static const WCHAR classW[] = {
'W',
'i',
'n',
'3',
'2',
'_',
'L',
'o',
'g',
'i',
'c',
'a',
'l',
'D',
'i',
's',
'k',0};
410 IWbemPath_Release(
path );
415 static const WCHAR classW[] = {
'c',
'l',
'a',
's',
's',0};
448 IWbemPath_Release(
path );
496 IWbemPath_Release(
path );
514 hr = IWbemPath_GetInfo(
path, 0, &resp );
529 hr = IWbemPath_GetInfo(
path, 0, &resp );
536 IWbemPath_Release(
path );
543 hr = IWbemPath_GetInfo(
path, 0, &resp );
554 hr = IWbemPath_GetInfo(
path, 0, &resp );
559 IWbemPath_Release(
path );
564 static const WCHAR serverW[] = {
's',
'e',
'r',
'v',
'e',
'r',0};
584 hr = IWbemPath_SetServer(
path, serverW );
614 IWbemPath_Release(
path );
619 static const WCHAR rootW[] = {
'r',
'o',
'o',
't',0};
620 static const WCHAR cimv2W[] = {
'c',
'i',
'm',
'v',
'2',0};
670 IWbemPath_Release(
path );
687 hr = IWbemPath_RemoveAllNamespaces(
path );
699 hr = IWbemPath_RemoveAllNamespaces(
path );
713 IWbemPath_Release(
path );
722 static const WCHAR cimv2W[] = {
'c',
'i',
'm',
'v',
'2',0};
731 hr = IWbemPath_RemoveNamespaceAt(
path, 0 );
748 hr = IWbemPath_RemoveNamespaceAt(
path, 0 );
769 hr = IWbemPath_RemoveNamespaceAt(
path, 0 );
788 IWbemPath_Release(
path );
797 static const WCHAR rootW[] = {
'r',
'o',
'o',
't',0};
798 static const WCHAR cimv2W[] = {
'c',
'i',
'm',
'v',
'2',0};
807 hr = IWbemPath_SetNamespaceAt(
path, 0,
NULL );
810 hr = IWbemPath_SetNamespaceAt(
path, 1, cimv2W );
813 hr = IWbemPath_SetNamespaceAt(
path, 0, cimv2W );
862 IWbemPath_Release(
path );
static const WCHAR rootW[]
static __inline const char * wine_dbgstr_longlong(ULONGLONG ll)
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
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)
GLuint GLuint GLsizei count
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static const WCHAR emptyW[]
#define todo_wine_if(is_todo)
static const WCHAR dotW[]
static const WCHAR path3[]
static const WCHAR path19[]
static IWbemPath * create_path(void)
static void test_IWbemPath_GetText(void)
static void test_IWbemPath_RemoveAllNamespaces(void)
static void test_IWbemPath_GetInfo(void)
static const WCHAR path7[]
static const WCHAR path18[]
static void test_IWbemPath_GetClassName(void)
static const WCHAR path11[]
static void test_IWbemPath_GetNamespaceAt(void)
static void test_IWbemPath_SetClassName(void)
static void test_IWbemPath_SetNamespaceAt(void)
static void test_IWbemPath_GetServer(void)
static const WCHAR path5[]
static const WCHAR path14[]
static void test_IWbemPath_SetText(void)
static void test_IWbemPath_RemoveNamespaceAt(void)
static const WCHAR path10[]
static const WCHAR path12[]
static const WCHAR path20[]
static const WCHAR path1[]
static const WCHAR path16[]
static const WCHAR path13[]
static const WCHAR path8[]
static const WCHAR path17[]
static const WCHAR path6[]
static const WCHAR path9[]
static void test_IWbemPath_SetServer(void)
static const WCHAR path4[]
static const WCHAR path2[]
static const WCHAR path15[]
static const WCHAR classW[]
@ WBEM_E_INVALID_PARAMETER
@ WBEM_E_INVALID_OBJECT_PATH
@ WBEMPATH_GET_RELATIVE_ONLY
@ WBEMPATH_GET_SERVER_AND_NAMESPACE_ONLY
@ WBEMPATH_GET_SERVER_TOO
@ WBEMPATH_GET_NAMESPACE_ONLY
@ WBEMPATH_TREAT_SINGLE_IDENT_AS_NS
@ WBEMPATH_CREATE_ACCEPT_RELATIVE
@ WBEMPATH_CREATE_ACCEPT_ABSOLUTE
@ WBEMPATH_CREATE_ACCEPT_ALL
@ WBEMPATH_INFO_IS_CLASS_REF
@ WBEMPATH_INFO_HAS_MACHINE_NAME
@ WBEMPATH_INFO_V2_COMPLIANT
@ WBEMPATH_INFO_HAS_SUBSCOPES
@ WBEMPATH_INFO_PATH_HAD_SERVER
@ WBEMPATH_INFO_IS_INST_REF
@ WBEMPATH_INFO_SERVER_NAMESPACE_ONLY
@ WBEMPATH_INFO_CIM_COMPLIANT
@ WBEMPATH_INFO_ANON_LOCAL_MACHINE
@ WBEMPATH_INFO_V1_COMPLIANT