Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
f18b24ad
Commit
f18b24ad
authored
12 years ago
by
Hans Leidekker
Committed by
Alexandre Julliard
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wbemprox: Implement IWbemClassObject::GetNames.
parent
612f380a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dlls/wbemprox/class.c
+16
-2
16 additions, 2 deletions
dlls/wbemprox/class.c
dlls/wbemprox/query.c
+22
-0
22 additions, 0 deletions
dlls/wbemprox/query.c
dlls/wbemprox/wbemprox_private.h
+1
-0
1 addition, 0 deletions
dlls/wbemprox/wbemprox_private.h
include/wbemcli.idl
+19
-0
19 additions, 0 deletions
include/wbemcli.idl
with
58 additions
and
2 deletions
dlls/wbemprox/class.c
+
16
−
2
View file @
f18b24ad
...
...
@@ -314,8 +314,22 @@ static HRESULT WINAPI class_object_GetNames(
VARIANT
*
pQualifierVal
,
SAFEARRAY
**
pNames
)
{
FIXME
(
"%p, %s, %08x, %p, %p
\n
"
,
iface
,
debugstr_w
(
wszQualifierName
),
lFlags
,
pQualifierVal
,
pNames
);
return
E_NOTIMPL
;
struct
class_object
*
co
=
impl_from_IWbemClassObject
(
iface
);
struct
enum_class_object
*
ec
=
impl_from_IEnumWbemClassObject
(
co
->
iter
);
TRACE
(
"%p, %s, %08x, %p, %p
\n
"
,
iface
,
debugstr_w
(
wszQualifierName
),
lFlags
,
pQualifierVal
,
pNames
);
if
(
wszQualifierName
||
pQualifierVal
)
{
FIXME
(
"qualifier not supported
\n
"
);
return
E_NOTIMPL
;
}
if
(
lFlags
!=
WBEM_FLAG_ALWAYS
)
{
FIXME
(
"flags %08x not supported
\n
"
,
lFlags
);
return
E_NOTIMPL
;
}
return
get_properties
(
ec
->
query
->
view
,
pNames
);
}
static
HRESULT
WINAPI
class_object_BeginEnumeration
(
...
...
This diff is collapsed.
Click to expand it.
dlls/wbemprox/query.c
+
22
−
0
View file @
f18b24ad
...
...
@@ -413,3 +413,25 @@ HRESULT get_propval( const struct view *view, UINT index, const WCHAR *name, VAR
if
(
type
)
*
type
=
view
->
table
->
columns
[
column
].
type
;
return
S_OK
;
}
HRESULT
get_properties
(
const
struct
view
*
view
,
SAFEARRAY
**
props
)
{
SAFEARRAY
*
sa
;
BSTR
str
;
LONG
i
;
if
(
!
(
sa
=
SafeArrayCreateVector
(
VT_BSTR
,
0
,
view
->
table
->
num_cols
)))
return
E_OUTOFMEMORY
;
for
(
i
=
0
;
i
<
view
->
table
->
num_cols
;
i
++
)
{
str
=
SysAllocString
(
view
->
table
->
columns
[
i
].
name
);
if
(
!
str
||
SafeArrayPutElement
(
sa
,
&
i
,
str
)
!=
S_OK
)
{
SysFreeString
(
str
);
SafeArrayDestroy
(
sa
);
return
E_OUTOFMEMORY
;
}
}
*
props
=
sa
;
return
S_OK
;
}
This diff is collapsed.
Click to expand it.
dlls/wbemprox/wbemprox_private.h
+
1
−
0
View file @
f18b24ad
...
...
@@ -114,6 +114,7 @@ void destroy_view( struct view * ) DECLSPEC_HIDDEN;
struct
table
*
get_table
(
const
WCHAR
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_propval
(
const
struct
view
*
,
UINT
,
const
WCHAR
*
,
VARIANT
*
,
CIMTYPE
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_properties
(
const
struct
view
*
,
SAFEARRAY
**
)
DECLSPEC_HIDDEN
;
HRESULT
WbemLocator_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
WbemServices_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
...
...
This diff is collapsed.
Click to expand it.
include/wbemcli.idl
+
19
−
0
View file @
f18b24ad
...
...
@@ -182,6 +182,25 @@ typedef [v1_enum] enum tag_WBEM_TIMEOUT_TYPE
WBEM_INFINITE
=
0
xffffffff
}
WBEM_TIMEOUT_TYPE
;
typedef
[
v1_enum
]
enum
tag_WBEM_CONDITION_FLAG_TYPE
{
WBEM_FLAG_ALWAYS
=
0
,
WBEM_FLAG_ONLY_IF_TRUE
=
0
x1
,
WBEM_FLAG_ONLY_IF_FALSE
=
0
x2
,
WBEM_FLAG_ONLY_IF_IDENTICAL
=
0
x3
,
WBEM_MASK_PRIMARY_CONDITION
=
0
x3
,
WBEM_FLAG_KEYS_ONLY
=
0
x4
,
WBEM_FLAG_REFS_ONLY
=
0
x8
,
WBEM_FLAG_LOCAL_ONLY
=
0
x10
,
WBEM_FLAG_PROPAGATED_ONLY
=
0
x20
,
WBEM_FLAG_SYSTEM_ONLY
=
0
x30
,
WBEM_FLAG_NONSYSTEM_ONLY
=
0
x40
,
WBEM_MASK_CONDITION_ORIGIN
=
0
x70
,
WBEM_FLAG_CLASS_OVERRIDES_ONLY
=
0
x100
,
WBEM_FLAG_CLASS_LOCAL_AND_OVERRIDES
=
0
x200
,
WBEM_MASK_CLASS_CONDITION
=
0
x300
}
WBEM_CONDITION_FLAG_TYPE
;
typedef
[
v1_enum
]
enum
tag_CIMTYPE_ENUMERATION
{
CIM_ILLEGAL
=
0
xfff
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment