Remove old Win32 file, get latest changes
This commit is contained in:
parent
4852a431a8
commit
1720cae8db
1736
OS/dn_os_win32.cpp
1736
OS/dn_os_win32.cpp
File diff suppressed because it is too large
Load Diff
@ -1,41 +0,0 @@
|
||||
#if !defined(DN_OS_WIN32_H)
|
||||
#define DN_OS_WIN32_H
|
||||
|
||||
struct DN_WinError
|
||||
{
|
||||
unsigned long code;
|
||||
DN_Str8 msg;
|
||||
};
|
||||
|
||||
// NOTE: Windows Str8 <-> Str16 ///////////////////////////////////////////
|
||||
struct DN_Win_FolderIteratorW
|
||||
{
|
||||
void *handle;
|
||||
DN_Str16 file_name;
|
||||
wchar_t file_name_buf[512];
|
||||
};
|
||||
|
||||
DN_API void DN_Win_ThreadSetName (DN_Str8 name);
|
||||
|
||||
// NOTE: DN_Win ////////////////////////////////////////////////////////////////////////////////////
|
||||
DN_API DN_Str16 DN_Win_ErrorCodeToMsg16Alloc(uint32_t error_code);
|
||||
DN_API DN_WinError DN_Win_ErrorCodeToMsg (DN_Arena *arena, uint32_t error_code);
|
||||
DN_API DN_WinError DN_Win_ErrorCodeToMsgAlloc (uint32_t error_code);
|
||||
DN_API DN_WinError DN_Win_LastError (DN_Arena *arena);
|
||||
DN_API DN_WinError DN_Win_LastErrorAlloc ();
|
||||
DN_API void DN_Win_MakeProcessDPIAware ();
|
||||
|
||||
// NOTE: Windows Str8 <-> Str16 ////////////////////////////////////////////////////////////////////
|
||||
DN_API DN_Str16 DN_Win_Str8ToStr16 (DN_Arena *arena, DN_Str8 src);
|
||||
DN_API int DN_Win_Str8ToStr16Buffer (DN_Str16 src, char *dest, int dest_size);
|
||||
DN_API DN_Str8 DN_Win_Str16ToStr8 (DN_Arena *arena, DN_Str16 src);
|
||||
DN_API int DN_Win_Str16ToStr8Buffer (DN_Str16 src, char *dest, int dest_size);
|
||||
DN_API DN_Str8 DN_Win_Str16ToStr8FromHeap(DN_Str16 src);
|
||||
|
||||
// NOTE: Path navigation ///////////////////////////////////////////////////////////////////////////
|
||||
DN_API DN_Str16 DN_Win_EXEPathW (DN_Arena *arena);
|
||||
DN_API DN_Str16 DN_Win_EXEDirW (DN_Arena *arena);
|
||||
DN_API DN_Str8 DN_Win_WorkingDir (DN_Arena *arena, DN_Str8 suffix);
|
||||
DN_API DN_Str16 DN_Win_WorkingDirW (DN_Arena *arena, DN_Str16 suffix);
|
||||
DN_API bool DN_Win_DirWIterate (DN_Str16 path, DN_Win_FolderIteratorW *it);
|
||||
#endif // !defined(DN_OS_WIN32)
|
@ -297,7 +297,7 @@
|
||||
} RTL_CRITICAL_SECTION_DEBUG, *PRTL_CRITICAL_SECTION_DEBUG, RTL_RESOURCE_DEBUG, *PRTL_RESOURCE_DEBUG;
|
||||
|
||||
typedef struct _RTL_CONDITION_VARIABLE {
|
||||
PVOID Ptr;
|
||||
VOID *Ptr;
|
||||
} RTL_CONDITION_VARIABLE, *PRTL_CONDITION_VARIABLE;
|
||||
|
||||
#pragma pack(push, 8)
|
||||
|
Loading…
x
Reference in New Issue
Block a user