You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
560 B
31 lines
560 B
#ifndef _OBJCLSID_H_
|
|
#define _OBJCLSID_H_
|
|
|
|
class CObjectCLSID : public IPersist
|
|
{
|
|
public:
|
|
CObjectCLSID(const CLSID * pClsid) {_clsid = *pClsid;};
|
|
virtual ~CObjectCLSID() {}
|
|
|
|
//*** IUnknown ****
|
|
// (client must provide!)
|
|
|
|
//*** IPersist ***
|
|
STDMETHOD(GetClassID)(IN CLSID *pClassID)
|
|
{
|
|
HRESULT hr = E_INVALIDARG;
|
|
|
|
if (pClassID)
|
|
{
|
|
*pClassID = _clsid;
|
|
hr = S_OK;
|
|
}
|
|
|
|
return hr;
|
|
}
|
|
|
|
protected:
|
|
CLSID _clsid;
|
|
};
|
|
|
|
#endif // _OBJCLSID_H_
|