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.

58 lines
1.2 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: samplver.h
  4. //
  5. // Copyright (C) 1994-1997 Microsoft Corporation All rights reserved.
  6. //
  7. // Declaration of the implementation of ILocVersion.
  8. //
  9. // Owner: [email protected]
  10. //
  11. //-----------------------------------------------------------------------------
  12. #ifndef SAMPLVER_H
  13. #define SAMPLVER_H
  14. class CLocSamplVersion : public ILocVersion, public CLObject
  15. {
  16. public:
  17. CLocSamplVersion(IUnknown *pParent);
  18. ~CLocSamplVersion();
  19. //
  20. // Standard IUnknown methods
  21. //
  22. STDMETHOD_(ULONG, AddRef)();
  23. STDMETHOD_(ULONG, Release)();
  24. STDMETHOD(QueryInterface)(REFIID iid, LPVOID* ppvObj);
  25. //
  26. // Standard Debugging interfaces
  27. //
  28. STDMETHOD_(void, AssertValidInterface)(THIS) CONST_METHOD;
  29. //
  30. // Implementation for ILocVersion
  31. //
  32. STDMETHOD_(void, GetParserVersion)(DWORD &dwMajor,
  33. DWORD &dwMinor, BOOL &fDebug) const;
  34. //
  35. // CLObject implementation
  36. //
  37. #ifdef _DEBUG
  38. void AssertValid(void) const;
  39. void Dump(CDumpContext &) const;
  40. #endif
  41. private:
  42. //
  43. // Implementation for IUnknown and ILocVersion.
  44. ULONG m_ulRefCount;
  45. IUnknown *m_pParent;
  46. };
  47. #endif