Platform SDK: DLLs, Processes, and Threads

GetCurrentFiber

The GetCurrentFiber macro returns the address of the current fiber.

PVOID GetCurrentFiber(VOID);

Parameters

This macro has no parameters.

Return Values

The return value is 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

  Windows NT/2000: Requires Windows NT 3.51 SP3 or later.
  Windows 95/98: Requires Windows 98.
  Header: Declared in Winnt.h; include Windows.h.

See Also

Processes and Threads Overview, Process and Thread Macros, CreateFiber, ConvertThreadToFiber