Windows Native API crate?


#1

Are there any Rust crates that bind to the (mostly undocumented) Windows Native API?


#2

https://crates.io/crates/winapi


#3

Edited: Fix gender.

@sfackler The winapi crate is binding to the Windows API. IMO, it is different from what @dobenour asked. She seems to ask binding to the Native API because the word “undocumented” is in her post.
Most functions in the Native API are undocumented.


#4

Don’t you just hate it when “native Windows API” and “Windows Native API” (note capitalisation) are two practically identical names for two very different things…

Sigh, naming things, and caching… The two big problems of IT.


#5

You are correct, except that I am a she, not a he.


#6

I’m not sure if any proper bindings for the Windows Native API even exist. On Stack Overflow, someone asking how you use it from C++ was told they’d essentially need to write their own header file with definitions for whatever they want to use, which is… not ideal :disappointed: