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
23be27ef
Commit
23be27ef
authored
Nov 14, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Added GetWriteWatch and ResetWriteWatch.
parent
6c7ff616
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
kernel32.spec
dlls/kernel32/kernel32.spec
+2
-2
virtual.c
dlls/kernel32/virtual.c
+27
-0
winbase.h
include/winbase.h
+2
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
23be27ef
...
...
@@ -671,7 +671,7 @@
# @ stub GetVolumePathNamesForVolumeNameW
@ stdcall GetWindowsDirectoryA(ptr long)
@ stdcall GetWindowsDirectoryW(ptr long)
@ st
ub GetWriteWatch
@ st
dcall GetWriteWatch(long ptr long ptr ptr ptr)
@ stdcall GlobalAddAtomA(str)
@ stdcall GlobalAddAtomW(wstr)
@ stdcall GlobalAlloc(long long)
...
...
@@ -917,7 +917,7 @@
@ stub RequestDeviceWakeup
@ stdcall RequestWakeupLatency(long)
@ stdcall ResetEvent(long)
@ st
ub ResetWriteWatch
@ st
dcall ResetWriteWatch(ptr long)
@ stdcall RestoreLastError(long) ntdll.RtlRestoreLastWin32Error
@ stdcall ResumeThread(long)
# @ stub RtlCaptureContext ( -> ntdll.RtlCaptureContext)
...
...
dlls/kernel32/virtual.c
View file @
23be27ef
...
...
@@ -602,6 +602,33 @@ BOOL WINAPI FlushViewOfFile( LPCVOID base, SIZE_T size )
/***********************************************************************
* GetWriteWatch (KERNEL32.@)
*/
UINT
WINAPI
GetWriteWatch
(
DWORD
flags
,
LPVOID
base
,
SIZE_T
size
,
LPVOID
*
addresses
,
ULONG_PTR
*
count
,
ULONG
*
granularity
)
{
NTSTATUS
status
;
status
=
NtGetWriteWatch
(
GetCurrentProcess
(),
flags
,
base
,
size
,
addresses
,
count
,
granularity
);
if
(
status
)
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
status
?
~
0u
:
0
;
}
/***********************************************************************
* ResetWriteWatch (KERNEL32.@)
*/
UINT
WINAPI
ResetWriteWatch
(
LPVOID
base
,
SIZE_T
size
)
{
NTSTATUS
status
;
status
=
NtResetWriteWatch
(
GetCurrentProcess
(),
base
,
size
);
if
(
status
)
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
status
?
~
0u
:
0
;
}
/***********************************************************************
* IsBadReadPtr (KERNEL32.@)
*
* Check for read access on a memory block.
...
...
include/winbase.h
View file @
23be27ef
...
...
@@ -1759,6 +1759,7 @@ WINBASEAPI BOOL WINAPI GetVolumePathNamesForVolumeNameW(LPCWSTR,LPWSTR,DW
WINBASEAPI
UINT
WINAPI
GetWindowsDirectoryA
(
LPSTR
,
UINT
);
WINBASEAPI
UINT
WINAPI
GetWindowsDirectoryW
(
LPWSTR
,
UINT
);
#define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
WINBASEAPI
UINT
WINAPI
GetWriteWatch
(
DWORD
,
LPVOID
,
SIZE_T
,
LPVOID
*
,
ULONG_PTR
*
,
ULONG
*
);
WINBASEAPI
ATOM
WINAPI
GlobalAddAtomA
(
LPCSTR
);
WINBASEAPI
ATOM
WINAPI
GlobalAddAtomW
(
LPCWSTR
);
#define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
...
...
@@ -1989,6 +1990,7 @@ WINADVAPI BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWOR
WINBASEAPI
BOOL
WINAPI
RequestWakeupLatency
(
LATENCY_TIME
latency
);
#define ReportEvent WINELIB_NAME_AW(ReportEvent)
WINBASEAPI
BOOL
WINAPI
ResetEvent
(
HANDLE
);
WINBASEAPI
UINT
WINAPI
ResetWriteWatch
(
LPVOID
,
SIZE_T
);
WINBASEAPI
DWORD
WINAPI
ResumeThread
(
HANDLE
);
WINADVAPI
BOOL
WINAPI
RevertToSelf
(
void
);
WINBASEAPI
DWORD
WINAPI
SearchPathA
(
LPCSTR
,
LPCSTR
,
LPCSTR
,
DWORD
,
LPSTR
,
LPSTR
*
);
...
...
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