IVsThreadPool.ScheduleWaitableTask Method

Schedules a task and a handle to wait on before running the task.

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

Syntax

'宣言
Function ScheduleWaitableTask ( _
    hWait As UInteger, _
    pTaskProc As UInteger, _
    pvParam As UInteger _
) As Integer
'使用
Dim instance As IVsThreadPool
Dim hWait As UInteger
Dim pTaskProc As UInteger
Dim pvParam As UInteger
Dim returnValue As Integer

returnValue = instance.ScheduleWaitableTask(hWait, _
    pTaskProc, pvParam)
int ScheduleWaitableTask(
    uint hWait,
    uint pTaskProc,
    uint pvParam
)
int ScheduleWaitableTask(
    [InAttribute] unsigned int hWait, 
    [InAttribute] unsigned int pTaskProc, 
    [InAttribute] unsigned int pvParam
)
function ScheduleWaitableTask(
    hWait : uint, 
    pTaskProc : uint, 
    pvParam : uint
) : int

Parameters

  • pTaskProc
    Type: System.UInt32

    [in] The environment explicitly casts this pointer to a PVsBackgroundTask_Function_Pointer prior to being called.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsThreadPool::ScheduleWaitableTask(
   [in] DWORD_PTR hWait, 
   [in] DWORD_PTR pTaskProc
);

Permissions

See Also

Reference

IVsThreadPool Interface

IVsThreadPool Members

Microsoft.VisualStudio.Shell.Interop Namespace