aboutsummaryrefslogtreecommitdiff
path: root/std/os
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-11-10 14:36:03 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-11-10 14:36:03 -0500
commit20c2dbdbd3847cfaa580878fca2566347a2f4733 (patch)
treeade52bac91ed59d135e700fec593b74bf4623f2b /std/os
parent1ac46fac15953820948b77b94083828f84673641 (diff)
downloadzig-20c2dbdbd3847cfaa580878fca2566347a2f4733.tar.gz
zig-20c2dbdbd3847cfaa580878fca2566347a2f4733.zip
add windows implementation of io.File.getEndPos
Diffstat (limited to 'std/os')
-rw-r--r--std/os/windows/index.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/std/os/windows/index.zig b/std/os/windows/index.zig
index a398deb0b3..913cc79801 100644
--- a/std/os/windows/index.zig
+++ b/std/os/windows/index.zig
@@ -46,6 +46,8 @@ pub extern "kernel32" stdcallcc fn GetEnvironmentVariableA(lpName: LPCSTR, lpBuf
pub extern "kernel32" stdcallcc fn GetExitCodeProcess(hProcess: HANDLE, lpExitCode: &DWORD) -> BOOL;
+pub extern "kernel32" stdcallcc fn GetFileSizeEx(hFile: HANDLE, lpFileSize: &LARGE_INTEGER) -> BOOL;
+
pub extern "kernel32" stdcallcc fn GetLastError() -> DWORD;
pub extern "kernel32" stdcallcc fn GetFileInformationByHandleEx(in_hFile: HANDLE,
@@ -115,6 +117,7 @@ pub const ULONG_PTR = usize;
pub const UNICODE = false;
pub const WCHAR = u16;
pub const WORD = u16;
+pub const LARGE_INTEGER = i64;
pub const TRUE = 1;
pub const FALSE = 0;