13 char *
const lpFilename,
17 size_t const wide_buffer_size =
MAX_PATH + 1;
18 wchar_t wide_buffer[wide_buffer_size];
26 if (amount_copied == 0) {
39 return static_cast<DWORD>(filename_buffer.
size());
DWORD __cdecl __acrt_GetModuleFileNameA(HMODULE const hModule, char *const lpFilename, DWORD const nSize)
void __cdecl __acrt_errno_map_os_error(unsigned long)
errno_t __acrt_wcs_to_mbs_cp(wchar_t const *const null_terminated_input_string, __crt_win32_buffer< char, ResizePolicy > &win32_buffer, unsigned int const code_page)
unsigned int __acrt_get_utf8_acp_compatibility_codepage()
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
static char * cvt(double arg, int ndigits, int *decpt, int *sign, char *buf, int eflag)
DWORD WINAPI GetLastError(void)
*nSize LPSTR _Inout_ LPDWORD nSize