Bagikan melalui


IVsHandleInComingCallDynamicInProc.AllowIncomingCall Method

Determines whether or not to allow an incoming call.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntax

'Declaration
Function AllowIncomingCall ( _
    dwCallType As UInteger, _
    htaskCaller As IntPtr, _
    dwTickCount As UInteger, _
    ByRef iid As Guid, _
    wMethod As UShort, _
    <OutAttribute> ByRef pfAllow As Boolean _
) As Integer
int AllowIncomingCall(
    uint dwCallType,
    IntPtr htaskCaller,
    uint dwTickCount,
    ref Guid iid,
    ushort wMethod,
    out bool pfAllow
)
int AllowIncomingCall(
    [InAttribute] unsigned int dwCallType, 
    [InAttribute] IntPtr htaskCaller, 
    [InAttribute] unsigned int dwTickCount, 
    [InAttribute] Guid% iid, 
    [InAttribute] unsigned short wMethod, 
    [OutAttribute] bool% pfAllow
)
abstract AllowIncomingCall : 
        dwCallType:uint32 * 
        htaskCaller:IntPtr * 
        dwTickCount:uint32 * 
        iid:Guid byref * 
        wMethod:uint16 * 
        pfAllow:bool byref -> int 
function AllowIncomingCall(
    dwCallType : uint, 
    htaskCaller : IntPtr, 
    dwTickCount : uint, 
    iid : Guid, 
    wMethod : ushort, 
    pfAllow : boolean
) : int

Parameters

  • pfAllow
    Type: System.Boolean%
    [out] true if the call is allowed, otherwise false.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

If this method returns pfAllow as false, then SERVERCALL_RETRYLATER will be returned from IMessageFilter::HandleIncomingCall.

.NET Framework Security

See Also

Reference

IVsHandleInComingCallDynamicInProc Interface

Microsoft.VisualStudio.Shell.Interop Namespace