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