navigation.h 846 B

123456789101112131415161718192021222324252627
  1. #ifndef NULLSOFT_NOWPLAYING_PLUGIN_NAVIGATION_HEADER
  2. #define NULLSOFT_NOWPLAYING_PLUGIN_NAVIGATION_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. typedef LPVOID HNAVITEM;
  8. class OmService;
  9. BOOL Navigation_Initialize(void);
  10. BOOL Navigation_ProcessMessage(INT msg, INT_PTR param1, INT_PTR param2, INT_PTR param3, INT_PTR *result);
  11. #define NAVFLAG_NORMAL 0x0000
  12. #define NAVFLAG_ENSUREITEMVISIBLE 0x0001
  13. #define NAVFLAG_ENSUREMLVISIBLE 0x0002
  14. #define NAVFLAG_FORCEACTIVE 0x0004
  15. HRESULT Navigation_ShowService(UINT serviceId, LPCWSTR pszUrl, UINT navFlags);
  16. HNAVITEM Navigation_FindService(UINT serviceId, OmService **serviceOut);
  17. HNAVITEM Navigation_GetActive(OmService **serviceOut);
  18. HWND Navigation_GetActiveView(OmService **serviceOut);
  19. #endif //NULLSOFT_NOWPLAYING_PLUGIN_NAVIGATION_HEADER