Source code of Windows XP (NT5)
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
1.0 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
  18. CTaskManager:
  19. public ITaskManager
  20. {
  21. private:
  22. // IUnknown
  23. LONG m_cRef;
  24. CTaskManager( void );
  25. ~CTaskManager( void );
  26. STDMETHOD(Init)( void );
  27. static DWORD WINAPI S_BeginTask( LPVOID pParam );
  28. public: // Methods
  29. static HRESULT S_HrCreateInstance( IUnknown ** ppunkOut );
  30. // IUnknown
  31. STDMETHOD(QueryInterface)( REFIID riid, LPVOID *ppv );
  32. STDMETHOD_(ULONG, AddRef)(void);
  33. STDMETHOD_(ULONG, Release)(void);
  34. // ITaskManager
  35. STDMETHOD(CreateTask)( REFIID clsidTaskIn, IUnknown** ppUnkOut );
  36. // ITaskManager
  37. STDMETHOD(SubmitTask)( IDoTask * pTask);
  38. }; // class CTaskManager