From 30a5cfc806dee206f944c5ea38377a2caf114c7a Mon Sep 17 00:00:00 2001 From: dahall Date: Sat, 12 Sep 2020 11:54:33 -0600 Subject: [PATCH] Changed SOCKET_ADDRESS_LIST[] references to IntPtr or void**. --- PInvoke/Drt/Drt.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PInvoke/Drt/Drt.cs b/PInvoke/Drt/Drt.cs index 9f3dcf60..2c55f3d6 100644 --- a/PInvoke/Drt/Drt.cs +++ b/PInvoke/Drt/Drt.cs @@ -93,11 +93,11 @@ namespace Vanara.PInvoke /// bootstrap resolver. /// /// Contains the pvContext value from DRT_BOOTSTRAP_PROVIDER. - /// Pointer to the list of addresses to register with the bootstrapping mechanism. + /// Pointer to containing the list of addresses to register with the bootstrapping mechanism. /// [PInvokeData("drt.h", MSDNShortId = "NS:drt.drt_bootstrap_provider_tag")] [UnmanagedFunctionPointer(CallingConvention.Winapi)] - public delegate HRESULT DRT_BOOTSTRAP_PROVIDER_Register([In] IntPtr pvContext, [In, MarshalAs(UnmanagedType.LPArray)] SOCKET_ADDRESS_LIST[] pAddressList); + public delegate HRESULT DRT_BOOTSTRAP_PROVIDER_Register([In] IntPtr pvContext, [In] IntPtr pAddressList); /// /// This function deregisters an endpoint with the bootstrapping mechanism. As a result, other nodes will be unable to find the @@ -111,7 +111,7 @@ namespace Vanara.PInvoke /// Callback for some DRT functions. /// The error. /// Contains the pvContext value from DRT_BOOTSTRAP_PROVIDER. - /// Pointer to the list of addresses to register with the bootstrapping mechanism. + /// Pointer to containing the list of addresses to register with the bootstrapping mechanism. /// /// If the bootstrap provider encounters an irrecoverable error, this parameter must be set to TRUE when the function /// complete in order for the DRT to transition to the faulted state. The HRESULT that is made available to the higher layer @@ -121,7 +121,7 @@ namespace Vanara.PInvoke /// [PInvokeData("drt.h", MSDNShortId = "NS:drt.drt_bootstrap_provider_tag")] [UnmanagedFunctionPointer(CallingConvention.Winapi)] - public delegate void DRT_BOOTSTRAP_RESOLVE_CALLBACK(HRESULT hr, IntPtr pvContext, [In, MarshalAs(UnmanagedType.LPArray)] SOCKET_ADDRESS_LIST[] pAddresses, [MarshalAs(UnmanagedType.Bool)] BOOL fFatalError); + public delegate void DRT_BOOTSTRAP_RESOLVE_CALLBACK(HRESULT hr, IntPtr pvContext, [In] IntPtr pAddresses, [MarshalAs(UnmanagedType.Bool)] BOOL fFatalError); /// Increments the count of references for the Security Provider with a set of DRTs. /// Pointer to the value held by the pvContext member of DRT_SECURITY_PROVIDER. @@ -296,7 +296,7 @@ namespace Vanara.PInvoke public unsafe delegate HRESULT DRT_SECURITY_PROVIDER_ValidateAndUnpackPayload([In] IntPtr pvContext, in DRT_DATA pSecuredAddressPayload, [In, Optional] DRT_DATA* pCertChain, [In, Optional] DRT_DATA* pClassifier, [In, Optional] DRT_DATA* pNonce, [In, Optional] DRT_DATA* pSecuredPayload, [Out] byte* pbProtocolMajor, [Out] byte* pbProtocolMinor, out DRT_DATA pKey, [Out, Optional] DRT_DATA* pPayload, - [Out] CERT_PUBLIC_KEY_INFO** ppPublicKey, [Out, Optional] IntPtr ppAddressList, out uint pdwFlags); + [Out] CERT_PUBLIC_KEY_INFO** ppPublicKey, [Out, Optional] void** ppAddressList, out uint pdwFlags); /// Called when the DRT must validate a credential provided by a peer node. /// Pointer to the value held by the pvContext member of DRT_SECURITY_PROVIDER.