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.

55 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1998.
  5. //
  6. // File: PidCvt.hxx
  7. //
  8. // Contents: CPidConverter -- Convert FULLPROPSPEC to PROPID
  9. //
  10. // History: 29-Dec-97 KyleP Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #include <pidmap.hxx>
  14. //+-------------------------------------------------------------------------
  15. //
  16. // Class: CPidConverter
  17. //
  18. // Purpose: FULLPROPSPEC --> PROPID mapper for pidmap object
  19. //
  20. // History: 29-Dec-97 KyleP Created
  21. //
  22. //--------------------------------------------------------------------------
  23. class CPidConverter : public PPidConverter
  24. {
  25. public:
  26. inline CPidConverter( IPropertyMapper * pPropMapper );
  27. virtual SCODE FPSToPROPID( CFullPropSpec const & fps, PROPID & pid );
  28. private:
  29. XInterface<IPropertyMapper> _xPropMapper;
  30. };
  31. //+-------------------------------------------------------------------------
  32. //
  33. // Member: CPidConverter::CPidConverter, public
  34. //
  35. // Synopsis: Constructor
  36. //
  37. // Arguments: [pPropMapper] -- Property mapper used to perform xlation
  38. //
  39. // History: 29-Dec-1997 KyleP Created
  40. //
  41. //--------------------------------------------------------------------------
  42. inline CPidConverter::CPidConverter( IPropertyMapper * pPropMapper )
  43. : _xPropMapper( pPropMapper )
  44. {
  45. _xPropMapper->AddRef();
  46. }