From 0ada485d14c6c721f24578e7aabffd2018b01b4e Mon Sep 17 00:00:00 2001 From: dahall Date: Wed, 20 May 2020 12:26:37 -0600 Subject: [PATCH] Added UNICODE_STRING.ToString() overload --- PInvoke/NTDll/NTDll.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PInvoke/NTDll/NTDll.cs b/PInvoke/NTDll/NTDll.cs index 27caa85c..4d0abff3 100644 --- a/PInvoke/NTDll/NTDll.cs +++ b/PInvoke/NTDll/NTDll.cs @@ -4152,6 +4152,9 @@ namespace Vanara.PInvoke /// Pointer to a wide-character string. [MarshalAs(UnmanagedType.LPWStr)] public string Buffer; + + /// + public override string ToString() => Buffer ?? string.Empty; } /// Provides a to an object that releases a created handle at disposal using NtClose.