From c08ac4b35ab5cdffbc29e2a99f195cd0d665b35e Mon Sep 17 00:00:00 2001 From: dahall Date: Wed, 25 Mar 2020 17:40:45 -0600 Subject: [PATCH] Changed WSAQUERYSET2W strings to be marshaled strings. --- PInvoke/Ws2_32/ws2spi.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PInvoke/Ws2_32/ws2spi.cs b/PInvoke/Ws2_32/ws2spi.cs index 2ded3fc6..7f77b643 100644 --- a/PInvoke/Ws2_32/ws2spi.cs +++ b/PInvoke/Ws2_32/ws2spi.cs @@ -5278,7 +5278,7 @@ namespace Vanara.PInvoke /// the string are not defined, but can be supported by certain namespace providers. /// /// - public StrPtrUni lpszServiceInstanceName; + [MarshalAs(UnmanagedType.LPTStr)] public string lpszServiceInstanceName; /// /// Type: LPWSAVERSION @@ -5293,7 +5293,7 @@ namespace Vanara.PInvoke /// Type: LPTSTR /// This member is ignored for queries. /// - public StrPtrUni lpszComment; + [MarshalAs(UnmanagedType.LPTStr)] public string lpszComment; /// /// Type: DWORD @@ -5363,7 +5363,7 @@ namespace Vanara.PInvoke /// Type: LPTSTR /// A pointer to an optional starting point of the query in a hierarchical namespace. /// - public StrPtrUni lpszContext; + [MarshalAs(UnmanagedType.LPTStr)] public string lpszContext; /// /// Type: DWORD @@ -5384,7 +5384,7 @@ namespace Vanara.PInvoke /// queries that are contained in a simple text string. This parameter is used to specify that string. /// /// - public StrPtrUni lpszQueryString; + [MarshalAs(UnmanagedType.LPTStr)] public string lpszQueryString; /// /// Type: DWORD