Source code of Windows XP (NT5)
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.

33 lines
1.0 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1996 **
  4. //*********************************************************************
  5. class CSampleObtainRating : public IObtainRating
  6. {
  7. private:
  8. UINT m_cRef;
  9. public:
  10. CSampleObtainRating();
  11. ~CSampleObtainRating();
  12. STDMETHOD(QueryInterface) (THIS_ REFIID riid, void **ppvObj);
  13. STDMETHOD_(ULONG,AddRef) (THIS);
  14. STDMETHOD_(ULONG,Release) (THIS);
  15. STDMETHOD(ObtainRating) (THIS_ LPCTSTR pszTargetUrl, HANDLE hAbortEvent,
  16. IMalloc *pAllocator, LPSTR *ppRatingOut);
  17. STDMETHOD_(ULONG,GetSortOrder) (THIS);
  18. };
  19. class CSampleClassFactory : public IClassFactory
  20. {
  21. public:
  22. STDMETHODIMP QueryInterface(REFIID riid, void **ppv);
  23. STDMETHODIMP_(ULONG) AddRef(void);
  24. STDMETHODIMP_(ULONG) Release(void);
  25. STDMETHODIMP CreateInstance(IUnknown *pUnkOuter, REFIID riid, void **ppvObject);
  26. STDMETHODIMP LockServer(BOOL fLock);
  27. };