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
b39d0c1b
Commit
b39d0c1b
authored
Jun 20, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Implement Win32_Process.Handle.
parent
d444e1ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
builtin.c
dlls/wbemprox/builtin.c
+8
-0
wbemprox_private.h
dlls/wbemprox/wbemprox_private.h
+1
-0
No files found.
dlls/wbemprox/builtin.c
View file @
b39d0c1b
...
...
@@ -48,6 +48,8 @@ static const WCHAR prop_captionW[] =
{
'C'
,
'a'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
prop_descriptionW
[]
=
{
'D'
,
'e'
,
's'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
prop_handleW
[]
=
{
'H'
,
'a'
,
'n'
,
'd'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
prop_manufacturerW
[]
=
{
'M'
,
'a'
,
'n'
,
'u'
,
'f'
,
'a'
,
'c'
,
't'
,
'u'
,
'r'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
prop_modelW
[]
=
...
...
@@ -87,6 +89,7 @@ static const struct column col_process[] =
{
{
prop_captionW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
prop_descriptionW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
prop_handleW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
|
COL_FLAG_KEY
},
{
prop_pprocessidW
,
CIM_UINT32
},
{
prop_processidW
,
CIM_UINT32
},
{
prop_threadcountW
,
CIM_UINT32
}
...
...
@@ -142,6 +145,7 @@ struct record_process
{
const
WCHAR
*
caption
;
const
WCHAR
*
description
;
const
WCHAR
*
handle
;
UINT32
pprocess_id
;
UINT32
process_id
;
UINT32
thread_count
;
...
...
@@ -167,6 +171,8 @@ static const struct record_processor data_processor[] =
static
void
fill_process
(
struct
table
*
table
)
{
static
const
WCHAR
fmtW
[]
=
{
'%'
,
'u'
,
0
};
WCHAR
handle
[
11
];
struct
record_process
*
rec
;
PROCESSENTRY32W
entry
;
HANDLE
snap
;
...
...
@@ -191,6 +197,8 @@ static void fill_process( struct table *table )
rec
=
(
struct
record_process
*
)(
table
->
data
+
offset
);
rec
->
caption
=
heap_strdupW
(
entry
.
szExeFile
);
rec
->
description
=
heap_strdupW
(
entry
.
szExeFile
);
sprintfW
(
handle
,
fmtW
,
entry
.
th32ProcessID
);
rec
->
handle
=
heap_strdupW
(
handle
);
rec
->
process_id
=
entry
.
th32ProcessID
;
rec
->
pprocess_id
=
entry
.
th32ParentProcessID
;
rec
->
thread_count
=
entry
.
cntThreads
;
...
...
dlls/wbemprox/wbemprox_private.h
View file @
b39d0c1b
...
...
@@ -23,6 +23,7 @@
#define COL_TYPE_MASK 0x0000ffff
#define COL_FLAG_DYNAMIC 0x00010000
#define COL_FLAG_KEY 0x00020000
struct
column
{
...
...
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