Leaked source code of windows server 2003
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

  1. #ifndef _OBJCLSID_H_
  2. #define _OBJCLSID_H_
  3. class CObjectCLSID : public IPersist
  4. {
  5. public:
  6. CObjectCLSID(const CLSID * pClsid) {_clsid = *pClsid;};
  7. virtual ~CObjectCLSID() {}
  8. //*** IUnknown ****
  9. // (client must provide!)
  10. //*** IPersist ***
  11. STDMETHOD(GetClassID)(IN CLSID *pClassID)
  12. {
  13. HRESULT hr = E_INVALIDARG;
  14. if (pClassID)
  15. {
  16. *pClassID = _clsid;
  17. hr = S_OK;
  18. }
  19. return hr;
  20. }
  21. protected:
  22. CLSID _clsid;
  23. };
  24. #endif // _OBJCLSID_H_