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
240d1e4f
Commit
240d1e4f
authored
Aug 27, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmi: Implement SystemName property for service class.
parent
773cf1e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
builtin.c
dlls/wbemprox/builtin.c
+10
-1
No files found.
dlls/wbemprox/builtin.c
View file @
240d1e4f
...
...
@@ -153,6 +153,8 @@ static const WCHAR prop_stateW[] =
{
'S'
,
't'
,
'a'
,
't'
,
'e'
,
0
};
static
const
WCHAR
prop_systemdirectoryW
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'D'
,
'i'
,
'r'
,
'e'
,
'c'
,
't'
,
'o'
,
'r'
,
'y'
,
0
};
static
const
WCHAR
prop_systemnameW
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
prop_tagW
[]
=
{
'T'
,
'a'
,
'g'
,
0
};
static
const
WCHAR
prop_threadcountW
[]
=
...
...
@@ -262,7 +264,8 @@ static const struct column col_service[] =
{
prop_processidW
,
CIM_UINT32
},
{
prop_servicetypeW
,
CIM_STRING
},
{
prop_startmodeW
,
CIM_STRING
},
{
prop_stateW
,
CIM_STRING
}
{
prop_stateW
,
CIM_STRING
},
{
prop_systemnameW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
}
};
static
const
struct
column
col_stdregprov
[]
=
{
...
...
@@ -400,6 +403,7 @@ struct record_service
const
WCHAR
*
servicetype
;
const
WCHAR
*
startmode
;
const
WCHAR
*
state
;
const
WCHAR
*
systemname
;
};
struct
record_stdregprov
{
...
...
@@ -868,6 +872,8 @@ static void fill_service( struct table *table )
SC_HANDLE
manager
;
ENUM_SERVICE_STATUS_PROCESSW
*
tmp
,
*
services
=
NULL
;
SERVICE_STATUS_PROCESS
*
status
;
WCHAR
sysnameW
[
MAX_COMPUTERNAME_LENGTH
+
1
];
DWORD
len
=
sizeof
(
sysnameW
)
/
sizeof
(
sysnameW
[
0
]);
UINT
i
,
num_rows
=
0
,
offset
=
0
,
size
=
256
,
needed
,
count
;
BOOL
ret
;
...
...
@@ -890,6 +896,8 @@ static void fill_service( struct table *table )
}
if
(
!
(
table
->
data
=
heap_alloc
(
sizeof
(
*
rec
)
*
count
)))
goto
done
;
GetComputerNameW
(
sysnameW
,
&
len
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
QUERY_SERVICE_CONFIGW
*
config
;
...
...
@@ -920,6 +928,7 @@ static void fill_service( struct table *table )
rec
->
servicetype
=
get_service_type
(
status
->
dwServiceType
);
rec
->
startmode
=
get_service_startmode
(
startmode
);
rec
->
state
=
get_service_state
(
status
->
dwCurrentState
);
rec
->
systemname
=
heap_strdupW
(
sysnameW
);
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