ReactOS  0.4.15-dev-2144-g2282205
CShellTaskScheduler.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS browseui
3  * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
4  * PURPOSE: IShellTaskScheduler implementation
5  * COPYRIGHT: Copyright 2020 Oleg Dubinskiy (oleg.dubinskij2013@yandex.ua)
6  */
7 
8 #pragma once
9 
11  public CComCoClass<CShellTaskScheduler, &CLSID_ShellTaskScheduler>,
12  public CComObjectRootEx<CComMultiThreadModelNoCS>,
13  public IShellTaskScheduler
14 {
15 private:
16 public:
19 
20  // *** IShellTaskScheduler methods ***
21  STDMETHODIMP AddTask(IRunnableTask *pTask, REFGUID rtoid, DWORD_PTR lParam, DWORD dwPriority);
22  STDMETHODIMP RemoveTasks(REFGUID rtoid, DWORD_PTR lParam, BOOL fWaitIfRunning);
24  STDMETHODIMP Status(DWORD dwReleaseStatus, DWORD dwThreadTimeout);
25 
26 public:
27 
30 
32 
34  COM_INTERFACE_ENTRY_IID(IID_IShellTaskScheduler, IShellTaskScheduler)
35  END_COM_MAP()
36 };
Definition: scsiwmi.h:51
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:611
STDMETHODIMP Status(DWORD dwReleaseStatus, DWORD dwThreadTimeout)
unsigned int BOOL
Definition: ntddk_ex.h:94
virtual UINT STDMETHODCALLTYPE CountTasks(REFGUID rtoid)
#define STDMETHODIMP
Definition: basetyps.h:43
#define IDR_SHELLTASKSCHEDULER
Definition: resource.h:111
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:541
#define STDMETHODCALLTYPE
Definition: bdasup.h:9
unsigned long DWORD
Definition: ntddk_ex.h:95
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:605
uint32_t DWORD_PTR
Definition: typedefs.h:65
STDMETHODIMP RemoveTasks(REFGUID rtoid, DWORD_PTR lParam, BOOL fWaitIfRunning)
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:561
unsigned int UINT
Definition: ndis.h:50
STDMETHODIMP AddTask(IRunnableTask *pTask, REFGUID rtoid, DWORD_PTR lParam, DWORD dwPriority)
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:639
#define END_COM_MAP()
Definition: atlcom.h:552
LPARAM lParam
Definition: combotst.c:139