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.

95 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1991-1996 Microsoft Corporation
  3. Module Name:
  4. worker.h
  5. Abstract:
  6. This file describes the netlogon thread queue interfaces.
  7. Author:
  8. Larry Osterman (larryo) 15-Feb-1991
  9. Revision History:
  10. --*/
  11. #ifndef _WORKER_H_
  12. #define _WORKER_H_
  13. typedef
  14. VOID
  15. (*PNETLOGON_WORKER_ROUTINE) (
  16. IN PVOID Parameter
  17. );
  18. typedef struct _WORKER_ITEM {
  19. LIST_ENTRY List;
  20. PNETLOGON_WORKER_ROUTINE WorkerRoutine;
  21. PVOID Parameter;
  22. BOOLEAN Inserted;
  23. } WORKER_ITEM, *PWORKER_ITEM;
  24. #ifdef notdef
  25. typedef struct _BROWSER_TIMER {
  26. HANDLE TimerHandle;
  27. WORKER_ITEM WorkItem;
  28. } BROWSER_TIMER, *PBROWSER_TIMER;
  29. #endif // notdef
  30. BOOL
  31. NlQueueWorkItem(
  32. IN PWORKER_ITEM WorkItem,
  33. IN BOOL InsertNewItem,
  34. IN BOOL HighPriority
  35. );
  36. NET_API_STATUS
  37. NlWorkerInitialization(
  38. VOID
  39. );
  40. VOID
  41. NlWorkerTermination (
  42. VOID
  43. );
  44. #ifdef notdef
  45. NET_API_STATUS
  46. BrSetTimer(
  47. IN PBROWSER_TIMER Timer,
  48. IN ULONG MilliSecondsToExpire,
  49. IN PBROWSER_WORKER_ROUTINE WorkerFunction,
  50. IN PVOID Context
  51. );
  52. NET_API_STATUS
  53. BrCancelTimer(
  54. IN PBROWSER_TIMER Timer
  55. );
  56. NET_API_STATUS
  57. BrDestroyTimer(
  58. IN PBROWSER_TIMER Timer
  59. );
  60. NET_API_STATUS
  61. BrCreateTimer(
  62. IN PBROWSER_TIMER Timer
  63. );
  64. #endif // notdef
  65. #define NlInitializeWorkItem(Item, Routine, Context) \
  66. (Item)->WorkerRoutine = (Routine); \
  67. (Item)->Parameter = (Context); \
  68. (Item)->Inserted = FALSE;
  69. #endif // ifdef _WORKER_H_