summaryrefslogtreecommitdiffstats
path: root/private/ole32/ih/hklogevt.h
diff options
context:
space:
mode:
Diffstat (limited to 'private/ole32/ih/hklogevt.h')
-rw-r--r--private/ole32/ih/hklogevt.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/private/ole32/ih/hklogevt.h b/private/ole32/ih/hklogevt.h
new file mode 100644
index 000000000..4c0f3cb17
--- /dev/null
+++ b/private/ole32/ih/hklogevt.h
@@ -0,0 +1,34 @@
+//+-------------------------------------------------------------------------
+//
+// Microsoft Windows
+// Copyright (C) Microsoft Corporation, 1994.
+//
+// File: hkLogEvt.h
+//
+// Contents: Log an application event
+//
+// Functions:
+//
+// History: 28-Sep-94 Don Wright Created
+//
+//--------------------------------------------------------------------------
+#ifndef _LOGEVENT_H_
+#define _LOGEVENT_H_
+
+inline void LogEvent(LPWSTR pSourceString,LPWSTR pEventText)
+{
+ HANDLE hEvent = RegisterEventSourceW(NULL,pSourceString);
+ LPCWSTR *pEventStr = (LPCWSTR *)&pEventText;
+ ReportEventW(hEvent,
+ EVENTLOG_INFORMATION_TYPE,
+ 0,
+ 0,
+ NULL,
+ 1,
+ 0,
+ pEventStr,
+ NULL);
+ DeregisterEventSource(hEvent);
+}
+
+#endif // _LOGEVENT_H_