From 5012d8211d95de95f3a5fe79401fa3c6cc7cd1fd Mon Sep 17 00:00:00 2001 From: Aaron LeMasters Date: Fri, 15 Nov 2024 14:06:51 -0500 Subject: [PATCH] Add support for new MUI failure codes. --- NativeDefinitions.cs | 2 ++ ProviderParser.cs | 2 ++ etwlib.csproj | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NativeDefinitions.cs b/NativeDefinitions.cs index 89a8d70..9c93a8d 100644 --- a/NativeDefinitions.cs +++ b/NativeDefinitions.cs @@ -998,9 +998,11 @@ internal static extern uint EnumerateTraceGuidsEx( public const int ERROR_NOT_FOUND = 1168; public const int ERROR_XML_PARSE_ERROR = 1465; public const int ERROR_RESOURCE_TYPE_NOT_FOUND = 1813; + public const int ERROR_RESOURCE_NOT_PRESENT = 4316; public const int ERROR_WMI_GUID_NOT_FOUND = 4200; public const int ERROR_EMPTY = 4306; public const int ERROR_EVT_INVALID_EVENT_DATA = 15005; public const int ERROR_MUI_FILE_NOT_FOUND = 15100; + public const int ERROR_MUI_FILE_NOT_LOADED = 15105; } } diff --git a/ProviderParser.cs b/ProviderParser.cs index 0e41c1a..744cf10 100644 --- a/ProviderParser.cs +++ b/ProviderParser.cs @@ -642,6 +642,8 @@ public static class ProviderParser case ERROR_FILE_NOT_FOUND: case ERROR_RESOURCE_TYPE_NOT_FOUND: case ERROR_MUI_FILE_NOT_FOUND: + case ERROR_RESOURCE_NOT_PRESENT: + case ERROR_MUI_FILE_NOT_LOADED: { // // We throw this exception here because it's our first chance diff --git a/etwlib.csproj b/etwlib.csproj index 34a7997..c781e10 100644 --- a/etwlib.csproj +++ b/etwlib.csproj @@ -17,7 +17,7 @@ True 1.1.0 1.1.0 - 1.10.0 + 1.11.1