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.

31 lines
818 B

  1. #ifndef _LogonWait_
  2. #define _LogonWait_
  3. #include "ExternalProcess.h"
  4. #include "KernelResources.h"
  5. class ILogonExternalProcess : public IExternalProcess
  6. {
  7. public:
  8. virtual NTSTATUS LogonRestart (void) = 0;
  9. };
  10. class CLogonWait
  11. {
  12. public:
  13. CLogonWait (void);
  14. virtual ~CLogonWait (void);
  15. NTSTATUS Cancel (void);
  16. NTSTATUS Register (HANDLE hObject, ILogonExternalProcess *pLogonExternalProcess);
  17. private:
  18. void ObjectSignaled (void);
  19. static void CALLBACK CB_ObjectSignaled (void *pV, BOOLEAN fTimedOut);
  20. private:
  21. HANDLE _hWait;
  22. CEvent _event;
  23. ILogonExternalProcess *_pLogonExternalProcess;
  24. };
  25. #endif /* _LogonWait_ */