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.

47 lines
866 B

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. bgtask.hxx
  5. Abstract:
  6. Contains back ground task class def
  7. Author:
  8. Richard L Firth (rfirth) 11-Apr-1997
  9. Revision History:
  10. 22-Jun-1998 rfirth
  11. Created
  12. --*/
  13. //
  14. // prototypes
  15. //
  16. BOOL LoadBackgroundTaskMgr(VOID);
  17. VOID UnloadBackgroundTaskMgr(VOID);
  18. DWORD NotifyBackgroundTaskMgr(VOID);
  19. DWORD CreateAndQueueBackgroundWorkItem(LPCSTR);
  20. class BackgroundTaskMgr {
  21. public:
  22. BackgroundTaskMgr();
  23. DWORD DeQueueAndRunBackgroundWorkItem();
  24. DWORD QueueBackgroundWorkItem(CFsm* pFsm);
  25. CFsm* CreateBackgroundFsm(LPCSTR szUrl);
  26. BOOL HasBandwidth();
  27. VOID NotifyFsmDone();
  28. private:
  29. LONG _lActiveFsm;
  30. CPriorityList _bgTaskQueue;
  31. };