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 |
---|---|
Reserved for internal use only. |
|
Reserved for internal use only. |
|
Reserved for internal use only. |
|
Reserved for internal use only. |
|
Reserved for internal use only. |
|
Reserved for internal use only. |
|
Reserved for internal use only. |
|
Reserved for internal use only. |
|
Reserved for internal use only. |
|
Reserved for internal use only. |
|
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