GetCurrentFiber function (winnt.h)

Retrieves the address of the current fiber.

Syntax

PVOID GetCurrentFiber();

Return value

The macro returns the address of the currently running fiber.

Remarks

The CreateFiber and ConvertThreadToFiber functions return the fiber address when the fiber is created. The GetCurrentFiber macro allows you to retrieve the address at any other time.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header winnt.h (include Windows.h)

See also

ConvertThreadToFiber

CreateFiber

Fibers