MCPcopy Create free account
hub / github.com/mhammond/pywin32 / PyWin_RegisterErrorMessageModule

Function PyWin_RegisterErrorMessageModule

win32/src/PyWinTypesmodule.cpp:261–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259static int num_message_modules = 0;
260
261BOOL PyWin_RegisterErrorMessageModule(DWORD first, DWORD last, HINSTANCE hmod)
262{
263 if (num_message_modules>=MAX_MESSAGE_MODULES) {
264 assert(0); // need a either bump the limit, or make a real implementation!
265 return FALSE;
266 }
267 error_message_modules[num_message_modules].firstError = first;
268 error_message_modules[num_message_modules].lastError = last;
269 error_message_modules[num_message_modules].hmodule = hmod;
270 num_message_modules += 1;
271 return TRUE;
272}
273
274HINSTANCE PyWin_GetErrorMessageModule(DWORD err)
275{

Callers 4

PYWIN_MODULE_INIT_FUNCFunction · 0.85
init_win32inetstuffFunction · 0.85
LoadPointersFunction · 0.85
PYWIN_MODULE_INIT_FUNCFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected