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
78433f11
Commit
78433f11
authored
Jan 14, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemdisp: Implement ISWbemServices::InstancesOf.
parent
c1a3a1d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
locator.c
dlls/wbemdisp/locator.c
+28
-2
No files found.
dlls/wbemdisp/locator.c
View file @
78433f11
...
@@ -671,6 +671,18 @@ static HRESULT WINAPI services_DeleteAsync(
...
@@ -671,6 +671,18 @@ static HRESULT WINAPI services_DeleteAsync(
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
BSTR
build_query_string
(
const
WCHAR
*
class
)
{
static
const
WCHAR
selectW
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'*'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
0
};
UINT
len
=
strlenW
(
class
)
+
sizeof
(
selectW
)
/
sizeof
(
selectW
[
0
]);
BSTR
ret
;
if
(
!
(
ret
=
SysAllocStringLen
(
NULL
,
len
)))
return
NULL
;
strcpyW
(
ret
,
selectW
);
strcatW
(
ret
,
class
);
return
ret
;
}
static
HRESULT
WINAPI
services_InstancesOf
(
static
HRESULT
WINAPI
services_InstancesOf
(
ISWbemServices
*
iface
,
ISWbemServices
*
iface
,
BSTR
strClass
,
BSTR
strClass
,
...
@@ -678,8 +690,22 @@ static HRESULT WINAPI services_InstancesOf(
...
@@ -678,8 +690,22 @@ static HRESULT WINAPI services_InstancesOf(
IDispatch
*
objWbemNamedValueSet
,
IDispatch
*
objWbemNamedValueSet
,
ISWbemObjectSet
**
objWbemObjectSet
)
ISWbemObjectSet
**
objWbemObjectSet
)
{
{
FIXME
(
"
\n
"
);
static
const
WCHAR
wqlW
[]
=
{
'W'
,
'Q'
,
'L'
,
0
};
return
E_NOTIMPL
;
BSTR
query
,
wql
=
SysAllocString
(
wqlW
);
HRESULT
hr
;
TRACE
(
"%p, %s, %x, %p, %p
\n
"
,
iface
,
debugstr_w
(
strClass
),
iFlags
,
objWbemNamedValueSet
,
objWbemObjectSet
);
if
(
!
(
query
=
build_query_string
(
strClass
)))
{
SysFreeString
(
wql
);
return
E_OUTOFMEMORY
;
}
hr
=
ISWbemServices_ExecQuery
(
iface
,
query
,
wql
,
iFlags
,
objWbemNamedValueSet
,
objWbemObjectSet
);
SysFreeString
(
wql
);
SysFreeString
(
query
);
return
hr
;
}
}
static
HRESULT
WINAPI
services_InstancesOfAsync
(
static
HRESULT
WINAPI
services_InstancesOfAsync
(
...
...
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