zig/lib/std/os/windows
Stephen Gregoratto 3095e83d11 Windows: Rework kernel32 apis
To facilitate #1840, this commit slims `std.windows.kernel32` to only
have the functions needed by the standard library. Since this will break
projects that relied on these, I offer two solutions:

- Make an argument as to why certain functions should be added back in.
  Note that they may just be wrappers around `ntdll` APIs, which would
  go against #1840.
  If necessary I'll add them back in *and* make wrappers in
  `std.windows` for it.
- Maintain your own list of APIs. This is the option taken by bun[1],
  where they wrap functions with tracing.
- Use `zigwin32`.

I've also added TODO comments that specify which functions can be
reimplemented using `ntdll` APIs in the future.

Other changes:
- Group functions into groups (I/O, process management etc.).
- Synchronize definitions against Microsoft documentation to use the
  proper parameter types/names.
- Break all functions with parameters over multiple lines.
2024-07-17 23:11:23 +10:00
..
advapi32.zig std.os.windows.advapi32: add RegLoadAppKeyW 2023-07-23 17:10:57 +06:00
crypt32.zig clean up windows cert scanning 2023-01-17 00:08:42 -07:00
kernel32.zig Windows: Rework kernel32 apis 2024-07-17 23:11:23 +10:00
lang.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
nls.zig Add os.windows.nls.upcaseW, a cross-platform implementation of RtlUpcaseUnicodeChar 2023-06-30 15:29:43 -07:00
ntdll.zig Windows: Replace CreatePipe with ntdll implementation 2024-03-16 23:37:50 +11:00
ntstatus.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
sublang.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
test.zig std: Convert deprecated aliases to compile errors and fix usages 2024-06-13 10:18:59 -04:00
win32error.zig os.windows: Fix error 258 name in Win32Error 2024-01-23 18:06:23 -08:00
ws2_32.zig std.os.windows: add POLL.IN and POLL.OUT 2024-03-21 17:08:50 +02:00