20#define WIN32_LEAN_AND_MEAN
37 va_start(
args, pFormat );
38 StringCchVPrintfW( buffer,
sizeof(buffer)/
sizeof(buffer[0]), pFormat,
args );
39 OutputDebugStringW( buffer );
51 const WCHAR sMemMapName[] = L
"Global\\MsiErrorObject";
56 hMapFile = OpenFileMappingW(
61 if ( hMapFile ==
nullptr )
67 pBuf =
static_cast<int*
>(MapViewOfFile( hMapFile,
75 UnmapViewOfFile( pBuf );
80 CloseHandle( hMapFile );
void SetMsiErrorCode(int nErrorCode)
void OutputDebugStringFormatW(PCWSTR pFormat,...)