#Missing Windows API declarations?

1 messages · Page 1 of 1 (latest)

dusk knoll
#

Anyone know where these enum values are in std.os.windows? At least, that's where I assume they'd be. I can't find them.
I need ENABLE_LINE_INPUT, ENABLE_ECHO_INPUT, ENABLE_PROCESSED_INPUT

#

Missing Windows API declarations?

late gull
#

std.os is not exhaustive, they likely aren't there

mild raven
#

I did a quick check with rg on my standard lib (0.14.1) and nothing showed up searching for enable or input

dusk knoll
late gull
#

if you want auto generated and fully exhaustive interface then peek at zigwin32

#

just the file of aliases to everything is 21 MB

dusk knoll
#

is there a reason why std.os.windows isn't auto generated?

late gull
#

because the binding the whole windows would double if not triple the size of a zig installation; I’m fairly sure that zigwin32 is larger than an entire zig installation already on its own

dusk knoll
#

oh gotcha

late gull
#

and on top of that most of they try to keep 99% of the windows interface out of the compiler and stdlib because they can be better implemented with the underlying ntdll functions