27#ifndef INCLUDED_SYSDEP
28#define INCLUDED_SYSDEP
31# pragma warning(disable:4091)
191# define SYS_DIR_SEP '\\'
193# define SYS_DIR_SEP '/'
ErrorReactionInternal
all choices offered by the error dialog.
Definition: debug.h:141
std::int64_t Status
Error handling system.
Definition: status.h:174
bool sys_IsDebuggerPresent()
Definition: unix.cpp:52
Status sys_get_proxy_config(const std::wstring &url, std::wstring &proxy)
get the proxy address for accessing the given HTTP URL.
Definition: unix.cpp:348
Status sys_generate_random_bytes(std::uint8_t *buf, size_t count)
generate high-quality random bytes.
Definition: unix.cpp:325
OsPath sys_ExecutablePathname()
Get the path to the executable.
Definition: bsd.cpp:41
std::wstring sys_WideFromArgv(const char *argv_i)
Definition: unix.cpp:57
Status sys_pick_directory(OsPath &path)
Have the user choose a directory via OS dialog.
Definition: wsysdep.cpp:459
Status sys_open_url(const std::string &url)
Open the user's default web browser to the given URL.
Definition: unix.cpp:353
void sys_display_msg(const wchar_t *caption, const wchar_t *msg)
display a message.
Definition: unix.cpp:66
Status sys_StatusDescription(int err, wchar_t *buf, size_t max_chars)
describe the current OS error state.
Definition: unix.cpp:282
ErrorReactionInternal sys_display_error(const wchar_t *text, size_t flags)
show the error dialog.
Definition: unix.cpp:213
Status sys_get_module_filename(void *addr, OsPath &pathname)
determine filename of the module to whom an address belongs.
Definition: wsysdep.cpp:415
FILE * sys_OpenFile(const OsPath &pathname, const char *mode)
open a file like with fopen (but taking an OsPath argument).
Definition: unix.cpp:383
size_t sys_max_sector_size()
return the largest sector size [bytes] of any storage medium (HD, optical, etc.) in the system.
Definition: unix.cpp:293
std::wstring sys_get_user_name()
Get the current user's login name.
Definition: unix.cpp:302