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
bf8b185b
Commit
bf8b185b
authored
Nov 24, 2021
by
Paul Gofman
Committed by
Alexandre Julliard
Nov 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Add stub for PrefetchVirtualMemory().
Signed-off-by:
Paul Gofman
<
pgofman@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2292e5fb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
3 deletions
+21
-3
api-ms-win-core-memory-l1-1-1.spec
...win-core-memory-l1-1-1/api-ms-win-core-memory-l1-1-1.spec
+1
-1
api-ms-win-core-memory-l1-1-2.spec
...win-core-memory-l1-1-2/api-ms-win-core-memory-l1-1-2.spec
+1
-1
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-0
kernelbase.spec
dlls/kernelbase/kernelbase.spec
+1
-1
memory.c
dlls/kernelbase/memory.c
+11
-0
winnt.h
include/winnt.h
+6
-0
No files found.
dlls/api-ms-win-core-memory-l1-1-1/api-ms-win-core-memory-l1-1-1.spec
View file @
bf8b185b
...
...
@@ -11,7 +11,7 @@
@ stdcall MapViewOfFileEx(long long long long long ptr) kernel32.MapViewOfFileEx
@ stub MapViewOfFileFromApp
@ stdcall OpenFileMappingW(long long wstr) kernel32.OpenFileMappingW
@ st
ub
PrefetchVirtualMemory
@ st
dcall PrefetchVirtualMemory(ptr ptr ptr long) kernel32.
PrefetchVirtualMemory
@ stdcall QueryMemoryResourceNotification(ptr ptr) kernel32.QueryMemoryResourceNotification
@ stdcall ReadProcessMemory(long ptr ptr long ptr) kernel32.ReadProcessMemory
@ stdcall ResetWriteWatch(ptr long) kernel32.ResetWriteWatch
...
...
dlls/api-ms-win-core-memory-l1-1-2/api-ms-win-core-memory-l1-1-2.spec
View file @
bf8b185b
...
...
@@ -16,7 +16,7 @@
@ stdcall MapViewOfFileEx(long long long long long ptr) kernel32.MapViewOfFileEx
@ stub MapViewOfFileFromApp
@ stdcall OpenFileMappingW(long long wstr) kernel32.OpenFileMappingW
@ st
ub
PrefetchVirtualMemory
@ st
dcall PrefetchVirtualMemory(ptr ptr ptr long) kernel32.
PrefetchVirtualMemory
@ stdcall QueryMemoryResourceNotification(ptr ptr) kernel32.QueryMemoryResourceNotification
@ stdcall ReadProcessMemory(long ptr ptr long ptr) kernel32.ReadProcessMemory
@ stub RegisterBadMemoryNotification
...
...
dlls/kernel32/kernel32.spec
View file @
bf8b185b
...
...
@@ -1157,6 +1157,7 @@
@ stdcall PowerClearRequest(long long)
@ stdcall PowerCreateRequest(ptr)
@ stdcall PowerSetRequest(long long)
@ stdcall -import PrefetchVirtualMemory(ptr ptr ptr long)
@ stdcall PrepareTape(ptr long long)
@ stub PrivCopyFileExW
@ stub PrivMoveFileIdentityW
...
...
dlls/kernelbase/kernelbase.spec
View file @
bf8b185b
...
...
@@ -1164,7 +1164,7 @@
@ stdcall PerfStopProvider(long)
# @ stub PoolPerAppKeyStateInternal
@ stdcall PostQueuedCompletionStatus(long long ptr ptr)
# @ stub PrefetchVirtualMemory
@ stdcall PrefetchVirtualMemory(ptr ptr ptr long)
@ stub PrivCopyFileExW
@ stdcall PrivilegeCheck(ptr ptr ptr)
@ stdcall PrivilegedServiceAuditAlarmW(wstr wstr long ptr long)
...
...
dlls/kernelbase/memory.c
View file @
bf8b185b
...
...
@@ -344,6 +344,17 @@ LPVOID WINAPI DECLSPEC_HOTPATCH VirtualAllocFromApp( void *addr, SIZE_T size,
/***********************************************************************
* PrefetchVirtualMemory (kernelbase.@)
*/
BOOL
WINAPI
/* DECLSPEC_HOTPATCH */
PrefetchVirtualMemory
(
HANDLE
process
,
ULONG_PTR
count
,
WIN32_MEMORY_RANGE_ENTRY
*
addresses
,
ULONG
flags
)
{
FIXME
(
"process %p, count %p, addresses %p, flags %#x stub.
\n
"
,
process
,
(
void
*
)
count
,
addresses
,
flags
);
return
TRUE
;
}
/***********************************************************************
* VirtualFree (kernelbase.@)
*/
BOOL
WINAPI
DECLSPEC_HOTPATCH
VirtualFree
(
void
*
addr
,
SIZE_T
size
,
DWORD
type
)
...
...
include/winnt.h
View file @
bf8b185b
...
...
@@ -776,6 +776,12 @@ typedef struct DECLSPEC_ALIGN(8) MEM_EXTENDED_PARAMETER {
}
DUMMYUNIONNAME
;
}
MEM_EXTENDED_PARAMETER
,
*
PMEM_EXTENDED_PARAMETER
;
typedef
struct
_WIN32_MEMORY_RANGE_ENTRY
{
PVOID
VirtualAddress
;
SIZE_T
NumberOfBytes
;
}
WIN32_MEMORY_RANGE_ENTRY
,
*
PWIN32_MEMORY_RANGE_ENTRY
;
#define PAGE_NOACCESS 0x01
#define PAGE_READONLY 0x02
#define PAGE_READWRITE 0x04
...
...
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