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
d98cd9e8
Commit
d98cd9e8
authored
Oct 18, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: Use GetGuiResources() directly.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d1be006f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
perfdata.c
programs/taskmgr/perfdata.c
+2
-7
perfdata.h
programs/taskmgr/perfdata.h
+0
-1
No files found.
programs/taskmgr/perfdata.c
View file @
d98cd9e8
...
...
@@ -31,7 +31,6 @@
#include "perfdata.h"
static
PROCNTQSI
pNtQuerySystemInformation
=
NULL
;
static
PROCGGR
pGetGuiResources
=
NULL
;
static
PROCGPIC
pGetProcessIoCounters
=
NULL
;
static
PROCISW64
pIsWow64Process
=
NULL
;
static
CRITICAL_SECTION
PerfDataCriticalSection
;
...
...
@@ -60,11 +59,9 @@ BOOL PerfDataInitialize(void)
{
LONG
status
;
static
const
WCHAR
wszNtdll
[]
=
{
'n'
,
't'
,
'd'
,
'l'
,
'l'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
wszUser32
[]
=
{
'u'
,
's'
,
'e'
,
'r'
,
'3'
,
'2'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
wszKernel32
[]
=
{
'k'
,
'e'
,
'r'
,
'n'
,
'e'
,
'l'
,
'3'
,
'2'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
pNtQuerySystemInformation
=
(
PROCNTQSI
)
GetProcAddress
(
GetModuleHandleW
(
wszNtdll
),
"NtQuerySystemInformation"
);
pGetGuiResources
=
(
PROCGGR
)
GetProcAddress
(
GetModuleHandleW
(
wszUser32
),
"GetGuiResources"
);
pGetProcessIoCounters
=
(
PROCGPIC
)
GetProcAddress
(
GetModuleHandleW
(
wszKernel32
),
"GetProcessIoCounters"
);
pIsWow64Process
=
(
PROCISW64
)
GetProcAddress
(
GetModuleHandleW
(
wszKernel32
),
"IsWow64Process"
);
...
...
@@ -297,10 +294,8 @@ void PerfDataRefresh(void)
RevertToSelf
();
CloseHandle
(
hProcessToken
);
}
if
(
pGetGuiResources
)
{
pPerfData
[
Idx
].
USERObjectCount
=
pGetGuiResources
(
hProcess
,
GR_USEROBJECTS
);
pPerfData
[
Idx
].
GDIObjectCount
=
pGetGuiResources
(
hProcess
,
GR_GDIOBJECTS
);
}
pPerfData
[
Idx
].
USERObjectCount
=
GetGuiResources
(
hProcess
,
GR_USEROBJECTS
);
pPerfData
[
Idx
].
GDIObjectCount
=
GetGuiResources
(
hProcess
,
GR_GDIOBJECTS
);
if
(
pGetProcessIoCounters
)
pGetProcessIoCounters
(
hProcess
,
&
pPerfData
[
Idx
].
IOCounters
);
if
(
pIsWow64Process
)
...
...
programs/taskmgr/perfdata.h
View file @
d98cd9e8
...
...
@@ -67,7 +67,6 @@ struct _SYSTEM_PAGEFILE_INFORMATION
#define GR_USEROBJECTS 1
/* Count of USER objects */
typedef
LONG
(
WINAPI
*
PROCNTQSI
)(
UINT
,
PVOID
,
ULONG
,
PULONG
);
typedef
DWORD
(
WINAPI
*
PROCGGR
)(
HANDLE
,
DWORD
);
typedef
BOOL
(
WINAPI
*
PROCGPIC
)(
HANDLE
,
PIO_COUNTERS
);
typedef
BOOL
(
WINAPI
*
PROCISW64
)(
HANDLE
,
PBOOL
);
...
...
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