Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9cd5bc0d
Commit
9cd5bc0d
authored
Jun 28, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Add QueryVirtualMemoryInformation().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
fc5cb9b5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
1 deletion
+65
-1
kernelbase.spec
dlls/kernelbase/kernelbase.spec
+1
-1
memory.c
dlls/kernelbase/memory.c
+17
-0
Makefile.in
include/Makefile.in
+1
-0
memoryapi.h
include/memoryapi.h
+45
-0
winbase.h
include/winbase.h
+1
-0
No files found.
dlls/kernelbase/kernelbase.spec
View file @
9cd5bc0d
...
@@ -1250,7 +1250,7 @@
...
@@ -1250,7 +1250,7 @@
@ stdcall QueryThreadpoolStackInformation(ptr ptr)
@ stdcall QueryThreadpoolStackInformation(ptr ptr)
@ stdcall QueryUnbiasedInterruptTime(ptr) ntdll.RtlQueryUnbiasedInterruptTime
@ stdcall QueryUnbiasedInterruptTime(ptr) ntdll.RtlQueryUnbiasedInterruptTime
# @ stub QueryUnbiasedInterruptTimePrecise
# @ stub QueryUnbiasedInterruptTimePrecise
# @ stub QueryVirtualMemoryInformation
@ stdcall QueryVirtualMemoryInformation(long ptr long ptr long ptr)
@ stdcall QueryWorkingSet(long ptr long)
@ stdcall QueryWorkingSet(long ptr long)
@ stdcall QueryWorkingSetEx(long ptr long)
@ stdcall QueryWorkingSetEx(long ptr long)
@ stdcall QueueUserAPC(ptr long long)
@ stdcall QueueUserAPC(ptr long long)
...
...
dlls/kernelbase/memory.c
View file @
9cd5bc0d
...
@@ -1412,6 +1412,23 @@ LPVOID WINAPI DECLSPEC_HOTPATCH VirtualAllocExNuma( HANDLE process, void *addr,
...
@@ -1412,6 +1412,23 @@ LPVOID WINAPI DECLSPEC_HOTPATCH VirtualAllocExNuma( HANDLE process, void *addr,
/***********************************************************************
/***********************************************************************
* QueryVirtualMemoryInformation (kernelbase.@)
*/
BOOL
WINAPI
DECLSPEC_HOTPATCH
QueryVirtualMemoryInformation
(
HANDLE
process
,
const
void
*
addr
,
WIN32_MEMORY_INFORMATION_CLASS
info_class
,
void
*
info
,
SIZE_T
size
,
SIZE_T
*
ret_size
)
{
switch
(
info_class
)
{
case
MemoryRegionInfo
:
return
set_ntstatus
(
NtQueryVirtualMemory
(
process
,
addr
,
MemoryRegionInformation
,
info
,
size
,
ret_size
));
default:
FIXME
(
"Unsupported info class %u.
\n
"
,
info_class
);
return
FALSE
;
}
}
/***********************************************************************
* CPU functions
* CPU functions
***********************************************************************/
***********************************************************************/
...
...
include/Makefile.in
View file @
9cd5bc0d
...
@@ -416,6 +416,7 @@ SOURCES = \
...
@@ -416,6 +416,7 @@ SOURCES = \
mediaerr.h
\
mediaerr.h
\
mediaobj.idl
\
mediaobj.idl
\
medparam.idl
\
medparam.idl
\
memoryapi.h
\
metahost.idl
\
metahost.idl
\
mfapi.h
\
mfapi.h
\
mfd3d12.idl
\
mfd3d12.idl
\
...
...
include/memoryapi.h
0 → 100644
View file @
9cd5bc0d
/*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
typedef
enum
WIN32_MEMORY_INFORMATION_CLASS
{
MemoryRegionInfo
}
WIN32_MEMORY_INFORMATION_CLASS
;
typedef
struct
WIN32_MEMORY_REGION_INFORMATION
{
PVOID
AllocationBase
;
ULONG
AllocationProtect
;
union
{
ULONG
Flags
;
struct
{
ULONG
Private
:
1
;
ULONG
MappedDataFile
:
1
;
ULONG
MappedImage
:
1
;
ULONG
MappedPageFile
:
1
;
ULONG
MappedPhysical
:
1
;
ULONG
DirectMapped
:
1
;
ULONG
Reserved
:
26
;
}
DUMMYSTRUCTNAME
;
}
DUMMYUNIONNAME
;
SIZE_T
RegionSize
;
SIZE_T
CommitSize
;
}
WIN32_MEMORY_REGION_INFORMATION
;
BOOL
WINAPI
QueryVirtualMemoryInformation
(
HANDLE
process
,
const
void
*
addr
,
WIN32_MEMORY_INFORMATION_CLASS
info_class
,
void
*
info
,
SIZE_T
size
,
SIZE_T
*
ret_size
);
include/winbase.h
View file @
9cd5bc0d
...
@@ -43,6 +43,7 @@ extern "C" {
...
@@ -43,6 +43,7 @@ extern "C" {
#include <processthreadsapi.h>
#include <processthreadsapi.h>
#include <synchapi.h>
#include <synchapi.h>
#include <threadpoolapiset.h>
#include <threadpoolapiset.h>
#include <memoryapi.h>
/* Windows Exit Procedure flag values */
/* Windows Exit Procedure flag values */
#define WEP_FREE_DLL 0
#define WEP_FREE_DLL 0
...
...
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