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

Function PyWin_GetErrorMessageModule

win32/src/PyWinTypesmodule.cpp:274–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274HINSTANCE PyWin_GetErrorMessageModule(DWORD err)
275{
276 int i;
277 for (i=0;i<num_message_modules;i++) {
278 if ((DWORD)err >= error_message_modules[i].firstError &&
279 (DWORD)err <= error_message_modules[i].lastError) {
280 return error_message_modules[i].hmodule;
281 }
282 }
283 return NULL;
284}
285
286/* error helper - GetLastError() is provided, but this is for exceptions */
287PyObject *PyWin_SetAPIError(char *fnName, long err /*= 0*/)

Callers 4

GetScodeStringFunction · 0.85
PyFormatMessageAFunction · 0.85
PyFormatMessageWFunction · 0.85
PyWin_SetAPIErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected