IVsHandleInComingCallDynamicInProc::AllowIncomingCall Method (UInt32, IntPtr, UInt32, Guid, UInt16, Boolean)

 

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)

int AllowIncomingCall(
	unsigned int dwCallType,
	IntPtr htaskCaller,
	unsigned int dwTickCount,
	[InAttribute] Guid% iid,
	unsigned short wMethod,
	[OutAttribute] bool% pfAllow
)

Parameters

dwCallType
Type: System::UInt32

[in] The call type.

htaskCaller
Type: System::IntPtr

[in] The caller.

dwTickCount
Type: System::UInt32

[in] The tick count.

iid
Type: System::Guid

[in] The identifier of the requested interface.

wMethod
Type: System::UInt16

[in] The interface method.

pfAllow
Type: System::Boolean

[out, retval] 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.

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

Return to top
Show: