aboutsummaryrefslogtreecommitdiff
path: root/Src/omBrowser/browserWndRecord.h
blob: 6d5ce699b80a908316194be52ed74fef5f0e6b2c (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
28
29
30
31
32
33
#ifndef NULLSOFT_WINAMP_OMBROWSER_WINDOW_RECORD_HEADER
#define NULLSOFT_WINAMP_OMBROWSER_WINDOW_RECORD_HEADER

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

#include <wtypes.h>

class OmBrowserWndRecord
{
protected:
	OmBrowserWndRecord(HWND hwnd, const GUID *type);
	~OmBrowserWndRecord();
public:
	static HRESULT CreateInstance(HWND hwnd, const GUID *type, OmBrowserWndRecord **instance);

public:
	ULONG AddRef();
	ULONG Release();

	HWND GetHwnd();
	HRESULT GetType(GUID *windowType);
	HRESULT IsEqualType(const GUID *windowType);

protected:
	ULONG ref;
	HWND hwnd;
	GUID type;
};


#endif //NULLSOFT_WINAMP_OMBROWSER_WINDOW_RECORD_HEADER