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

Function PythonService_Initialize

win32/src/PythonService.cpp:679–688  ·  view source on GitHub ↗

FUNCTION: PythonService_Initialize PURPOSE: Initialize the DLL PARAMETERS: evtsrc_name - The event source name, as it appears in the event log (and as used to obtain the eventsource handle. evtsrc_file - The name of the file registered with the event viewer for this source. Both params can be NULL, meaning defaults are used. RETURN VALUE: TRUE if we registered OK.

Source from the content-addressed store, hash-verified

677// RETURN VALUE:
678// TRUE if we registered OK.
679BOOL PythonService_Initialize( const TCHAR *evtsrc_name, const TCHAR *evtsrc_file)
680{
681 if (evtsrc_name && *evtsrc_name)
682 _tcsncpy(g_szEventSourceName, evtsrc_name,
683 sizeof g_szEventSourceName/sizeof TCHAR);
684 if (evtsrc_file && *evtsrc_file)
685 _tcsncpy(g_szEventSourceFileName, evtsrc_file,
686 sizeof g_szEventSourceFileName/sizeof TCHAR);
687 return TRUE;
688}
689
690// FUNCTION: PythonService_Finalize
691//

Callers 2

PyServiceInitializeFunction · 0.85
PythonService_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected