GetCurrentFiber function

Retrieves the address of the current fiber.

Syntax

PVOID GetCurrentFiber(

);

Parameters

This function has no parameters.

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

   
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