You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
1.4 KiB
90 lines
1.4 KiB
//
|
|
// W95FIBER.H
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 1996
|
|
//
|
|
// Public definitions for the Windows 95 fiber library.
|
|
//
|
|
|
|
#ifndef _W95FIBER_
|
|
#define _W95FIBER_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef VOID (WINAPI *PFIBER_START_ROUTINE)(
|
|
LPVOID lpFiberParameter
|
|
);
|
|
typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE;
|
|
|
|
#ifdef _X86_
|
|
|
|
LPVOID
|
|
WINAPI
|
|
FbrCreateFiber(
|
|
DWORD dwStackSize,
|
|
LPFIBER_START_ROUTINE lpStartAddress,
|
|
LPVOID lpParameter
|
|
);
|
|
|
|
VOID
|
|
WINAPI
|
|
FbrDeleteFiber(
|
|
LPVOID lpFiber
|
|
);
|
|
|
|
LPVOID
|
|
WINAPI
|
|
FbrConvertThreadToFiber(
|
|
LPVOID lpParameter
|
|
);
|
|
|
|
VOID
|
|
WINAPI
|
|
FbrSwitchToFiber(
|
|
LPVOID lpFiber
|
|
);
|
|
|
|
LPVOID
|
|
WINAPI
|
|
FbrGetCurrentFiber(
|
|
VOID
|
|
);
|
|
|
|
LPVOID
|
|
WINAPI
|
|
FbrGetFiberData(
|
|
VOID
|
|
);
|
|
|
|
BOOL
|
|
WINAPI
|
|
FbrAttachToBase(
|
|
VOID
|
|
);
|
|
|
|
VOID
|
|
WINAPI
|
|
FbrDetachFromBase(
|
|
VOID
|
|
);
|
|
|
|
#else
|
|
|
|
#define FbrCreateFiber CreateFiber
|
|
#define FbrDeleteFiber DeleteFiber
|
|
#define FbrConvertThreadToFiber ConvertThreadToFiber
|
|
#define FbrSwitchToFiber SwitchToFiber
|
|
#define FbrGetCurrentFiber() GetCurrentFiber()
|
|
#define FbrGetFiberData() GetFiberData()
|
|
#define FbrAttachToBase() (g_dwPlatformID != VER_PLATFORM_WIN32_WINDOWS)
|
|
#define FbrDetachFromBase()
|
|
|
|
#endif // _X86_
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // _W95FIBER_
|