27 #ifndef INCLUDED_SYSDEP
28 #define INCLUDED_SYSDEP
49 extern void sys_display_msg(
const wchar_t* caption,
const wchar_t* msg);
90 extern int sys_vswprintf(
wchar_t* buffer,
size_t count,
const wchar_t* format, va_list argptr);
194 # define SYS_DIR_SEP '\\'
196 # define SYS_DIR_SEP '/'
199 #endif // #ifndef INCLUDED_SYSDEP
std::wstring sys_get_user_name()
Get the current user's login name.
ErrorReactionInternal sys_display_error(const wchar_t *text, size_t flags)
show the error dialog.
Status sys_get_proxy_config(const std::wstring &url, std::wstring &proxy)
get the proxy address for accessing the given HTTP URL.
size_t sys_max_sector_size()
return the largest sector size [bytes] of any storage medium (HD, optical, etc.) in the system...
FILE * sys_OpenFile(const OsPath &pathname, const char *mode)
open a file like with fopen (but taking an OsPath argument).
Status sys_StatusDescription(int err, wchar_t *buf, size_t max_chars)
describe the current OS error state.
Status sys_open_url(const std::string &url)
Open the user's default web browser to the given URL.
void sys_display_msg(const wchar_t *caption, const wchar_t *msg)
display a message.
Status sys_pick_directory(OsPath &path)
Have the user choose a directory via OS dialog.
Status sys_get_module_filename(void *addr, OsPath &pathname)
determine filename of the module to whom an address belongs.
std::wstring sys_WideFromArgv(const char *argv_i)
i64 Status
Error handling system.
Status sys_generate_random_bytes(u8 *buf, size_t count)
generate high-quality random bytes.
bool sys_IsDebuggerPresent()
OsPath sys_ExecutablePathname()
int sys_vswprintf(wchar_t *buffer, size_t count, const wchar_t *format, va_list argptr)
sys_vswprintf: doesn't quite follow the standard for vswprintf, but works better across compilers: ...
ErrorReactionInternal
all choices offered by the error dialog.