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.

108 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. bowqueue.h
  5. Abstract:
  6. Private header file for the NT Browser service. This file describes
  7. the bowser thread queue interfaces.
  8. Author:
  9. Larry Osterman (larryo) 15-Feb-1991
  10. Revision History:
  11. --*/
  12. #ifndef _BOWQUEUE_
  13. #define _BOWQUEUE_
  14. typedef
  15. VOID
  16. (*PBROWSER_WORKER_ROUTINE) (
  17. IN PVOID Parameter
  18. );
  19. typedef struct _WORKER_ITEM {
  20. LIST_ENTRY List;
  21. PBROWSER_WORKER_ROUTINE WorkerRoutine;
  22. PVOID Parameter;
  23. BOOLEAN Inserted;
  24. } WORKER_ITEM, *PWORKER_ITEM;
  25. typedef struct _BROWSER_TIMER {
  26. HANDLE TimerHandle;
  27. WORKER_ITEM WorkItem;
  28. } BROWSER_TIMER, *PBROWSER_TIMER;
  29. VOID
  30. BrWorkerThread(
  31. IN PVOID Context
  32. );
  33. VOID
  34. BrQueueWorkItem(
  35. IN PWORKER_ITEM WorkItem
  36. );
  37. NET_API_STATUS
  38. BrWorkerInitialization(
  39. VOID
  40. );
  41. VOID
  42. BrWorkerKillThreads(
  43. VOID
  44. );
  45. VOID
  46. BrWorkerCreateThread(
  47. ULONG NetworkCount
  48. );
  49. NET_API_STATUS
  50. BrWorkerTermination (
  51. VOID
  52. );
  53. NET_API_STATUS
  54. BrSetTimer(
  55. IN PBROWSER_TIMER Timer,
  56. IN ULONG MilliSecondsToExpire,
  57. IN PBROWSER_WORKER_ROUTINE WorkerFunction,
  58. IN PVOID Context
  59. );
  60. NET_API_STATUS
  61. BrCancelTimer(
  62. IN PBROWSER_TIMER Timer
  63. );
  64. NET_API_STATUS
  65. BrDestroyTimer(
  66. IN PBROWSER_TIMER Timer
  67. );
  68. NET_API_STATUS
  69. BrCreateTimer(
  70. IN PBROWSER_TIMER Timer
  71. );
  72. VOID
  73. BrInitializeWorkItem(
  74. IN PWORKER_ITEM Item,
  75. IN PBROWSER_WORKER_ROUTINE Routine,
  76. IN PVOID Context);
  77. #endif // ifdef _BOWQUEUE_