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

  1. #include "stclsid.h"
  2. class CSysTray: public IOleCommandTarget
  3. {
  4. public:
  5. // IUnknown Implementation
  6. HRESULT __stdcall QueryInterface(REFIID iid, void** ppvObject);
  7. ULONG __stdcall AddRef(void);
  8. ULONG __stdcall Release(void);
  9. // IOleCommandTarget Implementation
  10. HRESULT __stdcall QueryStatus(const GUID* pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT* pCmdText);
  11. HRESULT __stdcall Exec(const GUID* pguidCmdGroup, DWORD nCmdID, DWORD nCmdExecOpt, VARIANTARG* pvaIn, VARIANTARG* pvaOut);
  12. CSysTray(BOOL fRunTrayOnConstruct);
  13. ~CSysTray();
  14. private:
  15. // Data
  16. long m_cRef;
  17. private:
  18. // Functions
  19. HRESULT CreateSysTrayThread();
  20. static DWORD WINAPI SysTrayThreadProc(void* lpv);
  21. HRESULT DestroySysTrayWindow();
  22. };