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.
 
 
 
 
 
 

36 lines
812 B

// PropItem.cpp : Implementation of CPropertyItem
#include "stdafx.h"
#include "WizChain.h"
#include "PropItem.h"
/////////////////////////////////////////////////////////////////////////////
// CPropertyItem
HRESULT CPropertyItem::get_Value( /*[out, retval]*/ VARIANT *varValue )
{
if( !varValue ) return E_POINTER;
VariantInit( varValue );
return VariantCopy( varValue, &m_var );
}
HRESULT CPropertyItem::get_Name( /*[out, retval]*/ BSTR *strName )
{
if( !strName ) return E_POINTER;
if( !(*strName = SysAllocString( m_bstrName )) )
{
return E_OUTOFMEMORY;
}
return S_OK;
}
HRESULT CPropertyItem::get_Type( /*[out, retval]*/ long *dwFlags )
{
if( !dwFlags ) return E_POINTER;
*dwFlags = m_dwFlags;
return S_OK;
}