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.

25 lines
558 B

  1. #ifndef _SCHEDULE_H
  2. #define _SCHEDULE_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. // global function for allocating a task scheduler.
  7. // any object that uses it must make sure that its tasks are removed from the queue
  8. // before it exits.
  9. // NOTE: use CoCreateInstance - thread pool removes need for global scheduler
  10. HRESULT SHGetSystemScheduler( LPSHELLTASKSCHEDULER * ppScheduler );
  11. #ifdef DEBUG
  12. VOID SHValidateEmptySystemScheduler(void);
  13. #else
  14. #define SHValidateEmptySystemScheduler()
  15. #endif
  16. #ifdef __cplusplus
  17. };
  18. #endif
  19. #endif