IVsHandleInComingCallDynamicInProc.AllowIncomingCall 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定是否允许传入呼叫。
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
参数
- dwCallType
- UInt32
中调用类型。
- htaskCaller
-
IntPtr
nativeint
中调用方。
- dwTickCount
- UInt32
中滴答计数。
- iid
- Guid
中请求的接口的标识符。
- wMethod
- UInt16
中接口方法。
- pfAllow
- Boolean
[out,retval] true 如果允许调用,则为; 否则为 false 。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
如果此方法返回 pfAllow false ,则将从返回 SERVERCALL_RETRYLATER IMessageFilter::HandleIncomingCall 。