ReactOS  0.4.13-dev-242-g611e6d7
lanstatusui.h
Go to the documentation of this file.
1 
4 // IID B722BCCB-4E68-101B-A2BC-00AA00404770
5 
6 #define WM_SHOWSTATUSDLG (WM_USER+10)
7 
8 typedef struct tagNotificationItem
9 {
16 
17 typedef struct
18 {
20  HWND hwndStatusDlg; /* LanStatusDlg window */
21  HWND hwndDlg; /* status dialog window */
33 
34 class CLanStatus:
35  public CComCoClass<CLanStatus, &CLSID_ConnectionTray>,
36  public CComObjectRootEx<CComMultiThreadModelNoCS>,
37  public IOleCommandTarget
38 {
39  public:
40  CLanStatus();
41 
42  // IOleCommandTarget
43  virtual HRESULT WINAPI QueryStatus(const GUID *pguidCmdGroup, ULONG cCmds, OLECMD *prgCmds, OLECMDTEXT *pCmdText);
44  virtual HRESULT WINAPI Exec(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut);
45 
46  private:
48  HRESULT ShowStatusDialogByCLSID(const GUID *pguidCmdGroup);
49 
50  CComPtr<INetConnectionManager> m_lpNetMan;
52 
53  public:
55  DECLARE_CENTRAL_INSTANCE_NOT_AGGREGATABLE(CLanStatus)
57 
59  COM_INTERFACE_ENTRY_IID(IID_IOleCommandTarget, IOleCommandTarget)
60  END_COM_MAP()
61 
62 };
NOTIFICATION_ITEM * m_pHead
Definition: lanstatusui.h:51
INetConnection * pNet
Definition: lanstatusui.h:19
INetConnection * pNet
Definition: lanstatusui.h:14
virtual HRESULT WINAPI Exec(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
#define DECLARE_NO_REGISTRY()
Definition: atlcom.h:599
CComPtr< INetConnectionManager > m_lpNetMan
Definition: lanstatusui.h:50
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:541
LONG HRESULT
Definition: typedefs.h:77
#define WINAPI
Definition: msvc.h:8
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
struct tagNotificationItem NOTIFICATION_ITEM
virtual HRESULT WINAPI QueryStatus(const GUID *pguidCmdGroup, ULONG cCmds, OLECMD *prgCmds, OLECMDTEXT *pCmdText)
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:561
unsigned int UINT
Definition: ndis.h:50
HRESULT ShowStatusDialogByCLSID(const GUID *pguidCmdGroup)
HRESULT InitializeNetTaskbarNotifications()
struct tagNotificationItem * pNext
Definition: lanstatusui.h:10
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:639
unsigned int ULONG
Definition: retypes.h:1
#define END_COM_MAP()
Definition: atlcom.h:552