-
Original window ID is very useful in some cases, for example taking screenshot of the window. But I examined this struct |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I did add a method Not very pretty, the new I may complete the switch to this new library at some point, and then the API in winapi-easy may change as well, especially |
Beta Was this translation helpful? Give feedback.
I did add a method
into_raw_handle
for this, which will give you a pointer.winapi
models these handles as*mut HWND__
, even though in this case it's just aisize
under the hood. To get that here, you can just do something likewindow_handle.into_raw_handle().as_ptr() as isize
.Not very pretty, the new
windows
library makes the underlying type much more obvious, see: https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Foundation/struct.HWND.htmlI may complete the switch to this new library at some point, and then the API in winapi-easy may change as well, especially
into_raw_handle
. It's all experimental still.