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.

39 lines
1.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1998.
  5. //
  6. // File: PidCvt.cxx
  7. //
  8. // Contents: CPidConverter -- Convert FULLPROPSPEC to PROPID
  9. //
  10. // History: 29-Dec-97 KyleP Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #include <pch.cxx>
  14. #pragma hdrstop
  15. #include <pidcvt.hxx>
  16. //+-------------------------------------------------------------------------
  17. //
  18. // Member: CPidConverter::FPSToPROPID, public
  19. //
  20. // Synopsis: Converts FULLPROPSPEC to PROPID
  21. //
  22. // Arguments: [fps] -- FULLPROPSPEC property specification
  23. // [pid] -- PROPID written here on successful execution
  24. //
  25. // Returns: Status code (from framework client)
  26. //
  27. // History: 29-Dec-1997 KyleP Created
  28. //
  29. //--------------------------------------------------------------------------
  30. SCODE CPidConverter::FPSToPROPID( CFullPropSpec const & fps, PROPID & pid )
  31. {
  32. return _xPropMapper->PropertyToPropid( fps.CastToStruct(), // FULLPROPSPEC
  33. TRUE, // create
  34. &pid ); // Pid returned here
  35. }