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.
| 677 | // RETURN VALUE: |
| 678 | // TRUE if we registered OK. |
| 679 | BOOL 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 | // |
no outgoing calls
no test coverage detected