PFLS_CALLBACK_FUNCTION callback function (winnt.h)
An application-defined function. If the FLS slot is in use, FlsCallback is called on fiber deletion, thread exit, and when an FLS index is freed. Specify this function when calling the FlsAlloc function. The PFLS_CALLBACK_FUNCTION type defines a pointer to this callback function. FlsCallback is a placeholder for the application-defined function name.
Syntax
PFLS_CALLBACK_FUNCTION PflsCallbackFunction;
void PflsCallbackFunction(
[in] PVOID lpFlsData
)
{...}
Parameters
[in] lpFlsData
The value stored in the FLS slot for the calling fiber.
Return value
None
Remarks
Each FLS index has an associated FlsCallback function. The callback function can be used for any purpose, but it is intended to be used primarily to free memory.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2003 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | winnt.h |