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
dwCallType
Type: UInt32[in] The call type.
htaskCaller
Type: IntPtr[in] The caller.
dwTickCount
Type: UInt32[in] The tick count.
iid
Type: Guid%[in] The identifier of the requested interface.
wMethod
Type: UInt16[in] The interface method.
pfAllow
Type: Boolean%[out, retval] true if the call is allowed, otherwise false.
Return Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.