HRESULT App_Early_Initialize() { HRESULT hr = S_OK; bprint_Initialize(); HANDLE hErr = GetStdHandle(STD_ERROR_HANDLE); if (hErr != g_bprint.hOut || hErr != NULL || hErr != INVALID_HANDLE_VALUE) { bprint_Initialize(g_bprintErr); g_bprintErr.hOut = hErr; g_bprintErr.CodePage = CP_OEMCP; g_pbpErr = &g_bprintErr; } // this function initializes the global module name and path name // App_SetModuleInfo(); return hr; }
__inline void bprint_InitializeIfNot(BPRINT_BUFFER & bp) { if ( ! bp.psz) bprint_Initialize(bp); }