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.

46 lines
1.1 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // ActionMgr.h
  7. //
  8. // Description:
  9. // Action Manager implementation.
  10. //
  11. // Maintained By:
  12. // Galen Barbee (GalenB) 22-NOV-1999
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. // CTaskManager
  17. class CTaskManager
  18. : public ITaskManager
  19. {
  20. private:
  21. // IUnknown
  22. LONG m_cRef;
  23. CTaskManager( void );
  24. ~CTaskManager( void );
  25. STDMETHOD( HrInit )( void );
  26. static DWORD WINAPI S_BeginTask( LPVOID pParam );
  27. public: // Methods
  28. static HRESULT S_HrCreateInstance( IUnknown ** ppunkOut );
  29. // IUnknown
  30. STDMETHOD( QueryInterface )( REFIID riidIn, LPVOID * ppvOut );
  31. STDMETHOD_( ULONG, AddRef )( void );
  32. STDMETHOD_( ULONG, Release )( void );
  33. // ITaskManager
  34. STDMETHOD(CreateTask)( REFIID clsidTaskIn, IUnknown** ppUnkOut );
  35. // ITaskManager
  36. STDMETHOD(SubmitTask)( IDoTask * pTask);
  37. }; //*** class CTaskManager