Share via


ICorThreadpool Interface

Provides methods for accessing the thread pool.

Note

This interface is reserved for internal use only.

interface ICorThreadpool : IUnknown {

    HRESULT CorRegisterWaitForSingleObject(
        [in] HANDLE* phNewWaitObject,
        [in] HANDLE hWaitObject,
        [in] WAITORTIMERCALLBACK Callback,
        [in] PVOID Context,
        [in] ULONG timeout,
        [in] BOOL  executeOnlyOnce,
        [out] BOOL* result
    );
    HRESULT CorUnregisterWait(
        [in] HANDLE hWaitObject,
        [in] HANDLE CompletionEvent,[out] BOOL* result
    );
    HRESULT CorQueueUserWorkItem(
        [in] LPTHREAD_START_ROUTINE Function,
        [in] PVOID Context,
        [in] BOOL executeOnlyOnce,
        [out] BOOL* result
    );
    HRESULT CorCreateTimer(
        [in] HANDLE* phNewTimer,
        [in] WAITORTIMERCALLBACK Callback,
        [in] PVOID Parameter,
        [in] DWORD DueTime,
        [in] DWORD Period,
        [out] BOOL* result
    );
    HRESULT CorChangeTimer(
        [in] HANDLE Timer,
        [in] ULONG DueTime,
        [in] ULONG Period,
        [out] BOOL* result
    );
    HRESULT CorDeleteTimer(
        [in] HANDLE Timer,
        [in] HANDLE CompletionEvent,
        [out] BOOL* result
    );
    HRESULT CorBindIoCompletionCallback(
        [in] HANDLE fileHandle,
        [in] LPOVERLAPPED_COMPLETION_ROUTINE callback
    );
    HRESULT CorCallOrQueueUserWorkItem(
        [in] LPTHREAD_START_ROUTINE Function,
        [in] PVOID Context,
        [out] BOOL* result
    );
    HRESULT CorSetMaxThreads(
        [in] DWORD MaxWorkerThreads,
        [in] DWORD MaxIOCompletionThreads
    );
    HRESULT CorGetMaxThreads(
        [out] DWORD *MaxWorkerThreads,
        [out] DWORD *MaxIOCompletionThreads
    );
    HRESULT CorGetAvailableThreads(
        [out] DWORD *AvailableWorkerThreads,
        [out] DWORD *AvailableIOCompletionThreads
    );
}

Methods

Method Description

ICorThreadpool::CorRegisterWaitForSingleObject Method

Reserved for internal use only.

ICorThreadpool::CorUnregisterWait Method

Reserved for internal use only.

ICorThreadpool::CorQueueUserWorkItem Method

Reserved for internal use only.

ICorThreadpool::CorCreateTimer Method

Reserved for internal use only.

ICorThreadpool::CorChangeTimer Method

Reserved for internal use only.

ICorThreadpool::CorDeleteTimer Method

Reserved for internal use only.

ICorThreadpool::CorBindIoCompletionCallback Method

Reserved for internal use only.

ICorThreadpool::CorCallOrQueueUserWorkItem Method

Reserved for internal use only.

ICorThreadpool::CorSetMaxThreads Method

Reserved for internal use only.

ICorThreadpool::CorGetMaxThreads Method

Reserved for internal use only.

ICorThreadpool::CorGetAvailableThreads Method

Reserved for internal use only.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 2.0

See Also

Other Resources

Hosting Interfaces