Author: hbelusca
Date: Fri Aug 12 14:24:55 2016
New Revision: 72210
URL:
http://svn.reactos.org/svn/reactos?rev=72210&view=rev
Log:
[SDK]: Move some event log flags to the correct header (from winbase.h to winnt.h).
CORE-11839
Modified:
trunk/reactos/sdk/include/psdk/winbase.h
trunk/reactos/sdk/include/xdk/winnt_old.h
Modified: trunk/reactos/sdk/include/psdk/winbase.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/psdk/winbase.h…
==============================================================================
--- trunk/reactos/sdk/include/psdk/winbase.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/psdk/winbase.h [iso-8859-1] Fri Aug 12 14:24:55 2016
@@ -387,16 +387,7 @@
#define PURGE_RXABORT 2
#define PURGE_TXCLEAR 4
#define PURGE_RXCLEAR 8
-#define EVENTLOG_SUCCESS 0
-#define EVENTLOG_FORWARDS_READ 4
-#define EVENTLOG_BACKWARDS_READ 8
-#define EVENTLOG_SEEK_READ 2
-#define EVENTLOG_SEQUENTIAL_READ 1
-#define EVENTLOG_ERROR_TYPE 1
-#define EVENTLOG_WARNING_TYPE 2
-#define EVENTLOG_INFORMATION_TYPE 4
-#define EVENTLOG_AUDIT_SUCCESS 8
-#define EVENTLOG_AUDIT_FAILURE 16
+
#define FORMAT_MESSAGE_ALLOCATE_BUFFER 256
#define FORMAT_MESSAGE_IGNORE_INSERTS 512
#define FORMAT_MESSAGE_FROM_STRING 1024
Modified: trunk/reactos/sdk/include/xdk/winnt_old.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/xdk/winnt_old.…
==============================================================================
--- trunk/reactos/sdk/include/xdk/winnt_old.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/xdk/winnt_old.h [iso-8859-1] Fri Aug 12 14:24:55 2016
@@ -2543,24 +2543,49 @@
struct _EXCEPTION_POINTERS *ExceptionInfo
);
+
+#define EVENTLOG_SEQUENTIAL_READ 1
+#define EVENTLOG_SEEK_READ 2
+#define EVENTLOG_FORWARDS_READ 4
+#define EVENTLOG_BACKWARDS_READ 8
+
+#define EVENTLOG_SUCCESS 0
+#define EVENTLOG_ERROR_TYPE 1
+#define EVENTLOG_WARNING_TYPE 2
+#define EVENTLOG_INFORMATION_TYPE 4
+#define EVENTLOG_AUDIT_SUCCESS 8
+#define EVENTLOG_AUDIT_FAILURE 16
+
typedef struct _EVENTLOGRECORD {
- DWORD Length;
+ DWORD Length; /* Length of full record, including the data portion */
DWORD Reserved;
DWORD RecordNumber;
DWORD TimeGenerated;
DWORD TimeWritten;
DWORD EventID;
WORD EventType;
- WORD NumStrings;
+ WORD NumStrings; /* Number of strings in the 'Strings' array */
WORD EventCategory;
WORD ReservedFlags;
DWORD ClosingRecordNumber;
DWORD StringOffset;
DWORD UserSidLength;
DWORD UserSidOffset;
- DWORD DataLength;
- DWORD DataOffset;
+ DWORD DataLength; /* Length of the data portion */
+ DWORD DataOffset; /* Offset from beginning of record */
+/*
+ * Length-varying data:
+ *
+ * WCHAR SourceName[];
+ * WCHAR ComputerName[];
+ * SID UserSid; // Must be aligned on a DWORD boundary
+ * WCHAR Strings[];
+ * BYTE Data[];
+ * CHAR Pad[]; // Padding for DWORD boundary
+ * DWORD Length; // Same as the first 'Length' member at the
beginning
+ */
} EVENTLOGRECORD, *PEVENTLOGRECORD;
+
typedef struct _OSVERSIONINFOA {
DWORD dwOSVersionInfoSize;