aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_online/forceUrl.h
blob: 28a3f863cb1284fb4b0c5217ce0e6375195cab3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef NULLOSFT_ONLINEMEDIA_FORCE_URL_HEADER
#define NULLOSFT_ONLINEMEDIA_FORCE_URL_HEADER

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

#include <wtypes.h>

class ForceUrl
{
public:
	ForceUrl();
	~ForceUrl();

public:
	HRESULT Set(UINT serviceId, LPCWSTR pszUrl);
	HRESULT Peek(UINT serviceId, LPWSTR *pszUrl);
	HRESULT Remove(UINT serviceId);

	void FreeString(LPWSTR pszValue);
private:
	UINT id;
	LPWSTR url;
};

#endif //NULLOSFT_ONLINEMEDIA_FORCE_URL_HEADER