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.

50 lines
1.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 2000.
  5. //
  6. // File: PValXpr.hxx
  7. //
  8. // Contents: Simple property value expression.
  9. //
  10. // Functions:
  11. //
  12. // History: 08-Sep-92 KyleP Created/Moved from IDSMgr\NewQuery
  13. //
  14. //--------------------------------------------------------------------------
  15. #pragma once
  16. #include <objcur.hxx>
  17. //+-------------------------------------------------------------------------
  18. //
  19. // Class: CXprPropertyValue (pv)
  20. //
  21. // Purpose: Used to extract the value of a property
  22. //
  23. // History: 11-Oct-91 KyleP Created
  24. //
  25. //--------------------------------------------------------------------------
  26. class CXprPropertyValue : public CValueXpr
  27. {
  28. public:
  29. CXprPropertyValue( PROPID pid );
  30. virtual ~CXprPropertyValue();
  31. virtual GetValueResult GetValue( CRetriever & obj,
  32. PROPVARIANT * p,
  33. ULONG * pcb );
  34. virtual ULONG ValueType() const;
  35. PROPID Pid() const { return _pid; }
  36. private:
  37. PROPID _pid;
  38. };