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
54d21602
Commit
54d21602
authored
Jul 30, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Implement Win32_Service.AcceptPause and Win32_Service.AcceptStop.
parent
773f5f8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
builtin.c
dlls/wbemprox/builtin.c
+15
-5
No files found.
dlls/wbemprox/builtin.c
View file @
54d21602
...
...
@@ -65,6 +65,10 @@ static const WCHAR class_stdregprovW[] =
static
const
WCHAR
class_videocontrollerW
[]
=
{
'W'
,
'i'
,
'n'
,
'3'
,
'2'
,
'_'
,
'V'
,
'i'
,
'd'
,
'e'
,
'o'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'l'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
prop_acceptpauseW
[]
=
{
'A'
,
'c'
,
'c'
,
'e'
,
'p'
,
't'
,
'P'
,
'a'
,
'u'
,
's'
,
'e'
,
0
};
static
const
WCHAR
prop_acceptstopW
[]
=
{
'A'
,
'c'
,
'c'
,
'e'
,
'p'
,
't'
,
'S'
,
't'
,
'o'
,
'p'
,
0
};
static
const
WCHAR
prop_adapterramW
[]
=
{
'A'
,
'd'
,
'a'
,
'p'
,
't'
,
'e'
,
'r'
,
'R'
,
'A'
,
'M'
,
0
};
static
const
WCHAR
prop_captionW
[]
=
...
...
@@ -249,6 +253,8 @@ static const struct column col_processor[] =
};
static
const
struct
column
col_service
[]
=
{
{
prop_acceptpauseW
,
CIM_BOOLEAN
},
{
prop_acceptstopW
,
CIM_BOOLEAN
},
{
prop_displaynameW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
prop_nameW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
|
COL_FLAG_KEY
},
{
prop_processidW
,
CIM_UINT32
},
...
...
@@ -383,6 +389,8 @@ struct record_processor
};
struct
record_service
{
int
accept_pause
;
int
accept_stop
;
const
WCHAR
*
displayname
;
const
WCHAR
*
name
;
UINT32
process_id
;
...
...
@@ -860,11 +868,13 @@ static void fill_service( struct table *table )
{
status
=
&
services
[
i
].
ServiceStatusProcess
;
rec
=
(
struct
record_service
*
)(
table
->
data
+
offset
);
rec
->
displayname
=
heap_strdupW
(
services
[
i
].
lpDisplayName
);
rec
->
name
=
heap_strdupW
(
services
[
i
].
lpServiceName
);
rec
->
process_id
=
status
->
dwProcessId
;
rec
->
servicetype
=
get_service_type
(
status
->
dwServiceType
);
rec
->
state
=
get_service_state
(
status
->
dwCurrentState
);
rec
->
accept_pause
=
(
status
->
dwControlsAccepted
&
SERVICE_ACCEPT_PAUSE_CONTINUE
)
?
-
1
:
0
;
rec
->
accept_stop
=
(
status
->
dwControlsAccepted
&
SERVICE_ACCEPT_STOP
)
?
-
1
:
0
;
rec
->
displayname
=
heap_strdupW
(
services
[
i
].
lpDisplayName
);
rec
->
name
=
heap_strdupW
(
services
[
i
].
lpServiceName
);
rec
->
process_id
=
status
->
dwProcessId
;
rec
->
servicetype
=
get_service_type
(
status
->
dwServiceType
);
rec
->
state
=
get_service_state
(
status
->
dwCurrentState
);
offset
+=
sizeof
(
*
rec
);
num_rows
++
;
}
...
...
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