-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 添加 SetFileCompletionNotificationModes - 添加 GetQueuedCompletionStatusEx - 添加 NtCancelIoFileEx
- Loading branch information
1 parent
9847db4
commit 4b45145
Showing
12 changed files
with
154 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
namespace YY | ||
{ | ||
namespace Thunks | ||
{ | ||
#if (YY_Thunks_Support_Version < NTDDI_WIN6) | ||
|
||
// 最低受支持的客户端 Windows Vista [桌面应用|UWP 应用] | ||
// 最低受支持的服务器 Windows Server 2008[桌面应用 | UWP 应用] | ||
__DEFINE_THUNK( | ||
ntdll, | ||
12, | ||
NTSTATUS, | ||
NTAPI, | ||
NtCancelIoFileEx, | ||
HANDLE handle, | ||
IO_STATUS_BLOCK* io, | ||
IO_STATUS_BLOCK* io_status | ||
) | ||
{ | ||
if (const auto _pfnNtCancelIoFileEx = try_get_NtCancelIoFileEx()) | ||
{ | ||
return _pfnNtCancelIoFileEx(handle, io, io_status); | ||
} | ||
|
||
// 最坏打算,清除所有的调用 | ||
if (const auto _pfnNtCancelIoFile = try_get_NtCancelIoFile()) | ||
{ | ||
return _pfnNtCancelIoFile(handle, io_status); | ||
} | ||
|
||
// 正常来说不应该走到这里 | ||
return STATUS_NOT_SUPPORTED; | ||
} | ||
#endif | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters