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
a5c03fbc
Commit
a5c03fbc
authored
Aug 09, 2009
by
Mike Kaplinskiy
Committed by
Alexandre Julliard
Aug 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement CancelIoEx.
parent
af25949a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
file.c
dlls/kernel32/file.c
+26
-0
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-0
winbase.h
include/winbase.h
+1
-0
No files found.
dlls/kernel32/file.c
View file @
a5c03fbc
...
...
@@ -625,6 +625,32 @@ BOOL WINAPI GetOverlappedResult(HANDLE hFile, LPOVERLAPPED lpOverlapped,
}
/***********************************************************************
* CancelIoEx (KERNEL32.@)
*
* Cancels pending I/O operations on a file given the overlapped used.
*
* PARAMS
* handle [I] File handle.
* lpOverlapped [I,OPT] pointer to overlapped (if null, cancel all)
*
* RETURNS
* Success: TRUE.
* Failure: FALSE, check GetLastError().
*/
BOOL
WINAPI
CancelIoEx
(
HANDLE
handle
,
LPOVERLAPPED
lpOverlapped
)
{
IO_STATUS_BLOCK
io_status
;
NtCancelIoFileEx
(
handle
,
(
PIO_STATUS_BLOCK
)
lpOverlapped
,
&
io_status
);
if
(
io_status
.
u
.
Status
)
{
SetLastError
(
RtlNtStatusToDosError
(
io_status
.
u
.
Status
)
);
return
FALSE
;
}
return
TRUE
;
}
/***********************************************************************
* CancelIo (KERNEL32.@)
*
* Cancels pending I/O operations initiated by the current thread on a file.
...
...
dlls/kernel32/kernel32.spec
View file @
a5c03fbc
...
...
@@ -177,6 +177,7 @@
@ stdcall CallNamedPipeW(wstr ptr long ptr long ptr long)
@ stub CancelDeviceWakeupRequest
@ stdcall CancelIo(long)
@ stdcall CancelIoEx(long ptr)
# @ stub CancelTimerQueueTimer
@ stdcall CancelWaitableTimer(long)
@ stdcall ChangeTimerQueueTimer(ptr ptr long long)
...
...
include/winbase.h
View file @
a5c03fbc
...
...
@@ -1323,6 +1323,7 @@ WINBASEAPI BOOL WINAPI CallNamedPipeA(LPCSTR,LPVOID,DWORD,LPVOID,DWORD,LP
WINBASEAPI
BOOL
WINAPI
CallNamedPipeW
(
LPCWSTR
,
LPVOID
,
DWORD
,
LPVOID
,
DWORD
,
LPDWORD
,
DWORD
);
#define CallNamedPipe WINELIB_NAME_AW(CallNamedPipe)
WINBASEAPI
BOOL
WINAPI
CancelIo
(
HANDLE
);
WINBASEAPI
BOOL
WINAPI
CancelIoEx
(
HANDLE
,
LPOVERLAPPED
);
WINBASEAPI
BOOL
WINAPI
CancelWaitableTimer
(
HANDLE
);
WINBASEAPI
BOOL
WINAPI
ChangeTimerQueueTimer
(
HANDLE
,
HANDLE
,
ULONG
,
ULONG
);
WINADVAPI
BOOL
WINAPI
CheckTokenMembership
(
HANDLE
,
PSID
,
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