ConvertFiberToThread function (winbase.h)

Converts the current fiber into a thread.

Syntax

BOOL ConvertFiberToThread();

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The function releases the resources allocated by the ConvertThreadToFiber function. After calling this function, you cannot call any of the fiber functions from the thread.

To compile an application that uses this function, define _WIN32_WINNT as _WIN32_WINNT_WS03 (0x0502) or later. For more information, see Using the Windows Headers.

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 winbase.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See also

ConvertThreadToFiber

Fibers

Process and Thread Functions