3 #pragma warning(push,1) // disable warnings within system headers
10 IMPLEMENT_THUNK( psapi
, WINDOWS
, DWORD
, WINAPI
, GetModuleFileNameExW
, (HANDLE hProcess
, HMODULE hModule
, LPWSTR lpFileNameW
, DWORD nSize
) )
12 AUTO_STR( lpFileName
, 2 * nSize
);
14 if ( GetModuleFileNameExA( hProcess
, hModule
, lpFileNameA
, 2 * nSize
) )
15 return (DWORD
) STR2WSTR( lpFileName
, nSize
);