Go to the source code of this file.
◆ FreeLogs()
Definition at line 85 of file misc.cpp.
86{
88}
BOOL WINAPI DeregisterEventSource(IN HANDLE hEventLog)
◆ InitLogs()
Definition at line 12 of file misc.cpp.
13{
14 WCHAR szBuf[
MAX_PATH] =
L"SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\RosAutotest";
16 DWORD dwCategoryNum = 1;
19
24 {
25 return;
26 }
27
29 return;
30
33 0,
37 {
39 return;
40 }
41
44
47 0,
51 {
53 return;
54 }
55
57 L"CategoryMessageFile",
58 0,
62 {
64 return;
65 }
66
69 0,
73 {
75 return;
76 }
77
79
81}
#define RegCloseKey(hKey)
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
HANDLE WINAPI RegisterEventSourceW(IN LPCWSTR lpUNCServerName, IN LPCWSTR lpSourceName)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
static HANDLE ULONG_PTR dwData
#define REG_OPTION_NON_VOLATILE
#define GetModuleFileName
#define EVENTLOG_ERROR_TYPE
#define EVENTLOG_INFORMATION_TYPE
#define EVENTLOG_WARNING_TYPE
#define HKEY_LOCAL_MACHINE
◆ WriteLogMessage()
Definition at line 92 of file misc.cpp.
93{
95 wType,
96 0,
97 dwEventID,
99 1,
100 0,
103 {
105 }
106
108}
BOOL WINAPI ReportEventW(IN HANDLE hEventLog, IN WORD wType, IN WORD wCategory, IN DWORD dwEventID, IN PSID lpUserSid, IN WORD wNumStrings, IN DWORD dwDataSize, IN LPCWSTR *lpStrings, IN LPVOID lpRawData)
◆ hLog