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.
 
 
 
 
 
 

27 lines
803 B

#include "stclsid.h"
class CSysTray: public IOleCommandTarget
{
public:
// IUnknown Implementation
HRESULT __stdcall QueryInterface(REFIID iid, void** ppvObject);
ULONG __stdcall AddRef(void);
ULONG __stdcall Release(void);
// IOleCommandTarget Implementation
HRESULT __stdcall QueryStatus(const GUID* pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT* pCmdText);
HRESULT __stdcall Exec(const GUID* pguidCmdGroup, DWORD nCmdID, DWORD nCmdExecOpt, VARIANTARG* pvaIn, VARIANTARG* pvaOut);
CSysTray(BOOL fRunTrayOnConstruct);
~CSysTray();
private:
// Data
long m_cRef;
private:
// Functions
HRESULT CreateSysTrayThread();
static DWORD WINAPI SysTrayThreadProc(void* lpv);
HRESULT DestroySysTrayWindow();
};