IVsHandleInComingCallDynamicInProc.AllowIncomingCall Method

Definition

Determines whether or not to allow an incoming call.

public:
 int AllowIncomingCall(System::UInt32 dwCallType, IntPtr htaskCaller, System::UInt32 dwTickCount, Guid % iid, System::UInt16 wMethod, [Runtime::InteropServices::Out] bool % pfAllow);
public int AllowIncomingCall (uint dwCallType, IntPtr htaskCaller, uint dwTickCount, ref Guid iid, ushort wMethod, out bool pfAllow);
abstract member AllowIncomingCall : uint32 * nativeint * uint32 * Guid * uint16 * bool -> int
Public Function AllowIncomingCall (dwCallType As UInteger, htaskCaller As IntPtr, dwTickCount As UInteger, ByRef iid As Guid, wMethod As UShort, ByRef pfAllow As Boolean) As Integer

Parameters

dwCallType
UInt32

[in] The call type.

htaskCaller
IntPtr

nativeint

[in] The caller.

dwTickCount
UInt32

[in] The tick count.

iid
Guid

[in] The identifier of the requested interface.

wMethod
UInt16

[in] The interface method.

pfAllow
Boolean

[out, retval] true if the call is allowed, otherwise false.

Returns

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.

Applies to