diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2022-10-13 22:18:35 -0700 |
|---|---|---|
| committer | Ryan Liptak <squeek502@hotmail.com> | 2022-10-29 14:30:43 -0700 |
| commit | 33fdc43714e34f5c4bc02c416ef4c6534acc56ca (patch) | |
| tree | 9bf688f5a789727ddc8c29ec6280e0fd3f5abe96 /lib/std/os | |
| parent | e036cc48d59e5f7c025df7bbd9923a13e30c6ec9 (diff) | |
| download | zig-33fdc43714e34f5c4bc02c416ef4c6534acc56ca.tar.gz zig-33fdc43714e34f5c4bc02c416ef4c6534acc56ca.zip | |
std.fs: Add MAX_NAME_BYTES
Also add some NAME_MAX or equivalent definitions where necessary
Diffstat (limited to 'lib/std/os')
| -rw-r--r-- | lib/std/os/windows.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index d68a66ed87..7bed48a2bf 100644 --- a/lib/std/os/windows.zig +++ b/lib/std/os/windows.zig @@ -2977,6 +2977,12 @@ pub const PMEMORY_BASIC_INFORMATION = *MEMORY_BASIC_INFORMATION; /// from https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file#maximum-path-length-limitation pub const PATH_MAX_WIDE = 32767; +/// > [Each file name component can be] up to the value returned in the +/// > lpMaximumComponentLength parameter of the GetVolumeInformation function +/// > (this value is commonly 255 characters) +/// from https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation +pub const NAME_MAX = 255; + pub const FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100; pub const FORMAT_MESSAGE_ARGUMENT_ARRAY = 0x00002000; pub const FORMAT_MESSAGE_FROM_HMODULE = 0x00000800; |
