Go to the source code of this file.
◆ __acrt_GetModuleFileNameA()
Definition at line 11 of file GetModuleFileNameA.cpp.
16{
17 size_t const wide_buffer_size =
MAX_PATH + 1;
18 wchar_t wide_buffer[wide_buffer_size];
19
22 wide_buffer,
23 wide_buffer_size
24 );
25
26 if (amount_copied == 0) {
28 return 0;
29 }
30
32
34 wide_buffer,
35 filename_buffer,
37 );
38
39 return static_cast<DWORD>(filename_buffer.size());
40}
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