File Index Symbol Index

/******************************************************************************** * * * threadpoolapi.h -- ApiSet Contract for api-ms-win-core-threadpool-l1 * * * * Copyright (c) Microsoft Corporation. All rights reserved. * * * ********************************************************************************/
#ifdef _MSC_VER
#pragma once
#endif // _MSC_VER
#ifndef _THREADPOOLAPISET_H_
#define _THREADPOOLAPISET_H_
#include <apiset.h>
#include <apisetcconv.h>
#include <minwindef.h>
#include <minwinbase.h>
#ifdef __cplusplus
extern
"C"
{
#endif
//
// Thread pool API's
//
#pragma region Application Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
typedef
);
#if (_WIN32_WINNT >= 0x0600)
_Must_inspect_result_
PTP_POOL
CreateThreadpool
( );
SetThreadpoolThreadMaximum
( );
BOOL
SetThreadpoolThreadMinimum
( );
BOOL
SetThreadpoolStackInformation
( );
BOOL
QueryThreadpoolStackInformation
( );
CloseThreadpool
( );
_Must_inspect_result_
PTP_CLEANUP_GROUP
CreateThreadpoolCleanupGroup
( );
CloseThreadpoolCleanupGroupMembers
( );
CloseThreadpoolCleanupGroup
( );
SetEventWhenCallbackReturns
( );
ReleaseSemaphoreWhenCallbackReturns
( );
ReleaseMutexWhenCallbackReturns
( );
LeaveCriticalSectionWhenCallbackReturns
( );
FreeLibraryWhenCallbackReturns
( );
BOOL
CallbackMayRunLong
( );
DisassociateCurrentThreadFromCallback
( );
_Must_inspect_result_
BOOL
TrySubmitThreadpoolCallback
( );
_Must_inspect_result_
PTP_WORK
CreateThreadpoolWork
( );
SubmitThreadpoolWork
( );
WaitForThreadpoolWorkCallbacks
( );
CloseThreadpoolWork
( );
_Must_inspect_result_
PTP_TIMER
CreateThreadpoolTimer
( );
SetThreadpoolTimer
( );
BOOL
IsThreadpoolTimerSet
( );
WaitForThreadpoolTimerCallbacks
( );
CloseThreadpoolTimer
( );
_Must_inspect_result_
PTP_WAIT
CreateThreadpoolWait
( );
SetThreadpoolWait
( );
WaitForThreadpoolWaitCallbacks
( );
CloseThreadpoolWait
( );
_Must_inspect_result_
PTP_IO
CreateThreadpoolIo
( );
StartThreadpoolIo
( );
CancelThreadpoolIo
( );
WaitForThreadpoolIoCallbacks
( );
CloseThreadpoolIo
( );
BOOL
SetThreadpoolTimerEx
( );
BOOL
SetThreadpoolWaitEx
( );
#endif // _WIN32_WINNT >= 0x0600
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion #pragma region Desktop Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
#if (_WIN32_WINNT >= 0x0600)
#endif // _WIN32_WINNT >= 0x0600
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion
#ifdef __cplusplus
}
#endif
#endif // _THREADPOOLAPISET_H_