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
c1c70c62
Commit
c1c70c62
authored
May 11, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
May 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Moved QueryWorkingSet and QueryWorkingSetEx implementation to kernel32.
parent
f123b6a7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
40 deletions
+42
-40
kernel32.spec
dlls/kernel32/kernel32.spec
+2
-0
process.c
dlls/kernel32/process.c
+38
-0
psapi.spec
dlls/psapi/psapi.spec
+2
-2
psapi_main.c
dlls/psapi/psapi_main.c
+0
-38
No files found.
dlls/kernel32/kernel32.spec
View file @
c1c70c62
...
...
@@ -772,6 +772,8 @@
@ stdcall K32GetProcessImageFileNameW(long ptr long)
@ stdcall K32EnumProcessModules(long ptr long ptr)
@ stdcall K32EnumProcesses(ptr long ptr)
@ stdcall K32QueryWorkingSet(long ptr long)
@ stdcall K32QueryWorkingSetEx(long ptr long)
@ stdcall -i386 -private -register K32Thk1632Epilog() krnl386.exe16.K32Thk1632Epilog
@ stdcall -i386 -private -register K32Thk1632Prolog() krnl386.exe16.K32Thk1632Prolog
@ stdcall LCIDToLocaleName(long ptr long long)
...
...
dlls/kernel32/process.c
View file @
c1c70c62
...
...
@@ -3584,6 +3584,44 @@ BOOL WINAPI K32EnumProcessModules(HANDLE process, HMODULE *lphModule,
}
/***********************************************************************
* K32QueryWorkingSet (KERNEL32.@)
*/
BOOL
WINAPI
K32QueryWorkingSet
(
HANDLE
process
,
LPVOID
buffer
,
DWORD
size
)
{
NTSTATUS
status
;
TRACE
(
"(%p, %p, %d)
\n
"
,
process
,
buffer
,
size
);
status
=
NtQueryVirtualMemory
(
process
,
NULL
,
MemoryWorkingSetList
,
buffer
,
size
,
NULL
);
if
(
status
)
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
FALSE
;
}
return
TRUE
;
}
/***********************************************************************
* K32QueryWorkingSetEx (KERNEL32.@)
*/
BOOL
WINAPI
K32QueryWorkingSetEx
(
HANDLE
process
,
LPVOID
buffer
,
DWORD
size
)
{
NTSTATUS
status
;
TRACE
(
"(%p, %p, %d)
\n
"
,
process
,
buffer
,
size
);
status
=
NtQueryVirtualMemory
(
process
,
NULL
,
MemoryWorkingSetList
,
buffer
,
size
,
NULL
);
if
(
status
)
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
FALSE
;
}
return
TRUE
;
}
/***********************************************************************
* ProcessIdToSessionId (KERNEL32.@)
* This function is available on Terminal Server 4SP4 and Windows 2000
*/
...
...
dlls/psapi/psapi.spec
View file @
c1c70c62
...
...
@@ -21,5 +21,5 @@
@ stdcall GetProcessMemoryInfo(long ptr long)
@ stdcall GetWsChanges(long ptr long)
@ stdcall InitializeProcessForWsWatch(long)
@ stdcall QueryWorkingSet(long ptr long)
@ stdcall QueryWorkingSetEx(long ptr long)
@ stdcall QueryWorkingSet(long ptr long)
kernel32.K32QueryWorkingSet
@ stdcall QueryWorkingSetEx(long ptr long)
kernel32.K32QueryWorkingSetEx
dlls/psapi/psapi_main.c
View file @
c1c70c62
...
...
@@ -475,41 +475,3 @@ BOOL WINAPI InitializeProcessForWsWatch(HANDLE hProcess)
return
TRUE
;
}
/***********************************************************************
* QueryWorkingSet (PSAPI.@)
*/
BOOL
WINAPI
QueryWorkingSet
(
HANDLE
process
,
LPVOID
buffer
,
DWORD
size
)
{
NTSTATUS
status
;
TRACE
(
"(%p, %p, %d)
\n
"
,
process
,
buffer
,
size
);
status
=
NtQueryVirtualMemory
(
process
,
NULL
,
MemoryWorkingSetList
,
buffer
,
size
,
NULL
);
if
(
status
)
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
FALSE
;
}
return
TRUE
;
}
/***********************************************************************
* QueryWorkingSetEx (PSAPI.@)
*/
BOOL
WINAPI
QueryWorkingSetEx
(
HANDLE
process
,
LPVOID
buffer
,
DWORD
size
)
{
NTSTATUS
status
;
TRACE
(
"(%p, %p, %d)
\n
"
,
process
,
buffer
,
size
);
status
=
NtQueryVirtualMemory
(
process
,
NULL
,
MemoryWorkingSetList
,
buffer
,
size
,
NULL
);
if
(
status
)
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
FALSE
;
}
return
TRUE
;
}
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