mirror of https://github.com/tongzx/nt5src
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
533 B
25 lines
533 B
#ifndef _SCHEDULE_H
|
|
#define _SCHEDULE_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// global function for allocating a task scheduler.
|
|
// any object that uses it must make sure that its tasks are removed from the queue
|
|
// before it exits.
|
|
// NOTE: use CoCreateInstance - thread pool removes need for global scheduler
|
|
HRESULT SHGetSystemScheduler( LPSHELLTASKSCHEDULER * ppScheduler );
|
|
|
|
|
|
#ifdef DEBUG
|
|
VOID SHValidateEmptySystemScheduler(void);
|
|
#else
|
|
#define SHValidateEmptySystemScheduler()
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
#endif
|
|
|