Leaked source code of windows server 2003
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

  1. //
  2. // W95FIBER.H
  3. //
  4. // Copyright (C) Microsoft Corporation, 1996
  5. //
  6. // Public definitions for the Windows 95 fiber library.
  7. //
  8. #ifndef _W95FIBER_
  9. #define _W95FIBER_
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. typedef VOID (WINAPI *PFIBER_START_ROUTINE)(
  14. LPVOID lpFiberParameter
  15. );
  16. typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE;
  17. #ifdef _X86_
  18. LPVOID
  19. WINAPI
  20. FbrCreateFiber(
  21. DWORD dwStackSize,
  22. LPFIBER_START_ROUTINE lpStartAddress,
  23. LPVOID lpParameter
  24. );
  25. VOID
  26. WINAPI
  27. FbrDeleteFiber(
  28. LPVOID lpFiber
  29. );
  30. LPVOID
  31. WINAPI
  32. FbrConvertThreadToFiber(
  33. LPVOID lpParameter
  34. );
  35. VOID
  36. WINAPI
  37. FbrSwitchToFiber(
  38. LPVOID lpFiber
  39. );
  40. LPVOID
  41. WINAPI
  42. FbrGetCurrentFiber(
  43. VOID
  44. );
  45. LPVOID
  46. WINAPI
  47. FbrGetFiberData(
  48. VOID
  49. );
  50. BOOL
  51. WINAPI
  52. FbrAttachToBase(
  53. VOID
  54. );
  55. VOID
  56. WINAPI
  57. FbrDetachFromBase(
  58. VOID
  59. );
  60. #else
  61. #define FbrCreateFiber CreateFiber
  62. #define FbrDeleteFiber DeleteFiber
  63. #define FbrConvertThreadToFiber ConvertThreadToFiber
  64. #define FbrSwitchToFiber SwitchToFiber
  65. #define FbrGetCurrentFiber() GetCurrentFiber()
  66. #define FbrGetFiberData() GetFiberData()
  67. #define FbrAttachToBase() (g_dwPlatformID != VER_PLATFORM_WIN32_WINDOWS)
  68. #define FbrDetachFromBase()
  69. #endif // _X86_
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73. #endif // _W95FIBER_