diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2018-01-25 14:02:32 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-25 14:02:32 +0000 |
| commit | 25101b2ae076cbdfc7b6e5a43855d143f1358c0e (patch) | |
| tree | 51c09fd48c51fe408d904cd19262650ec6ca932a | |
| parent | 101ee641657c62a08b15422bc643cc80a7e1360e (diff) | |
| parent | 4e7867fcc16d663f2a11051a06c3d30d7a42fdb2 (diff) | |
Merge pull request #175 from ThisDrunkDane/windows.odin-adds
More file handling functions
| -rw-r--r-- | core/sys/windows.odin | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/sys/windows.odin b/core/sys/windows.odin index 053d1d31b..2a1a3ba64 100644 --- a/core/sys/windows.odin +++ b/core/sys/windows.odin @@ -522,6 +522,7 @@ foreign kernel32 { @(link_name="GetFileInformationByHandle") get_file_information_by_handle :: proc(file_handle: Handle, file_info: ^By_Handle_File_Information) -> Bool ---; @(link_name="CreateDirectoryA") create_directory_a :: proc(path: ^byte, security_attributes: ^Security_Attributes) -> Bool ---; + @(link_name="CreateDirectoryW") create_directory_w :: proc(path: ^u16, security_attributes: ^Security_Attributes) -> Bool ---; @(link_name="GetFileType") get_file_type :: proc(file_handle: Handle) -> u32 ---; @(link_name="SetFilePointer") set_file_pointer :: proc(file_handle: Handle, distance_to_move: i32, distance_to_move_high: ^i32, move_method: u32) -> u32 ---; @@ -533,6 +534,12 @@ foreign kernel32 { @(link_name="FindClose") find_close :: proc(file : Handle) -> Bool ---; @(link_name="MoveFileExA") move_file_ex_a :: proc(existing, new: ^byte, flags: u32) -> Bool ---; + @(link_name="DeleteFileA") delete_file_a :: proc(file_name : ^byte) -> Bool ---; + @(link_name="CopyFileA") copy_file_a :: proc(existing, new: ^byte, fail_if_exists: Bool) -> Bool ---; + + @(link_name="MoveFileExW") move_file_ex_w :: proc(existing, new: ^u16, flags: u32) -> Bool ---; + @(link_name="DeleteFileW") delete_file_w :: proc(file_name : ^u16) -> Bool ---; + @(link_name="CopyFileW") copy_file_w :: proc(existing, new: ^u16, fail_if_exists: Bool) -> Bool ---; @(link_name="HeapAlloc") heap_alloc :: proc(h: Handle, flags: u32, bytes: int) -> rawptr ---; @(link_name="HeapReAlloc") heap_realloc :: proc(h: Handle, flags: u32, memory: rawptr, bytes: int) -> rawptr ---; |