Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
21ea8b3c
Commit
21ea8b3c
authored
Jun 26, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Implement IWbemServices::OpenNamespace.
parent
d93e61f2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
services.c
dlls/wbemprox/services.c
+13
-4
wbemlocator.c
dlls/wbemprox/wbemlocator.c
+1
-1
wbemprox_private.h
dlls/wbemprox/wbemprox_private.h
+1
-1
No files found.
dlls/wbemprox/services.c
View file @
21ea8b3c
...
...
@@ -201,8 +201,17 @@ static HRESULT WINAPI wbem_services_OpenNamespace(
IWbemServices
**
ppWorkingNamespace
,
IWbemCallResult
**
ppResult
)
{
FIXME
(
"
\n
"
);
return
WBEM_E_FAILED
;
static
const
WCHAR
cimv2W
[]
=
{
'c'
,
'i'
,
'm'
,
'v'
,
'2'
,
0
};
static
const
WCHAR
defaultW
[]
=
{
'd'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
0
};
struct
wbem_services
*
ws
=
impl_from_IWbemServices
(
iface
);
TRACE
(
"%p, %s, 0x%08x, %p, %p, %p
\n
"
,
iface
,
debugstr_w
(
strNamespace
),
lFlags
,
pCtx
,
ppWorkingNamespace
,
ppResult
);
if
((
strcmpiW
(
strNamespace
,
cimv2W
)
&&
strcmpiW
(
strNamespace
,
defaultW
))
||
ws
->
namespace
)
return
WBEM_E_INVALID_NAMESPACE
;
return
WbemServices_create
(
NULL
,
cimv2W
,
(
void
**
)
ppWorkingNamespace
);
}
static
HRESULT
WINAPI
wbem_services_CancelAsyncCall
(
...
...
@@ -488,7 +497,7 @@ static const IWbemServicesVtbl wbem_services_vtbl =
wbem_services_ExecMethodAsync
};
HRESULT
WbemServices_create
(
IUnknown
*
pUnkOuter
,
WCHAR
*
namespace
,
LPVOID
*
ppObj
)
HRESULT
WbemServices_create
(
IUnknown
*
pUnkOuter
,
const
WCHAR
*
namespace
,
LPVOID
*
ppObj
)
{
struct
wbem_services
*
ws
;
...
...
@@ -499,7 +508,7 @@ HRESULT WbemServices_create( IUnknown *pUnkOuter, WCHAR *namespace, LPVOID *ppOb
ws
->
IWbemServices_iface
.
lpVtbl
=
&
wbem_services_vtbl
;
ws
->
refs
=
1
;
ws
->
namespace
=
namespace
;
ws
->
namespace
=
heap_strdupW
(
namespace
)
;
*
ppObj
=
&
ws
->
IWbemServices_iface
;
...
...
dlls/wbemprox/wbemlocator.c
View file @
21ea8b3c
...
...
@@ -192,10 +192,10 @@ static HRESULT WINAPI wbem_locator_ConnectServer(
FIXME
(
"unsupported flags
\n
"
);
hr
=
WbemServices_create
(
NULL
,
namespace
,
(
void
**
)
ppNamespace
);
heap_free
(
namespace
);
if
(
SUCCEEDED
(
hr
))
return
WBEM_NO_ERROR
;
heap_free
(
namespace
);
return
WBEM_E_FAILED
;
}
...
...
dlls/wbemprox/wbemprox_private.h
View file @
21ea8b3c
...
...
@@ -121,7 +121,7 @@ HRESULT get_propval( const struct view *, UINT, const WCHAR *, VARIANT *,
HRESULT
get_properties
(
const
struct
view
*
,
SAFEARRAY
**
)
DECLSPEC_HIDDEN
;
HRESULT
WbemLocator_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
WbemServices_create
(
IUnknown
*
,
WCHAR
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
WbemServices_create
(
IUnknown
*
,
const
WCHAR
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
WbemClassObject_create
(
IUnknown
*
,
IEnumWbemClassObject
*
,
UINT
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
EnumWbemClassObject_create
(
IUnknown
*
,
struct
query
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment