-
Notifications
You must be signed in to change notification settings - Fork 120
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
Bug: EVT_HANDLE
is treated as an isize
in the Win32_System_EventLog
API
#1292
Comments
Thanks for reporting. This looks like something that should be fixed in the win32 metadata. Will transfer. |
Windows.Win32.System.EventLog.Apis.EvtArchiveExportedLog : Session...IntPtr => EVT_HANDLE |
Which crate is this about?
windows
Crate version
0.42
Summary
All of the methods residing in the
Win32_System_EventLog
API expect and returnisize
instead ofEVT_HANDLE
. This means variousHANDLE
helper methods (such asis_invalid
) are unavailable.As a side note,
EventLog
constants are referred to asi32
meaning it requires a rather uglyEvtQueryChannelPath.0 as u32
to use them.Toolchain version/configuration
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\user\.rustup
stable-x86_64-pc-windows-msvc (default)
rustc 1.63.0 (4b91a6ea7 2022-08-08)
Reproducible example
Crate manifest
Expected behavior
hQuery
should result in anEVT_HANDLE
type.Actual behavior
hQuery
currently results in asisize
.Additional comments
This may very well be a
win32-metadata
issue realistically however I am not sure.The text was updated successfully, but these errors were encountered: