1
0

forceUrl.h 484 B

123456789101112131415161718192021222324252627
  1. #ifndef NULLOSFT_ONLINEMEDIA_FORCE_URL_HEADER
  2. #define NULLOSFT_ONLINEMEDIA_FORCE_URL_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. class ForceUrl
  8. {
  9. public:
  10. ForceUrl();
  11. ~ForceUrl();
  12. public:
  13. HRESULT Set(UINT serviceId, LPCWSTR pszUrl);
  14. HRESULT Peek(UINT serviceId, LPWSTR *pszUrl);
  15. HRESULT Remove(UINT serviceId);
  16. void FreeString(LPWSTR pszValue);
  17. private:
  18. UINT id;
  19. LPWSTR url;
  20. };
  21. #endif //NULLOSFT_ONLINEMEDIA_FORCE_URL_HEADER