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.

88 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. icasync.hxx
  5. Abstract:
  6. Contains types, prototypes, manifests for async thread
  7. Author:
  8. Richard L Firth (rfirth) 04-Mar-1998
  9. Revision History:
  10. 04-Mar-1998 rfirth
  11. Created
  12. --*/
  13. //
  14. // manifests
  15. //
  16. #define TP_NO_TIMEOUT 0xffffffff
  17. #define TP_NO_PRIORITY_CHANGE (-1)
  18. //
  19. // prototypes
  20. //
  21. #if defined(__cplusplus)
  22. extern "C" {
  23. #endif
  24. DWORD
  25. InitializeAsyncSupport(
  26. VOID
  27. );
  28. VOID
  29. TerminateAsyncSupport(
  30. VOID
  31. );
  32. //DWORD
  33. //QueueWorkItem(
  34. // IN CFsm * pWorkItem
  35. // );
  36. //
  37. DWORD
  38. QueueSocketWorkItem(
  39. IN CFsm * WorkItem,
  40. IN SOCKET Socket
  41. );
  42. DWORD
  43. BlockWorkItem(
  44. IN CFsm * WorkItem,
  45. IN DWORD_PTR dwBlockId,
  46. IN DWORD dwTimeout = TP_NO_TIMEOUT
  47. );
  48. DWORD
  49. CheckForBlockedWorkItems(
  50. IN DWORD dwCount,
  51. IN DWORD_PTR dwBlockId
  52. );
  53. DWORD
  54. UnblockWorkItems(
  55. IN DWORD dwCount,
  56. IN DWORD_PTR dwBlockId,
  57. IN DWORD dwError,
  58. IN LONG lPriority = TP_NO_PRIORITY_CHANGE
  59. );
  60. VOID
  61. InterruptSelect(
  62. VOID
  63. );
  64. #if defined(__cplusplus)
  65. }
  66. #endif