-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NtCancelIoFileEx
function is missing
#9
Comments
Is the documentation correct in that NtCancelIoFileEx returns BOOL? I'd expect Nt functions to return NTSTATUS. |
Mio has been handling it as a |
Yes, the docs are not correct either. 😜 |
Huh so there is a third parameter as well. Anyway, why would an application call NtCancelIoFileEx rather than the better-documented CancelIoEx? Does win32metadata attempt to support native NT (not Win32) applications? |
Is this header in the WDK? I don't see it in the SDK. |
I haven't been able to find a public version of it. |
Because we use the third argument: https://github.com/tokio-rs/mio/blob/fc2080cd0a663125b59f0afa2bc1c771a3fbec1e/src/sys/windows/afd.rs#L119. Although I'm too familiar with Windows. Perhaps this can be rewritten to use |
Just following up on this issue. I can't find the public header with it but since it is documented here's the correct definition: NTSTATUS
NTAPI
NtCancelIoFileEx(
_In_ HANDLE FileHandle,
_In_opt_ PIO_STATUS_BLOCK IoRequestToCancel,
_Out_ PIO_STATUS_BLOCK IoStatusBlock
); Perhaps we can manually include it in the WDK metadata along with all of the other NtXxx APIs that are now present. |
The function is documented here:
https://learn.microsoft.com/en-us/windows/win32/devnotes/nt-cancel-io-file-ex
It seems like this should be included as it is clearly for desktop use and the Win32 metadata includes various other functions exported from
ntdll.dll
. I'm just not sure where to find the header.Originally posted by @Thomasdezeeuw in tokio-rs/mio#1632 (comment)
The text was updated successfully, but these errors were encountered: