2017-03-23 22:45:32 +00:00
|
|
|
/*
|
|
|
|
* Mr. 4th Dimention - Allen Webster
|
|
|
|
*
|
|
|
|
* 23.03.2017
|
|
|
|
*
|
|
|
|
* UTF8 versions of WIN32 calls.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
#if !defined(FRED_WIN32_UTF8_H)
|
|
|
|
#define FRED_WIN32_UTF8_H
|
|
|
|
|
2019-10-01 23:50:56 +00:00
|
|
|
function HANDLE
|
2019-06-01 23:58:28 +00:00
|
|
|
CreateFile_utf8(Arena *scratch, u8 *name, DWORD access, DWORD share, LPSECURITY_ATTRIBUTES security, DWORD creation, DWORD flags, HANDLE template_file);
|
2017-03-23 22:45:32 +00:00
|
|
|
|
2019-10-01 23:50:56 +00:00
|
|
|
function DWORD
|
2019-06-01 23:58:28 +00:00
|
|
|
GetFinalPathNameByHandle_utf8(Arena *scratch, HANDLE file, u8 *file_path_out, DWORD path_max, DWORD flags);
|
2017-03-23 22:45:32 +00:00
|
|
|
|
2019-10-01 23:50:56 +00:00
|
|
|
function HANDLE
|
2019-06-01 23:58:28 +00:00
|
|
|
FindFirstFile_utf8(Arena *scratch, u8 *name, LPWIN32_FIND_DATA find_data);
|
2017-03-23 22:45:32 +00:00
|
|
|
|
2019-10-01 23:50:56 +00:00
|
|
|
function DWORD
|
2019-06-01 23:58:28 +00:00
|
|
|
GetFileAttributes_utf8(Arena *scratch, u8 *name);
|
2017-03-23 22:45:32 +00:00
|
|
|
|
2019-10-01 23:50:56 +00:00
|
|
|
function DWORD
|
2019-06-01 23:58:28 +00:00
|
|
|
GetModuleFileName_utf8(Arena *scratch, HMODULE module, u8 *file_out, DWORD max);
|
2017-03-23 22:45:32 +00:00
|
|
|
|
2019-10-01 23:50:56 +00:00
|
|
|
function BOOL
|
2019-06-01 23:58:28 +00:00
|
|
|
CreateProcess_utf8(Arena *scratch, u8 *app_name, u8 *command, LPSECURITY_ATTRIBUTES security, LPSECURITY_ATTRIBUTES thread, BOOL inherit_handles, DWORD creation, LPVOID environment, u8 *curdir, LPSTARTUPINFO startup, LPPROCESS_INFORMATION process);
|
2017-03-23 22:45:32 +00:00
|
|
|
|
2019-10-01 23:50:56 +00:00
|
|
|
function DWORD
|
2019-06-01 23:58:28 +00:00
|
|
|
GetCurrentDirectory_utf8(Arena *scratch, DWORD max, u8 *buffer);
|
2017-03-23 22:45:32 +00:00
|
|
|
|
2019-10-01 23:50:56 +00:00
|
|
|
function int
|
2019-06-01 23:58:28 +00:00
|
|
|
MessageBox_utf8(Arena *scratch, HWND owner, u8 *text, u8 *caption, UINT type);
|
2017-03-23 22:45:32 +00:00
|
|
|
|
2019-10-01 23:50:56 +00:00
|
|
|
function BOOL
|
2019-06-01 23:58:28 +00:00
|
|
|
SetWindowText_utf8(Arena *scratch, HWND window, u8 *string);
|
2017-11-30 19:02:37 +00:00
|
|
|
|
2019-10-01 23:50:56 +00:00
|
|
|
function BOOL
|
2019-06-01 23:58:28 +00:00
|
|
|
GetFileAttributesEx_utf8String(Arena *scratch, String_Const_u8 file_name, GET_FILEEX_INFO_LEVELS info_level_id, LPVOID file_info);
|
2019-02-14 00:24:03 +00:00
|
|
|
|
2019-10-03 02:58:05 +00:00
|
|
|
function HMODULE
|
|
|
|
LoadLibrary_utf8String(Arena *scratch, String_Const_u8 file_name);
|
|
|
|
|
2017-03-23 22:45:32 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|