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

//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1998.
//
// File: PidCvt.hxx
//
// Contents: CPidConverter -- Convert FULLPROPSPEC to PROPID
//
// History: 29-Dec-97 KyleP Created
//
//--------------------------------------------------------------------------
#include <pidmap.hxx>
//+-------------------------------------------------------------------------
//
// Class: CPidConverter
//
// Purpose: FULLPROPSPEC --> PROPID mapper for pidmap object
//
// History: 29-Dec-97 KyleP Created
//
//--------------------------------------------------------------------------
class CPidConverter : public PPidConverter
{
public:
inline CPidConverter( IPropertyMapper * pPropMapper );
virtual SCODE FPSToPROPID( CFullPropSpec const & fps, PROPID & pid );
private:
XInterface<IPropertyMapper> _xPropMapper;
};
//+-------------------------------------------------------------------------
//
// Member: CPidConverter::CPidConverter, public
//
// Synopsis: Constructor
//
// Arguments: [pPropMapper] -- Property mapper used to perform xlation
//
// History: 29-Dec-1997 KyleP Created
//
//--------------------------------------------------------------------------
inline CPidConverter::CPidConverter( IPropertyMapper * pPropMapper )
: _xPropMapper( pPropMapper )
{
_xPropMapper->AddRef();
}