mirror of https://github.com/dahall/Vanara.git
Updated optional params for CoSetProxyBlanket
parent
35ae2e137c
commit
d65d950db7
|
@ -5,10 +5,13 @@ using Vanara.InteropServices;
|
|||
using static Vanara.PInvoke.Rpc;
|
||||
using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME;
|
||||
|
||||
namespace Vanara.PInvoke
|
||||
{
|
||||
namespace Vanara.PInvoke;
|
||||
|
||||
public static partial class Ole32
|
||||
{
|
||||
/// <summary>If COLE_DEFAULT_PRINCIPAL is specified, DCOM will pick a principal name using its security blanket negotiation algorithm.</summary>
|
||||
public const string COLE_DEFAULT_PRINCIPAL = null;
|
||||
|
||||
/// <summary>Specifies options for the RoGetAgileReference function.</summary>
|
||||
// https://docs.microsoft.com/en-us/windows/desktop/api/combaseapi/ne-combaseapi-agilereferenceoptions typedef enum
|
||||
// AgileReferenceOptions { AGILEREFERENCE_DEFAULT, AGILEREFERENCE_DELAYEDMARSHAL } ;
|
||||
|
@ -3370,9 +3373,11 @@ namespace Vanara.PInvoke
|
|||
// RPC_AUTH_IDENTITY_HANDLE pAuthInfo, DWORD dwCapabilities );
|
||||
[DllImport(Lib.Ole32, SetLastError = false, ExactSpelling = true, CharSet = CharSet.Unicode)]
|
||||
[PInvokeData("combaseapi.h", MSDNShortId = "c2e5e681-8fa5-4b02-b59d-ba796eb0dccf")]
|
||||
public static extern HRESULT CoSetProxyBlanket([In, MarshalAs(UnmanagedType.IUnknown)] object pProxy, RPC_C_AUTHN dwAuthnSvc,
|
||||
RPC_C_AUTHZ dwAuthzSvc, string pServerPrincName, RPC_C_AUTHN_LEVEL dwAuthnLevel, RPC_C_IMP_LEVEL dwImpLevel,
|
||||
RPC_AUTH_IDENTITY_HANDLE pAuthInfo, EOLE_AUTHENTICATION_CAPABILITIES dwCapabilities);
|
||||
public static extern HRESULT CoSetProxyBlanket([In, MarshalAs(UnmanagedType.IUnknown)] object pProxy,
|
||||
RPC_C_AUTHN dwAuthnSvc = RPC_C_AUTHN.RPC_C_AUTHN_DEFAULT, RPC_C_AUTHZ dwAuthzSvc = RPC_C_AUTHZ.RPC_C_AUTHZ_DEFAULT,
|
||||
string pServerPrincName = COLE_DEFAULT_PRINCIPAL, RPC_C_AUTHN_LEVEL dwAuthnLevel = RPC_C_AUTHN_LEVEL.RPC_C_AUTHN_LEVEL_DEFAULT,
|
||||
RPC_C_IMP_LEVEL dwImpLevel = RPC_C_IMP_LEVEL.RPC_C_IMP_LEVEL_DEFAULT, RPC_AUTH_IDENTITY_HANDLE pAuthInfo = default,
|
||||
EOLE_AUTHENTICATION_CAPABILITIES dwCapabilities = EOLE_AUTHENTICATION_CAPABILITIES.EOAC_DEFAULT);
|
||||
|
||||
/// <summary>Prevents any new activation requests from the SCM on all class objects registered within the process.</summary>
|
||||
/// <returns>This function returns S_OK to indicate that the activation of class objects was successfully suspended.</returns>
|
||||
|
@ -4252,4 +4257,3 @@ namespace Vanara.PInvoke
|
|||
public ulong ui64ServerAddress;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue