mirror of https://github.com/tongzx/nt5src
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
39 lines
1.2 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1998.
|
|
//
|
|
// File: PidCvt.cxx
|
|
//
|
|
// Contents: CPidConverter -- Convert FULLPROPSPEC to PROPID
|
|
//
|
|
// History: 29-Dec-97 KyleP Created
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
#include <pch.cxx>
|
|
#pragma hdrstop
|
|
|
|
#include <pidcvt.hxx>
|
|
|
|
//+-------------------------------------------------------------------------
|
|
//
|
|
// Member: CPidConverter::FPSToPROPID, public
|
|
//
|
|
// Synopsis: Converts FULLPROPSPEC to PROPID
|
|
//
|
|
// Arguments: [fps] -- FULLPROPSPEC property specification
|
|
// [pid] -- PROPID written here on successful execution
|
|
//
|
|
// Returns: Status code (from framework client)
|
|
//
|
|
// History: 29-Dec-1997 KyleP Created
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
SCODE CPidConverter::FPSToPROPID( CFullPropSpec const & fps, PROPID & pid )
|
|
{
|
|
return _xPropMapper->PropertyToPropid( fps.CastToStruct(), // FULLPROPSPEC
|
|
TRUE, // create
|
|
&pid ); // Pid returned here
|
|
}
|