Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0444be5c
Commit
0444be5c
authored
Feb 14, 2022
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ef437b41
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
73 additions
and
73 deletions
+73
-73
Makefile.in
dlls/wbemprox/Makefile.in
+0
-1
builtin.c
dlls/wbemprox/builtin.c
+5
-4
class.c
dlls/wbemprox/class.c
+22
-22
process.c
dlls/wbemprox/process.c
+5
-5
qualifier.c
dlls/wbemprox/qualifier.c
+8
-8
query.c
dlls/wbemprox/query.c
+2
-2
reg.c
dlls/wbemprox/reg.c
+2
-2
service.c
dlls/wbemprox/service.c
+1
-1
services.c
dlls/wbemprox/services.c
+24
-24
table.c
dlls/wbemprox/table.c
+2
-2
wbemlocator.c
dlls/wbemprox/wbemlocator.c
+2
-2
No files found.
dlls/wbemprox/Makefile.in
View file @
0444be5c
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
wbemprox.dll
MODULE
=
wbemprox.dll
IMPORTS
=
winspool version iphlpapi dxgi oleaut32 ole32 advapi32 user32 gdi32 ws2_32 rpcrt4 setupapi
IMPORTS
=
winspool version iphlpapi dxgi oleaut32 ole32 advapi32 user32 gdi32 ws2_32 rpcrt4 setupapi
...
...
dlls/wbemprox/builtin.c
View file @
0444be5c
...
@@ -3128,7 +3128,8 @@ static enum fill_status fill_printer( struct table *table, const struct expr *co
...
@@ -3128,7 +3128,8 @@ static enum fill_status fill_printer( struct table *table, const struct expr *co
struct
record_printer
*
rec
;
struct
record_printer
*
rec
;
enum
fill_status
status
=
FILL_STATUS_UNFILTERED
;
enum
fill_status
status
=
FILL_STATUS_UNFILTERED
;
PRINTER_INFO_2W
*
info
;
PRINTER_INFO_2W
*
info
;
DWORD
i
,
offset
=
0
,
count
=
0
,
size
=
0
,
num_rows
=
0
;
DWORD
i
,
offset
=
0
,
count
=
0
,
size
=
0
;
UINT
num_rows
=
0
;
WCHAR
id
[
20
];
WCHAR
id
[
20
];
EnumPrintersW
(
PRINTER_ENUM_LOCAL
,
NULL
,
2
,
NULL
,
0
,
&
size
,
&
count
);
EnumPrintersW
(
PRINTER_ENUM_LOCAL
,
NULL
,
2
,
NULL
,
0
,
&
size
,
&
count
);
...
@@ -3656,7 +3657,7 @@ static const WCHAR *get_service_type( DWORD type )
...
@@ -3656,7 +3657,7 @@ static const WCHAR *get_service_type( DWORD type )
else
if
(
type
&
SERVICE_FILE_SYSTEM_DRIVER
)
return
L"File System Driver"
;
else
if
(
type
&
SERVICE_FILE_SYSTEM_DRIVER
)
return
L"File System Driver"
;
else
if
(
type
&
SERVICE_WIN32_OWN_PROCESS
)
return
L"Own Process"
;
else
if
(
type
&
SERVICE_WIN32_OWN_PROCESS
)
return
L"Own Process"
;
else
if
(
type
&
SERVICE_WIN32_SHARE_PROCESS
)
return
L"Share Process"
;
else
if
(
type
&
SERVICE_WIN32_SHARE_PROCESS
)
return
L"Share Process"
;
else
ERR
(
"unhandled type 0x%08x
\n
"
,
type
);
else
ERR
(
"unhandled type %#lx
\n
"
,
type
);
return
NULL
;
return
NULL
;
}
}
static
const
WCHAR
*
get_service_state
(
DWORD
state
)
static
const
WCHAR
*
get_service_state
(
DWORD
state
)
...
@@ -3668,7 +3669,7 @@ static const WCHAR *get_service_state( DWORD state )
...
@@ -3668,7 +3669,7 @@ static const WCHAR *get_service_state( DWORD state )
case
SERVICE_STOP_PENDING
:
return
L"Stop Pending"
;
case
SERVICE_STOP_PENDING
:
return
L"Stop Pending"
;
case
SERVICE_RUNNING
:
return
L"Running"
;
case
SERVICE_RUNNING
:
return
L"Running"
;
default:
default:
ERR
(
"unknown state %u
\n
"
,
state
);
ERR
(
"unknown state %lu
\n
"
,
state
);
return
L"Unknown"
;
return
L"Unknown"
;
}
}
}
}
...
@@ -3682,7 +3683,7 @@ static const WCHAR *get_service_startmode( DWORD mode )
...
@@ -3682,7 +3683,7 @@ static const WCHAR *get_service_startmode( DWORD mode )
case
SERVICE_DEMAND_START
:
return
L"Manual"
;
case
SERVICE_DEMAND_START
:
return
L"Manual"
;
case
SERVICE_DISABLED
:
return
L"Disabled"
;
case
SERVICE_DISABLED
:
return
L"Disabled"
;
default:
default:
ERR
(
"unknown mode 0x%x
\n
"
,
mode
);
ERR
(
"unknown mode %#lx
\n
"
,
mode
);
return
L"Unknown"
;
return
L"Unknown"
;
}
}
}
}
...
...
dlls/wbemprox/class.c
View file @
0444be5c
...
@@ -119,7 +119,7 @@ static HRESULT WINAPI enum_class_object_Next(
...
@@ -119,7 +119,7 @@ static HRESULT WINAPI enum_class_object_Next(
HRESULT
hr
;
HRESULT
hr
;
ULONG
i
,
j
;
ULONG
i
,
j
;
TRACE
(
"%p, %d, %u, %p, %p
\n
"
,
iface
,
lTimeout
,
uCount
,
apObjects
,
puReturned
);
TRACE
(
"%p, %ld, %lu, %p, %p
\n
"
,
iface
,
lTimeout
,
uCount
,
apObjects
,
puReturned
);
if
(
!
apObjects
||
!
puReturned
)
return
WBEM_E_INVALID_PARAMETER
;
if
(
!
apObjects
||
!
puReturned
)
return
WBEM_E_INVALID_PARAMETER
;
if
(
lTimeout
!=
WBEM_INFINITE
&&
!
once
++
)
FIXME
(
"timeout not supported
\n
"
);
if
(
lTimeout
!=
WBEM_INFINITE
&&
!
once
++
)
FIXME
(
"timeout not supported
\n
"
);
...
@@ -148,7 +148,7 @@ static HRESULT WINAPI enum_class_object_NextAsync(
...
@@ -148,7 +148,7 @@ static HRESULT WINAPI enum_class_object_NextAsync(
ULONG
uCount
,
ULONG
uCount
,
IWbemObjectSink
*
pSink
)
IWbemObjectSink
*
pSink
)
{
{
FIXME
(
"%p, %u, %p
\n
"
,
iface
,
uCount
,
pSink
);
FIXME
(
"%p, %lu, %p
\n
"
,
iface
,
uCount
,
pSink
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -172,7 +172,7 @@ static HRESULT WINAPI enum_class_object_Skip(
...
@@ -172,7 +172,7 @@ static HRESULT WINAPI enum_class_object_Skip(
struct
view
*
view
=
ec
->
query
->
view
;
struct
view
*
view
=
ec
->
query
->
view
;
static
int
once
=
0
;
static
int
once
=
0
;
TRACE
(
"%p, %d, %u
\n
"
,
iface
,
lTimeout
,
nCount
);
TRACE
(
"%p, %ld, %lu
\n
"
,
iface
,
lTimeout
,
nCount
);
if
(
lTimeout
!=
WBEM_INFINITE
&&
!
once
++
)
FIXME
(
"timeout not supported
\n
"
);
if
(
lTimeout
!=
WBEM_INFINITE
&&
!
once
++
)
FIXME
(
"timeout not supported
\n
"
);
...
@@ -396,7 +396,7 @@ static HRESULT WINAPI class_object_Get(
...
@@ -396,7 +396,7 @@ static HRESULT WINAPI class_object_Get(
struct
class_object
*
co
=
impl_from_IWbemClassObject
(
iface
);
struct
class_object
*
co
=
impl_from_IWbemClassObject
(
iface
);
struct
enum_class_object
*
ec
=
impl_from_IEnumWbemClassObject
(
co
->
iter
);
struct
enum_class_object
*
ec
=
impl_from_IEnumWbemClassObject
(
co
->
iter
);
TRACE
(
"%p, %s, %08x, %p, %p, %p
\n
"
,
iface
,
debugstr_w
(
wszName
),
lFlags
,
pVal
,
pType
,
plFlavor
);
TRACE
(
"%p, %s, %#lx, %p, %p, %p
\n
"
,
iface
,
debugstr_w
(
wszName
),
lFlags
,
pVal
,
pType
,
plFlavor
);
if
(
co
->
record
)
if
(
co
->
record
)
{
{
...
@@ -437,7 +437,7 @@ static HRESULT record_set_value( struct record *record, UINT index, VARIANT *var
...
@@ -437,7 +437,7 @@ static HRESULT record_set_value( struct record *record, UINT index, VARIANT *var
record
->
fields
[
index
].
u
.
ival
=
val
;
record
->
fields
[
index
].
u
.
ival
=
val
;
return
S_OK
;
return
S_OK
;
default:
default:
FIXME
(
"unhandled type %u
\n
"
,
type
);
FIXME
(
"unhandled type %lu
\n
"
,
type
);
break
;
break
;
}
}
return
WBEM_E_INVALID_PARAMETER
;
return
WBEM_E_INVALID_PARAMETER
;
...
@@ -453,7 +453,7 @@ static HRESULT WINAPI class_object_Put(
...
@@ -453,7 +453,7 @@ static HRESULT WINAPI class_object_Put(
struct
class_object
*
co
=
impl_from_IWbemClassObject
(
iface
);
struct
class_object
*
co
=
impl_from_IWbemClassObject
(
iface
);
struct
enum_class_object
*
ec
=
impl_from_IEnumWbemClassObject
(
co
->
iter
);
struct
enum_class_object
*
ec
=
impl_from_IEnumWbemClassObject
(
co
->
iter
);
TRACE
(
"%p, %s, %08x, %p, %u
\n
"
,
iface
,
debugstr_w
(
wszName
),
lFlags
,
pVal
,
Type
);
TRACE
(
"%p, %s, %#lx, %p, %lu
\n
"
,
iface
,
debugstr_w
(
wszName
),
lFlags
,
pVal
,
Type
);
if
(
co
->
record
)
if
(
co
->
record
)
{
{
...
@@ -487,7 +487,7 @@ static HRESULT WINAPI class_object_GetNames(
...
@@ -487,7 +487,7 @@ static HRESULT WINAPI class_object_GetNames(
struct
class_object
*
co
=
impl_from_IWbemClassObject
(
iface
);
struct
class_object
*
co
=
impl_from_IWbemClassObject
(
iface
);
struct
enum_class_object
*
ec
=
impl_from_IEnumWbemClassObject
(
co
->
iter
);
struct
enum_class_object
*
ec
=
impl_from_IEnumWbemClassObject
(
co
->
iter
);
TRACE
(
"%p, %s, %08
x, %s, %p
\n
"
,
iface
,
debugstr_w
(
wszQualifierName
),
lFlags
,
TRACE
(
"%p, %s, %#l
x, %s, %p
\n
"
,
iface
,
debugstr_w
(
wszQualifierName
),
lFlags
,
debugstr_variant
(
pQualifierVal
),
pNames
);
debugstr_variant
(
pQualifierVal
),
pNames
);
if
(
!
pNames
)
if
(
!
pNames
)
...
@@ -501,7 +501,7 @@ static HRESULT WINAPI class_object_GetNames(
...
@@ -501,7 +501,7 @@ static HRESULT WINAPI class_object_GetNames(
lFlags
!=
WBEM_FLAG_NONSYSTEM_ONLY
&&
lFlags
!=
WBEM_FLAG_NONSYSTEM_ONLY
&&
lFlags
!=
WBEM_FLAG_SYSTEM_ONLY
))
lFlags
!=
WBEM_FLAG_SYSTEM_ONLY
))
{
{
FIXME
(
"flags %08x not supported
\n
"
,
lFlags
);
FIXME
(
"flags %#lx not supported
\n
"
,
lFlags
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -517,9 +517,9 @@ static HRESULT WINAPI class_object_BeginEnumeration(
...
@@ -517,9 +517,9 @@ static HRESULT WINAPI class_object_BeginEnumeration(
{
{
struct
class_object
*
co
=
impl_from_IWbemClassObject
(
iface
);
struct
class_object
*
co
=
impl_from_IWbemClassObject
(
iface
);
TRACE
(
"%p, %08x
\n
"
,
iface
,
lEnumFlags
);
TRACE
(
"%p, %#lx
\n
"
,
iface
,
lEnumFlags
);
if
(
lEnumFlags
)
FIXME
(
"flags 0x%08x not supported
\n
"
,
lEnumFlags
);
if
(
lEnumFlags
)
FIXME
(
"flags %#lx not supported
\n
"
,
lEnumFlags
);
co
->
index_property
=
0
;
co
->
index_property
=
0
;
return
S_OK
;
return
S_OK
;
...
@@ -541,7 +541,7 @@ static HRESULT WINAPI class_object_Next(
...
@@ -541,7 +541,7 @@ static HRESULT WINAPI class_object_Next(
HRESULT
hr
;
HRESULT
hr
;
UINT
i
;
UINT
i
;
TRACE
(
"%p, %08x, %p, %p, %p, %p
\n
"
,
iface
,
lFlags
,
strName
,
pVal
,
pType
,
plFlavor
);
TRACE
(
"%p, %#lx, %p, %p, %p, %p
\n
"
,
iface
,
lFlags
,
strName
,
pVal
,
pType
,
plFlavor
);
for
(
i
=
obj
->
index_property
;
i
<
table
->
num_cols
;
i
++
)
for
(
i
=
obj
->
index_property
;
i
<
table
->
num_cols
;
i
++
)
{
{
...
@@ -661,9 +661,9 @@ static HRESULT WINAPI class_object_GetObjectText(
...
@@ -661,9 +661,9 @@ static HRESULT WINAPI class_object_GetObjectText(
struct
view
*
view
=
ec
->
query
->
view
;
struct
view
*
view
=
ec
->
query
->
view
;
BSTR
text
;
BSTR
text
;
TRACE
(
"%p, %08x, %p
\n
"
,
iface
,
lFlags
,
pstrObjectText
);
TRACE
(
"%p, %#lx, %p
\n
"
,
iface
,
lFlags
,
pstrObjectText
);
if
(
lFlags
)
FIXME
(
"flags %08x not implemented
\n
"
,
lFlags
);
if
(
lFlags
)
FIXME
(
"flags %#lx not implemented
\n
"
,
lFlags
);
if
(
!
(
text
=
get_object_text
(
view
,
co
->
index
)))
return
E_OUTOFMEMORY
;
if
(
!
(
text
=
get_object_text
(
view
,
co
->
index
)))
return
E_OUTOFMEMORY
;
*
pstrObjectText
=
text
;
*
pstrObjectText
=
text
;
...
@@ -675,7 +675,7 @@ static HRESULT WINAPI class_object_SpawnDerivedClass(
...
@@ -675,7 +675,7 @@ static HRESULT WINAPI class_object_SpawnDerivedClass(
LONG
lFlags
,
LONG
lFlags
,
IWbemClassObject
**
ppNewClass
)
IWbemClassObject
**
ppNewClass
)
{
{
FIXME
(
"%p, %08x, %p
\n
"
,
iface
,
lFlags
,
ppNewClass
);
FIXME
(
"%p, %#lx, %p
\n
"
,
iface
,
lFlags
,
ppNewClass
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -691,7 +691,7 @@ static HRESULT WINAPI class_object_SpawnInstance(
...
@@ -691,7 +691,7 @@ static HRESULT WINAPI class_object_SpawnInstance(
struct
record
*
record
;
struct
record
*
record
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"%p, %08x, %p
\n
"
,
iface
,
lFlags
,
ppNewInstance
);
TRACE
(
"%p, %#lx, %p
\n
"
,
iface
,
lFlags
,
ppNewInstance
);
if
(
!
(
record
=
create_record
(
table
)))
return
E_OUTOFMEMORY
;
if
(
!
(
record
=
create_record
(
table
)))
return
E_OUTOFMEMORY
;
if
(
FAILED
(
hr
=
IEnumWbemClassObject_Clone
(
co
->
iter
,
&
iter
)))
if
(
FAILED
(
hr
=
IEnumWbemClassObject_Clone
(
co
->
iter
,
&
iter
)))
...
@@ -709,7 +709,7 @@ static HRESULT WINAPI class_object_CompareTo(
...
@@ -709,7 +709,7 @@ static HRESULT WINAPI class_object_CompareTo(
LONG
lFlags
,
LONG
lFlags
,
IWbemClassObject
*
pCompareTo
)
IWbemClassObject
*
pCompareTo
)
{
{
FIXME
(
"%p, %08x, %p
\n
"
,
iface
,
lFlags
,
pCompareTo
);
FIXME
(
"%p, %#lx, %p
\n
"
,
iface
,
lFlags
,
pCompareTo
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -755,7 +755,7 @@ static void set_default_value( CIMTYPE type, UINT val, BYTE *ptr )
...
@@ -755,7 +755,7 @@ static void set_default_value( CIMTYPE type, UINT val, BYTE *ptr )
*
(
UINT32
*
)
ptr
=
val
;
*
(
UINT32
*
)
ptr
=
val
;
break
;
break
;
default:
default:
FIXME
(
"unhandled type %u
\n
"
,
type
);
FIXME
(
"unhandled type %lu
\n
"
,
type
);
break
;
break
;
}
}
}
}
...
@@ -892,7 +892,7 @@ static HRESULT WINAPI class_object_GetMethod(
...
@@ -892,7 +892,7 @@ static HRESULT WINAPI class_object_GetMethod(
unsigned
int
i
;
unsigned
int
i
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"%p, %s, %08x, %p, %p
\n
"
,
iface
,
debugstr_w
(
wszName
),
lFlags
,
ppInSignature
,
ppOutSignature
);
TRACE
(
"%p, %s, %#lx, %p, %p
\n
"
,
iface
,
debugstr_w
(
wszName
),
lFlags
,
ppInSignature
,
ppOutSignature
);
if
(
ppInSignature
)
*
ppInSignature
=
NULL
;
if
(
ppInSignature
)
*
ppInSignature
=
NULL
;
if
(
ppOutSignature
)
*
ppOutSignature
=
NULL
;
if
(
ppOutSignature
)
*
ppOutSignature
=
NULL
;
...
@@ -931,7 +931,7 @@ static HRESULT WINAPI class_object_PutMethod(
...
@@ -931,7 +931,7 @@ static HRESULT WINAPI class_object_PutMethod(
IWbemClassObject
*
pInSignature
,
IWbemClassObject
*
pInSignature
,
IWbemClassObject
*
pOutSignature
)
IWbemClassObject
*
pOutSignature
)
{
{
FIXME
(
"%p, %s, %08x, %p, %p
\n
"
,
iface
,
debugstr_w
(
wszName
),
lFlags
,
pInSignature
,
pOutSignature
);
FIXME
(
"%p, %s, %#lx, %p, %p
\n
"
,
iface
,
debugstr_w
(
wszName
),
lFlags
,
pInSignature
,
pOutSignature
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -949,9 +949,9 @@ static HRESULT WINAPI class_object_BeginMethodEnumeration(
...
@@ -949,9 +949,9 @@ static HRESULT WINAPI class_object_BeginMethodEnumeration(
{
{
struct
class_object
*
co
=
impl_from_IWbemClassObject
(
iface
);
struct
class_object
*
co
=
impl_from_IWbemClassObject
(
iface
);
TRACE
(
"%p, %08x
\n
"
,
iface
,
lEnumFlags
);
TRACE
(
"%p, %#lx
\n
"
,
iface
,
lEnumFlags
);
if
(
lEnumFlags
)
FIXME
(
"flags 0x%08x not supported
\n
"
,
lEnumFlags
);
if
(
lEnumFlags
)
FIXME
(
"flags %#lx not supported
\n
"
,
lEnumFlags
);
co
->
index_method
=
0
;
co
->
index_method
=
0
;
return
S_OK
;
return
S_OK
;
...
@@ -968,7 +968,7 @@ static HRESULT WINAPI class_object_NextMethod(
...
@@ -968,7 +968,7 @@ static HRESULT WINAPI class_object_NextMethod(
BSTR
method
;
BSTR
method
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"%p, %08x, %p, %p, %p
\n
"
,
iface
,
lFlags
,
pstrName
,
ppInSignature
,
ppOutSignature
);
TRACE
(
"%p, %#lx, %p, %p, %p
\n
"
,
iface
,
lFlags
,
pstrName
,
ppInSignature
,
ppOutSignature
);
if
(
!
(
method
=
get_method_name
(
co
->
ns
,
co
->
name
,
co
->
index_method
)))
return
WBEM_S_NO_MORE_DATA
;
if
(
!
(
method
=
get_method_name
(
co
->
ns
,
co
->
name
,
co
->
index_method
)))
return
WBEM_S_NO_MORE_DATA
;
...
...
dlls/wbemprox/process.c
View file @
0444be5c
...
@@ -135,19 +135,19 @@ HRESULT process_create( IWbemClassObject *obj, IWbemContext *context, IWbemClass
...
@@ -135,19 +135,19 @@ HRESULT process_create( IWbemClassObject *obj, IWbemContext *context, IWbemClass
if
(
FAILED
(
hr
=
IWbemClassObject_Get
(
in
,
L"CommandLine"
,
0
,
&
command_line
,
&
type
,
NULL
))
if
(
FAILED
(
hr
=
IWbemClassObject_Get
(
in
,
L"CommandLine"
,
0
,
&
command_line
,
&
type
,
NULL
))
||
V_VT
(
&
command_line
)
!=
VT_BSTR
)
||
V_VT
(
&
command_line
)
!=
VT_BSTR
)
WARN
(
"
Invalid CommandLine, hr %#x, type %u.
\n
"
,
hr
,
V_VT
(
&
command_line
));
WARN
(
"
invalid CommandLine, hr %#lx, type %u
\n
"
,
hr
,
V_VT
(
&
command_line
));
else
else
TRACE
(
"CommandLine %s.
\n
"
,
debugstr_w
(
V_BSTR
(
&
command_line
)));
TRACE
(
"CommandLine %s.
\n
"
,
debugstr_w
(
V_BSTR
(
&
command_line
)));
if
(
FAILED
(
hr
=
IWbemClassObject_Get
(
in
,
L"CurrentDirectory"
,
0
,
&
current_directory
,
&
type
,
NULL
))
if
(
FAILED
(
hr
=
IWbemClassObject_Get
(
in
,
L"CurrentDirectory"
,
0
,
&
current_directory
,
&
type
,
NULL
))
||
V_VT
(
&
current_directory
)
!=
VT_BSTR
)
||
V_VT
(
&
current_directory
)
!=
VT_BSTR
)
WARN
(
"
Invalid CurrentDirectory, hr %#x, type %u.
\n
"
,
hr
,
V_VT
(
&
current_directory
));
WARN
(
"
invalid CurrentDirectory, hr %#lx, type %u
\n
"
,
hr
,
V_VT
(
&
current_directory
));
else
else
TRACE
(
"CurrentDirectory %s.
\n
"
,
debugstr_w
(
V_BSTR
(
&
current_directory
)));
TRACE
(
"CurrentDirectory %s.
\n
"
,
debugstr_w
(
V_BSTR
(
&
current_directory
)));
if
(
SUCCEEDED
(
IWbemClassObject_Get
(
in
,
L"ProcessStartupInformation"
,
0
,
&
startup_info
,
&
type
,
NULL
))
if
(
SUCCEEDED
(
IWbemClassObject_Get
(
in
,
L"ProcessStartupInformation"
,
0
,
&
startup_info
,
&
type
,
NULL
))
&&
V_VT
(
&
startup_info
)
==
VT_UNKNOWN
&&
V_UNKNOWN
(
&
startup_info
))
&&
V_VT
(
&
startup_info
)
==
VT_UNKNOWN
&&
V_UNKNOWN
(
&
startup_info
))
FIXME
(
"ProcessStartupInformation is not implemented, vt_type %u, type %
u, val %p.
\n
"
,
FIXME
(
"ProcessStartupInformation is not implemented, vt_type %u, type %
lu, val %p
\n
"
,
V_VT
(
&
startup_info
),
type
,
V_UNKNOWN
(
&
startup_info
));
V_VT
(
&
startup_info
),
type
,
V_UNKNOWN
(
&
startup_info
));
if
(
out
&&
(
hr
=
IWbemClassObject_SpawnInstance
(
sig
,
0
,
&
out_params
)))
if
(
out
&&
(
hr
=
IWbemClassObject_SpawnInstance
(
sig
,
0
,
&
out_params
)))
...
@@ -164,7 +164,7 @@ HRESULT process_create( IWbemClassObject *obj, IWbemContext *context, IWbemClass
...
@@ -164,7 +164,7 @@ HRESULT process_create( IWbemClassObject *obj, IWbemContext *context, IWbemClass
bret
=
CreateProcessW
(
NULL
,
V_BSTR
(
&
command_line
),
NULL
,
NULL
,
FALSE
,
0L
,
bret
=
CreateProcessW
(
NULL
,
V_BSTR
(
&
command_line
),
NULL
,
NULL
,
FALSE
,
0L
,
V_VT
(
&
current_directory
)
==
VT_BSTR
?
V_BSTR
(
&
current_directory
)
:
NULL
,
V_VT
(
&
current_directory
)
==
VT_BSTR
?
V_BSTR
(
&
current_directory
)
:
NULL
,
NULL
,
&
si
,
&
pi
);
NULL
,
&
si
,
&
pi
);
TRACE
(
"CreateProcessW ret %
#x, GetLastError() %u.
\n
"
,
bret
,
GetLastError
()
);
TRACE
(
"CreateProcessW ret %
d, GetLastError() %lu
\n
"
,
bret
,
GetLastError
()
);
if
(
bret
)
if
(
bret
)
{
{
CloseHandle
(
pi
.
hThread
);
CloseHandle
(
pi
.
hThread
);
...
@@ -217,6 +217,6 @@ done:
...
@@ -217,6 +217,6 @@ done:
VariantClear
(
&
command_line
);
VariantClear
(
&
command_line
);
VariantClear
(
&
current_directory
);
VariantClear
(
&
current_directory
);
VariantClear
(
&
startup_info
);
VariantClear
(
&
startup_info
);
TRACE
(
"ret %#
x.
\n
"
,
ret
);
TRACE
(
"ret %#
lx
\n
"
,
ret
);
return
ret
;
return
ret
;
}
}
dlls/wbemprox/qualifier.c
View file @
0444be5c
...
@@ -159,7 +159,7 @@ static HRESULT get_qualifier_value( enum wbm_namespace ns, const WCHAR *class, c
...
@@ -159,7 +159,7 @@ static HRESULT get_qualifier_value( enum wbm_namespace ns, const WCHAR *class, c
hr
=
IWbemClassObject_Get
(
obj
,
L"BoolValue"
,
0
,
val
,
NULL
,
NULL
);
hr
=
IWbemClassObject_Get
(
obj
,
L"BoolValue"
,
0
,
val
,
NULL
,
NULL
);
break
;
break
;
default:
default:
ERR
(
"unhandled type %u
\n
"
,
V_UI4
(
&
var
)
);
ERR
(
"unhandled type %lu
\n
"
,
V_UI4
(
&
var
)
);
break
;
break
;
}
}
...
@@ -177,10 +177,10 @@ static HRESULT WINAPI qualifier_set_Get(
...
@@ -177,10 +177,10 @@ static HRESULT WINAPI qualifier_set_Get(
{
{
struct
qualifier_set
*
set
=
impl_from_IWbemQualifierSet
(
iface
);
struct
qualifier_set
*
set
=
impl_from_IWbemQualifierSet
(
iface
);
TRACE
(
"%p, %s, %08x, %p, %p
\n
"
,
iface
,
debugstr_w
(
wszName
),
lFlags
,
pVal
,
plFlavor
);
TRACE
(
"%p, %s, %#lx, %p, %p
\n
"
,
iface
,
debugstr_w
(
wszName
),
lFlags
,
pVal
,
plFlavor
);
if
(
lFlags
)
if
(
lFlags
)
{
{
FIXME
(
"flags %08x not supported
\n
"
,
lFlags
);
FIXME
(
"flags %#lx not supported
\n
"
,
lFlags
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
return
get_qualifier_value
(
set
->
ns
,
set
->
class
,
set
->
member
,
wszName
,
pVal
,
plFlavor
);
return
get_qualifier_value
(
set
->
ns
,
set
->
class
,
set
->
member
,
wszName
,
pVal
,
plFlavor
);
...
@@ -192,7 +192,7 @@ static HRESULT WINAPI qualifier_set_Put(
...
@@ -192,7 +192,7 @@ static HRESULT WINAPI qualifier_set_Put(
VARIANT
*
pVal
,
VARIANT
*
pVal
,
LONG
lFlavor
)
LONG
lFlavor
)
{
{
FIXME
(
"%p, %s, %p, %d
\n
"
,
iface
,
debugstr_w
(
wszName
),
pVal
,
lFlavor
);
FIXME
(
"%p, %s, %p, %ld
\n
"
,
iface
,
debugstr_w
(
wszName
),
pVal
,
lFlavor
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -214,10 +214,10 @@ static HRESULT WINAPI qualifier_set_GetNames(
...
@@ -214,10 +214,10 @@ static HRESULT WINAPI qualifier_set_GetNames(
IWbemClassObject
*
obj
;
IWbemClassObject
*
obj
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"%p, %08x, %p
\n
"
,
iface
,
lFlags
,
pNames
);
TRACE
(
"%p, %#lx, %p
\n
"
,
iface
,
lFlags
,
pNames
);
if
(
lFlags
)
if
(
lFlags
)
{
{
FIXME
(
"flags %08x not supported
\n
"
,
lFlags
);
FIXME
(
"flags %#lx not supported
\n
"
,
lFlags
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -237,7 +237,7 @@ static HRESULT WINAPI qualifier_set_BeginEnumeration(
...
@@ -237,7 +237,7 @@ static HRESULT WINAPI qualifier_set_BeginEnumeration(
IWbemQualifierSet
*
iface
,
IWbemQualifierSet
*
iface
,
LONG
lFlags
)
LONG
lFlags
)
{
{
FIXME
(
"%p, %08x
\n
"
,
iface
,
lFlags
);
FIXME
(
"%p, %#lx
\n
"
,
iface
,
lFlags
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -248,7 +248,7 @@ static HRESULT WINAPI qualifier_set_Next(
...
@@ -248,7 +248,7 @@ static HRESULT WINAPI qualifier_set_Next(
VARIANT
*
pVal
,
VARIANT
*
pVal
,
LONG
*
plFlavor
)
LONG
*
plFlavor
)
{
{
FIXME
(
"%p, %08x, %p, %p, %p
\n
"
,
iface
,
lFlags
,
pstrName
,
pVal
,
plFlavor
);
FIXME
(
"%p, %#lx, %p, %p, %p
\n
"
,
iface
,
lFlags
,
pstrName
,
pVal
,
plFlavor
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
...
dlls/wbemprox/query.c
View file @
0444be5c
...
@@ -300,7 +300,7 @@ static const WCHAR *format_int( WCHAR *buf, UINT len, CIMTYPE type, LONGLONG val
...
@@ -300,7 +300,7 @@ static const WCHAR *format_int( WCHAR *buf, UINT len, CIMTYPE type, LONGLONG val
return
buf
;
return
buf
;
default:
default:
ERR
(
"unhandled type %u
\n
"
,
type
);
ERR
(
"unhandled type %
l
u
\n
"
,
type
);
return
NULL
;
return
NULL
;
}
}
}
}
...
@@ -1047,7 +1047,7 @@ VARTYPE to_vartype( CIMTYPE type )
...
@@ -1047,7 +1047,7 @@ VARTYPE to_vartype( CIMTYPE type )
case
CIM_REAL32
:
return
VT_R4
;
case
CIM_REAL32
:
return
VT_R4
;
default:
default:
ERR
(
"unhandled type %u
\n
"
,
type
);
ERR
(
"unhandled type %lu
\n
"
,
type
);
break
;
break
;
}
}
return
0
;
return
0
;
...
...
dlls/wbemprox/reg.c
View file @
0444be5c
...
@@ -564,12 +564,12 @@ HRESULT reg_set_stringvalue( IWbemClassObject *obj, IWbemContext *context, IWbem
...
@@ -564,12 +564,12 @@ HRESULT reg_set_stringvalue( IWbemClassObject *obj, IWbemContext *context, IWbem
}
}
static
void
set_dwordvalue
(
HKEY
root
,
const
WCHAR
*
subkey
,
const
WCHAR
*
name
,
DWORD
value
,
IWbemContext
*
context
,
static
void
set_dwordvalue
(
HKEY
root
,
const
WCHAR
*
subkey
,
const
WCHAR
*
name
,
DWORD
value
,
IWbemContext
*
context
,
VARIANT
*
retval
)
VARIANT
*
retval
)
{
{
HKEY
hkey
;
HKEY
hkey
;
LONG
res
;
LONG
res
;
TRACE
(
"%p, %s, %s, %#x
\n
"
,
root
,
debugstr_w
(
subkey
),
debugstr_w
(
name
),
value
);
TRACE
(
"%p, %s, %s, %#lx
\n
"
,
root
,
debugstr_w
(
subkey
),
debugstr_w
(
name
),
value
);
if
((
res
=
RegOpenKeyExW
(
root
,
subkey
,
0
,
KEY_SET_VALUE
|
reg_get_access_mask
(
context
),
&
hkey
)))
if
((
res
=
RegOpenKeyExW
(
root
,
subkey
,
0
,
KEY_SET_VALUE
|
reg_get_access_mask
(
context
),
&
hkey
)))
{
{
...
...
dlls/wbemprox/service.c
View file @
0444be5c
...
@@ -45,7 +45,7 @@ static UINT map_error( DWORD error )
...
@@ -45,7 +45,7 @@ static UINT map_error( DWORD error )
case
ERROR_SERVICE_REQUEST_TIMEOUT
:
return
7
;
case
ERROR_SERVICE_REQUEST_TIMEOUT
:
return
7
;
case
ERROR_SERVICE_ALREADY_RUNNING
:
return
10
;
case
ERROR_SERVICE_ALREADY_RUNNING
:
return
10
;
default:
default:
WARN
(
"unknown error %u
\n
"
,
error
);
WARN
(
"unknown error %lu
\n
"
,
error
);
break
;
break
;
}
}
return
8
;
return
8
;
...
...
dlls/wbemprox/services.c
View file @
0444be5c
...
@@ -122,8 +122,8 @@ static HRESULT WINAPI client_security_SetBlanket(
...
@@ -122,8 +122,8 @@ static HRESULT WINAPI client_security_SetBlanket(
const
OLECHAR
*
princname
=
(
pServerPrincName
==
COLE_DEFAULT_PRINCIPAL
)
?
const
OLECHAR
*
princname
=
(
pServerPrincName
==
COLE_DEFAULT_PRINCIPAL
)
?
L"<COLE_DEFAULT_PRINCIPAL>"
:
pServerPrincName
;
L"<COLE_DEFAULT_PRINCIPAL>"
:
pServerPrincName
;
FIXME
(
"%p, %p, %u, %u, %s, %u, %u, %p, 0x%08
x
\n
"
,
iface
,
pProxy
,
AuthnSvc
,
AuthzSvc
,
FIXME
(
"%p, %p, %lu, %lu, %s, %lu, %lu, %p, %#l
x
\n
"
,
iface
,
pProxy
,
AuthnSvc
,
AuthzSvc
,
debugstr_w
(
princname
),
AuthnLevel
,
ImpLevel
,
pAuthInfo
,
Capabilities
);
debugstr_w
(
princname
),
AuthnLevel
,
ImpLevel
,
pAuthInfo
,
Capabilities
);
return
WBEM_NO_ERROR
;
return
WBEM_NO_ERROR
;
}
}
...
@@ -290,8 +290,8 @@ static HRESULT WINAPI wbem_services_OpenNamespace(
...
@@ -290,8 +290,8 @@ static HRESULT WINAPI wbem_services_OpenNamespace(
{
{
struct
wbem_services
*
ws
=
impl_from_IWbemServices
(
iface
);
struct
wbem_services
*
ws
=
impl_from_IWbemServices
(
iface
);
TRACE
(
"%p, %s, 0x%08
x, %p, %p, %p
\n
"
,
iface
,
debugstr_w
(
strNamespace
),
lFlags
,
TRACE
(
"%p, %s, %#l
x, %p, %p, %p
\n
"
,
iface
,
debugstr_w
(
strNamespace
),
lFlags
,
pCtx
,
ppWorkingNamespace
,
ppResult
);
pCtx
,
ppWorkingNamespace
,
ppResult
);
if
(
ws
->
ns
!=
WBEMPROX_NAMESPACE_LAST
||
!
strNamespace
)
if
(
ws
->
ns
!=
WBEMPROX_NAMESPACE_LAST
||
!
strNamespace
)
return
WBEM_E_INVALID_NAMESPACE
;
return
WBEM_E_INVALID_NAMESPACE
;
...
@@ -502,10 +502,10 @@ static HRESULT WINAPI wbem_services_GetObject(
...
@@ -502,10 +502,10 @@ static HRESULT WINAPI wbem_services_GetObject(
{
{
struct
wbem_services
*
services
=
impl_from_IWbemServices
(
iface
);
struct
wbem_services
*
services
=
impl_from_IWbemServices
(
iface
);
TRACE
(
"%p, %s, 0x%08
x, %p, %p, %p
\n
"
,
iface
,
debugstr_w
(
strObjectPath
),
lFlags
,
TRACE
(
"%p, %s, %#l
x, %p, %p, %p
\n
"
,
iface
,
debugstr_w
(
strObjectPath
),
lFlags
,
pCtx
,
ppObject
,
ppCallResult
);
pCtx
,
ppObject
,
ppCallResult
);
if
(
lFlags
)
FIXME
(
"unsupported flags 0x%08x
\n
"
,
lFlags
);
if
(
lFlags
)
FIXME
(
"unsupported flags %#lx
\n
"
,
lFlags
);
if
(
!
strObjectPath
||
!
strObjectPath
[
0
])
if
(
!
strObjectPath
||
!
strObjectPath
[
0
])
return
create_class_object
(
services
->
ns
,
NULL
,
NULL
,
0
,
NULL
,
ppObject
);
return
create_class_object
(
services
->
ns
,
NULL
,
NULL
,
0
,
NULL
,
ppObject
);
...
@@ -645,9 +645,9 @@ static HRESULT WINAPI wbem_services_CreateInstanceEnum(
...
@@ -645,9 +645,9 @@ static HRESULT WINAPI wbem_services_CreateInstanceEnum(
struct
path
*
path
;
struct
path
*
path
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"%p, %s, 0%08x, %p, %p
\n
"
,
iface
,
debugstr_w
(
strClass
),
lFlags
,
pCtx
,
ppEnum
);
TRACE
(
"%p, %s, %#lx, %p, %p
\n
"
,
iface
,
debugstr_w
(
strClass
),
lFlags
,
pCtx
,
ppEnum
);
if
(
lFlags
)
FIXME
(
"unsupported flags 0x%08x
\n
"
,
lFlags
);
if
(
lFlags
)
FIXME
(
"unsupported flags %#lx
\n
"
,
lFlags
);
hr
=
parse_path
(
strClass
,
&
path
);
hr
=
parse_path
(
strClass
,
&
path
);
if
(
hr
!=
S_OK
)
return
hr
;
if
(
hr
!=
S_OK
)
return
hr
;
...
@@ -678,8 +678,8 @@ static HRESULT WINAPI wbem_services_ExecQuery(
...
@@ -678,8 +678,8 @@ static HRESULT WINAPI wbem_services_ExecQuery(
{
{
struct
wbem_services
*
services
=
impl_from_IWbemServices
(
iface
);
struct
wbem_services
*
services
=
impl_from_IWbemServices
(
iface
);
TRACE
(
"%p, %s, %s, 0x%08
x, %p, %p
\n
"
,
iface
,
debugstr_w
(
strQueryLanguage
),
TRACE
(
"%p, %s, %s, %#l
x, %p, %p
\n
"
,
iface
,
debugstr_w
(
strQueryLanguage
),
debugstr_w
(
strQuery
),
lFlags
,
pCtx
,
ppEnum
);
debugstr_w
(
strQuery
),
lFlags
,
pCtx
,
ppEnum
);
if
(
!
strQueryLanguage
||
!
strQuery
||
!
strQuery
[
0
])
return
WBEM_E_INVALID_PARAMETER
;
if
(
!
strQueryLanguage
||
!
strQuery
||
!
strQuery
[
0
])
return
WBEM_E_INVALID_PARAMETER
;
if
(
wcsicmp
(
strQueryLanguage
,
L"WQL"
))
return
WBEM_E_INVALID_QUERY_TYPE
;
if
(
wcsicmp
(
strQueryLanguage
,
L"WQL"
))
return
WBEM_E_INVALID_QUERY_TYPE
;
...
@@ -724,8 +724,8 @@ static HRESULT WINAPI wbem_services_ExecQueryAsync(
...
@@ -724,8 +724,8 @@ static HRESULT WINAPI wbem_services_ExecQueryAsync(
struct
async_header
*
async
;
struct
async_header
*
async
;
struct
async_query
*
query
;
struct
async_query
*
query
;
TRACE
(
"%p, %s, %s, 0x%08
x, %p, %p
\n
"
,
iface
,
debugstr_w
(
strQueryLanguage
),
debugstr_w
(
strQuery
),
TRACE
(
"%p, %s, %s, %#l
x, %p, %p
\n
"
,
iface
,
debugstr_w
(
strQueryLanguage
),
debugstr_w
(
strQuery
),
lFlags
,
pCtx
,
pResponseHandler
);
lFlags
,
pCtx
,
pResponseHandler
);
if
(
!
pResponseHandler
)
return
WBEM_E_INVALID_PARAMETER
;
if
(
!
pResponseHandler
)
return
WBEM_E_INVALID_PARAMETER
;
...
@@ -794,8 +794,8 @@ static HRESULT WINAPI wbem_services_ExecNotificationQueryAsync(
...
@@ -794,8 +794,8 @@ static HRESULT WINAPI wbem_services_ExecNotificationQueryAsync(
struct
async_header
*
async
;
struct
async_header
*
async
;
struct
async_query
*
query
;
struct
async_query
*
query
;
TRACE
(
"%p, %s, %s, 0x%08
x, %p, %p
\n
"
,
iface
,
debugstr_w
(
strQueryLanguage
),
debugstr_w
(
strQuery
),
TRACE
(
"%p, %s, %s, %#l
x, %p, %p
\n
"
,
iface
,
debugstr_w
(
strQueryLanguage
),
debugstr_w
(
strQuery
),
lFlags
,
pCtx
,
pResponseHandler
);
lFlags
,
pCtx
,
pResponseHandler
);
if
(
!
pResponseHandler
)
return
WBEM_E_INVALID_PARAMETER
;
if
(
!
pResponseHandler
)
return
WBEM_E_INVALID_PARAMETER
;
...
@@ -857,10 +857,10 @@ static HRESULT WINAPI wbem_services_ExecMethod(
...
@@ -857,10 +857,10 @@ static HRESULT WINAPI wbem_services_ExecMethod(
struct
table
*
table
;
struct
table
*
table
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"%p, %s, %s, %08
x, %p, %p, %p, %p
\n
"
,
iface
,
debugstr_w
(
strObjectPath
),
TRACE
(
"%p, %s, %s, %#l
x, %p, %p, %p, %p
\n
"
,
iface
,
debugstr_w
(
strObjectPath
),
debugstr_w
(
strMethodName
),
lFlags
,
context
,
pInParams
,
ppOutParams
,
ppCallResult
);
debugstr_w
(
strMethodName
),
lFlags
,
context
,
pInParams
,
ppOutParams
,
ppCallResult
);
if
(
lFlags
)
FIXME
(
"flags %08x not supported
\n
"
,
lFlags
);
if
(
lFlags
)
FIXME
(
"flags %#lx not supported
\n
"
,
lFlags
);
if
((
hr
=
parse_path
(
strObjectPath
,
&
path
))
!=
S_OK
)
return
hr
;
if
((
hr
=
parse_path
(
strObjectPath
,
&
path
))
!=
S_OK
)
return
hr
;
if
(
!
(
str
=
query_from_path
(
path
)))
if
(
!
(
str
=
query_from_path
(
path
)))
...
@@ -1084,7 +1084,7 @@ static HRESULT WINAPI wbem_context_GetNames(
...
@@ -1084,7 +1084,7 @@ static HRESULT WINAPI wbem_context_GetNames(
LONG
flags
,
LONG
flags
,
SAFEARRAY
**
names
)
SAFEARRAY
**
names
)
{
{
FIXME
(
"%p, %#x, %p
\n
"
,
iface
,
flags
,
names
);
FIXME
(
"%p, %#lx, %p
\n
"
,
iface
,
flags
,
names
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -1093,7 +1093,7 @@ static HRESULT WINAPI wbem_context_BeginEnumeration(
...
@@ -1093,7 +1093,7 @@ static HRESULT WINAPI wbem_context_BeginEnumeration(
IWbemContext
*
iface
,
IWbemContext
*
iface
,
LONG
flags
)
LONG
flags
)
{
{
FIXME
(
"%p, %#x
\n
"
,
iface
,
flags
);
FIXME
(
"%p, %#lx
\n
"
,
iface
,
flags
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -1104,7 +1104,7 @@ static HRESULT WINAPI wbem_context_Next(
...
@@ -1104,7 +1104,7 @@ static HRESULT WINAPI wbem_context_Next(
BSTR
*
name
,
BSTR
*
name
,
VARIANT
*
value
)
VARIANT
*
value
)
{
{
FIXME
(
"%p, %#x, %p, %p
\n
"
,
iface
,
flags
,
name
,
value
);
FIXME
(
"%p, %#lx, %p, %p
\n
"
,
iface
,
flags
,
name
,
value
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -1139,7 +1139,7 @@ static HRESULT WINAPI wbem_context_SetValue(
...
@@ -1139,7 +1139,7 @@ static HRESULT WINAPI wbem_context_SetValue(
struct
wbem_context_value
*
value
;
struct
wbem_context_value
*
value
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"%p, %s, %#x, %s
\n
"
,
iface
,
debugstr_w
(
name
),
flags
,
debugstr_variant
(
var
)
);
TRACE
(
"%p, %s, %#lx, %s
\n
"
,
iface
,
debugstr_w
(
name
),
flags
,
debugstr_variant
(
var
)
);
if
(
!
name
||
!
var
)
if
(
!
name
||
!
var
)
return
WBEM_E_INVALID_PARAMETER
;
return
WBEM_E_INVALID_PARAMETER
;
...
@@ -1179,7 +1179,7 @@ static HRESULT WINAPI wbem_context_GetValue(
...
@@ -1179,7 +1179,7 @@ static HRESULT WINAPI wbem_context_GetValue(
struct
wbem_context
*
context
=
impl_from_IWbemContext
(
iface
);
struct
wbem_context
*
context
=
impl_from_IWbemContext
(
iface
);
struct
wbem_context_value
*
value
;
struct
wbem_context_value
*
value
;
TRACE
(
"%p, %s, %#x, %p
\n
"
,
iface
,
debugstr_w
(
name
),
flags
,
var
);
TRACE
(
"%p, %s, %#lx, %p
\n
"
,
iface
,
debugstr_w
(
name
),
flags
,
var
);
if
(
!
name
||
!
var
)
if
(
!
name
||
!
var
)
return
WBEM_E_INVALID_PARAMETER
;
return
WBEM_E_INVALID_PARAMETER
;
...
@@ -1196,7 +1196,7 @@ static HRESULT WINAPI wbem_context_DeleteValue(
...
@@ -1196,7 +1196,7 @@ static HRESULT WINAPI wbem_context_DeleteValue(
LPCWSTR
name
,
LPCWSTR
name
,
LONG
flags
)
LONG
flags
)
{
{
FIXME
(
"%p, %s, %#x
\n
"
,
iface
,
debugstr_w
(
name
),
flags
);
FIXME
(
"%p, %s, %#lx
\n
"
,
iface
,
debugstr_w
(
name
),
flags
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
...
dlls/wbemprox/table.c
View file @
0444be5c
...
@@ -70,7 +70,7 @@ UINT get_type_size( CIMTYPE type )
...
@@ -70,7 +70,7 @@ UINT get_type_size( CIMTYPE type )
case
CIM_REAL32
:
case
CIM_REAL32
:
return
sizeof
(
FLOAT
);
return
sizeof
(
FLOAT
);
default:
default:
ERR
(
"unhandled type %u
\n
"
,
type
);
ERR
(
"unhandled type %lu
\n
"
,
type
);
break
;
break
;
}
}
return
sizeof
(
LONGLONG
);
return
sizeof
(
LONGLONG
);
...
@@ -250,7 +250,7 @@ HRESULT set_value( const struct table *table, UINT row, UINT column, LONGLONG va
...
@@ -250,7 +250,7 @@ HRESULT set_value( const struct table *table, UINT row, UINT column, LONGLONG va
*
(
UINT64
*
)
ptr
=
val
;
*
(
UINT64
*
)
ptr
=
val
;
break
;
break
;
default:
default:
FIXME
(
"unhandled column type %u
\n
"
,
type
);
FIXME
(
"unhandled column type %lu
\n
"
,
type
);
return
WBEM_E_FAILED
;
return
WBEM_E_FAILED
;
}
}
return
S_OK
;
return
S_OK
;
...
...
dlls/wbemprox/wbemlocator.c
View file @
0444be5c
...
@@ -165,8 +165,8 @@ static HRESULT WINAPI wbem_locator_ConnectServer(
...
@@ -165,8 +165,8 @@ static HRESULT WINAPI wbem_locator_ConnectServer(
HRESULT
hr
;
HRESULT
hr
;
WCHAR
*
server
,
*
namespace
;
WCHAR
*
server
,
*
namespace
;
TRACE
(
"%p, %s, %s, %s, %s, 0x%08
x, %s, %p, %p)
\n
"
,
iface
,
debugstr_w
(
NetworkResource
),
debugstr_w
(
User
),
TRACE
(
"%p, %s, %s, %s, %s, %#l
x, %s, %p, %p)
\n
"
,
iface
,
debugstr_w
(
NetworkResource
),
debugstr_w
(
User
),
debugstr_w
(
Password
),
debugstr_w
(
Locale
),
SecurityFlags
,
debugstr_w
(
Authority
),
context
,
ppNamespace
);
debugstr_w
(
Password
),
debugstr_w
(
Locale
),
SecurityFlags
,
debugstr_w
(
Authority
),
context
,
ppNamespace
);
hr
=
parse_resource
(
NetworkResource
,
&
server
,
&
namespace
);
hr
=
parse_resource
(
NetworkResource
,
&
server
,
&
namespace
);
if
(
hr
!=
S_OK
)
return
hr
;
if
(
hr
!=
S_OK
)
return
hr
;
...
...
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