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.

36 lines
973 B

  1. #ifndef _DESKTRAY_H_
  2. #define _DESKTRAY_H_
  3. #undef INTERFACE
  4. #define INTERFACE IDeskTray
  5. #ifdef __cplusplus
  6. extern "C" { /* Assume C declarations for C++ */
  7. #endif /* __cplusplus */
  8. DECLARE_INTERFACE_(IDeskTray, IUnknown)
  9. {
  10. // *** IUnknown methods ***
  11. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
  12. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  13. STDMETHOD_(ULONG,Release) (THIS) PURE;
  14. // *** IDeskTray methods ***
  15. STDMETHOD_(UINT, AppBarGetState)(THIS) PURE;
  16. STDMETHOD(GetTrayWindow)(THIS_ HWND* phwndTray) PURE;
  17. STDMETHOD(SetDesktopWindow)(THIS_ HWND hwndDesktop) PURE;
  18. // WARNING! BEFORE CALLING THE SetVar METHOD YOU MUST DETECT
  19. // THE EXPLORER VERSION BECAUSE IE 4.00 WILL CRASH IF YOU TRY
  20. // TO CALL IT
  21. STDMETHOD(SetVar)(THIS_ int var, DWORD value) PURE;
  22. };
  23. #define SVTRAY_EXITEXPLORER 0 // g_fExitExplorer
  24. #ifdef __cplusplus
  25. }
  26. #endif /* __cplusplus */
  27. #endif // _DESKTRAY_H_