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.

57 lines
1.7 KiB

  1. #ifndef __COMMON_H__
  2. #define __COMMON_H__
  3. #include "clsobj.h"
  4. // For use with VC6
  5. #pragma warning(4:4242) //'initializing' : conversion from 'unsigned int' to 'unsigned short', possible loss of data
  6. #define NO_CFVTBL
  7. #include <cfdefs.h>
  8. #include <exdispid.h>
  9. #include <htiframe.h>
  10. #include <mshtmhst.h>
  11. #include <brutil.h>
  12. #include "ids.h"
  13. #define EnterModeless() AddRef() // Used for selfref'ing
  14. #define ExitModeless() Release()
  15. #define SID_SDropBlocker CLSID_SearchBand
  16. #define DLL_IS_UNICODE (sizeof(TCHAR) == sizeof(WCHAR))
  17. #define LoadMenuPopup(id) SHLoadMenuPopup(MLGetHinst(), id)
  18. #define MAX_TOOLTIP_STRING 80
  19. #define REG_SUBKEY_FAVORITESA "\\MenuOrder\\Favorites"
  20. #define REG_SUBKEY_FAVORITES TEXT(REG_SUBKEY_FAVORITESA)
  21. // Command group for private communication with CITBar
  22. // 67077B95-4F9D-11D0-B884-00AA00B60104
  23. const GUID CGID_PrivCITCommands = { 0x67077B95L, 0x4F9D, 0x11D0, 0xB8, 0x84, 0x00, 0xAA, 0x00, 0xB6, 0x01, 0x04 };
  24. // IBandNavigate
  25. // band needs to navigate its UI to a specific pidl.
  26. #undef INTERFACE
  27. #define INTERFACE IBandNavigate
  28. DECLARE_INTERFACE_(IBandNavigate, IUnknown)
  29. {
  30. // *** IUnknown methods ***
  31. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *ppv) PURE;
  32. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  33. STDMETHOD_(ULONG,Release)(THIS) PURE;
  34. // *** IBandNavigate methods ***
  35. STDMETHOD(Select)(THIS_ LPCITEMIDLIST pidl) PURE;
  36. } ;
  37. #define TF_SHDREF TF_MENUBAND
  38. #define TF_BAND TF_MENUBAND // Bands (ISF Band, etc)
  39. #define DF_GETMSGHOOK 0x00001000 // GetMessageFilter
  40. #define DF_TRANSACCELIO 0x00002000 // GetMessageFilter
  41. #define THID_TOOLBARACTIVATED 6
  42. #endif // __COMMON_H__