1 /*
2 	vfdshcfact.h
3 
4 	Virtual Floppy Drive for Windows
5 	Driver control library
6 	shell extension COM class-factory class header
7 
8 	Copyright (c) 2003-2005 Ken Kato
9 */
10 
11 #ifndef _VFDSHCFACT_H_
12 #define _VFDSHCFACT_H_
13 
14 //
15 //	CVfdFactory
16 //	class factory class to create the COM shell extension object
17 //
18 class CVfdFactory : public IClassFactory
19 {
20 protected:
21 	ULONG	m_cRefCnt;		//	Reference count to the object
22 
23 public:
24 	//	Constructor
25 	CVfdFactory();
26 
27 	//	Destructor
28 	~CVfdFactory();
29 
30 	//	IUnknown inheritance
31 	STDMETHODIMP QueryInterface(REFIID, LPVOID *);
32 	STDMETHODIMP_(ULONG) AddRef();
33 	STDMETHODIMP_(ULONG) Release();
34 
35 	//	IClassFactory inheritance
36 	STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID *);
37 	STDMETHODIMP LockServer(BOOL);
38 };
39 
40 typedef CVfdFactory *LPCVFDFACTORY;
41 
42 #endif	// _VFDSHCFACT_H_
43