From 5ca257b039f7f13e245e0322e843bed668bc5266 Mon Sep 17 00:00:00 2001 From: Rafael Rivera Date: Tue, 16 Jan 2024 10:09:22 -0800 Subject: [PATCH] Add trace logging constants (#1796) --- .../WinSDK/ConstantsScraper.settings.rsp | 17 +++ .../WinSDK/Partitions/TraceLogging/main.cpp | 1 + .../Partitions/TraceLogging/settings.rsp | 4 + scripts/ChangesSinceLastRelease.txt | 106 ++++++++++++++++++ 4 files changed, 128 insertions(+) create mode 100644 generation/WinSDK/Partitions/TraceLogging/main.cpp create mode 100644 generation/WinSDK/Partitions/TraceLogging/settings.rsp diff --git a/generation/WinSDK/ConstantsScraper.settings.rsp b/generation/WinSDK/ConstantsScraper.settings.rsp index e24d59b6..5c84b2ec 100644 --- a/generation/WinSDK/ConstantsScraper.settings.rsp +++ b/generation/WinSDK/ConstantsScraper.settings.rsp @@ -443,6 +443,23 @@ WRITE_DAC=uint WRITE_OWNER=uint XBUTTON1=ushort XBUTTON2=ushort +WINEVENT_CHANNEL_*=int +WINEVENT_LEVEL_*=int +WINEVENT_OPCODE_*=int +WINEVENT_KEYWORD_*=long +WINEVENT_KEYWORD_RESERVED_5*=long +WINEVENT_KEYWORD_RESERVED_60=long +WINEVENT_KEYWORD_RESERVED_61=long +WINEVENT_KEYWORD_RESERVED_62=long +WINEVENT_KEYWORD_RESERVED_63=ulong +WINEVENT_TASK_NONE=int +WINEVT_KEYWORD_ANY=int +MSG_category_*=int +MSG_channel_*=int +MSG_keyword_*=int +MSG_level_*=int +MSG_opcode_*=int +MSG_task_*=int --exclude TRUE FALSE diff --git a/generation/WinSDK/Partitions/TraceLogging/main.cpp b/generation/WinSDK/Partitions/TraceLogging/main.cpp new file mode 100644 index 00000000..06ba9b1f --- /dev/null +++ b/generation/WinSDK/Partitions/TraceLogging/main.cpp @@ -0,0 +1 @@ +#include \ No newline at end of file diff --git a/generation/WinSDK/Partitions/TraceLogging/settings.rsp b/generation/WinSDK/Partitions/TraceLogging/settings.rsp new file mode 100644 index 00000000..f9465797 --- /dev/null +++ b/generation/WinSDK/Partitions/TraceLogging/settings.rsp @@ -0,0 +1,4 @@ +--traverse +/um/winmeta.h +--namespace +Windows.Win32.System.Diagnostics.TraceLogging diff --git a/scripts/ChangesSinceLastRelease.txt b/scripts/ChangesSinceLastRelease.txt index efac176d..276a5886 100644 --- a/scripts/ChangesSinceLastRelease.txt +++ b/scripts/ChangesSinceLastRelease.txt @@ -437,3 +437,109 @@ Windows.Win32.UI.Shell.Apis.SHCreateItemInKnownFolder : dwKFFlags : [In] => [Ass # Fixed #1780. Windows.Win32.System.WindowsProgramming.FILE_INFORMATION_CLASS removed Windows.Win32.System.WindowsProgramming.FILE_INFORMATION_CLASS.FileDirectoryInformation removed +# Add trace logging constants +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_category_Devices added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_category_Disk added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_category_Network added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_category_Printers added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_category_Services added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_category_Shell added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_category_SystemEvent added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_channel_Application added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_channel_ProviderMetadata added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_channel_Security added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_channel_System added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_channel_TraceClassic added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_channel_TraceLogging added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_keyword_AnyKeyword added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_keyword_AuditFailure added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_keyword_AuditSuccess added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_keyword_Classic added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_keyword_CorrelationHint added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_keyword_ResponseTime added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_keyword_SQM added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_keyword_WDIDiag added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_level_Critical added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_level_Error added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_level_Informational added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_level_LogAlways added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_level_Verbose added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_level_Warning added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_opcode_DCStart added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_opcode_DCStop added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_opcode_Extension added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_opcode_Info added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_opcode_Receive added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_opcode_Reply added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_opcode_Resume added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_opcode_Send added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_opcode_Start added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_opcode_Stop added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_opcode_Suspend added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.MSG_task_None added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_CHANNEL_CLASSIC_TRACE added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_CHANNEL_GLOBAL_APPLICATION added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_CHANNEL_GLOBAL_SECURITY added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_CHANNEL_GLOBAL_SYSTEM added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_CHANNEL_PROVIDERMETADATA added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_CHANNEL_TRACELOGGING added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_AUDIT_FAILURE added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_AUDIT_SUCCESS added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_CORRELATION_HINT added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_EVENTLOG_CLASSIC added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_RESERVED_49 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_RESERVED_56 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_RESERVED_57 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_RESERVED_58 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_RESERVED_59 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_RESERVED_60 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_RESERVED_61 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_RESERVED_62 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_RESERVED_63 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_RESPONSE_TIME added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_SQM added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_KEYWORD_WDI_DIAG added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_CRITICAL added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_ERROR added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_INFO added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_LOG_ALWAYS added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_RESERVED_10 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_RESERVED_11 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_RESERVED_12 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_RESERVED_13 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_RESERVED_14 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_RESERVED_15 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_RESERVED_6 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_RESERVED_7 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_RESERVED_8 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_RESERVED_9 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_VERBOSE added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_LEVEL_WARNING added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_DC_START added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_DC_STOP added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_EXTENSION added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_INFO added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RECEIVE added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_REPLY added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_241 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_242 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_243 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_244 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_245 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_246 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_247 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_248 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_249 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_250 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_251 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_252 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_253 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_254 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESERVED_255 added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_RESUME added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_SEND added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_START added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_STOP added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_OPCODE_SUSPEND added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVENT_TASK_NONE added +Windows.Win32.System.Diagnostics.TraceLogging.Apis.WINEVT_KEYWORD_ANY added