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

  1. // PropItem.cpp : Implementation of CPropertyItem
  2. #include "stdafx.h"
  3. #include "WizChain.h"
  4. #include "PropItem.h"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CPropertyItem
  7. HRESULT CPropertyItem::get_Value( /*[out, retval]*/ VARIANT *varValue )
  8. {
  9. if( !varValue ) return E_POINTER;
  10. VariantInit( varValue );
  11. return VariantCopy( varValue, &m_var );
  12. }
  13. HRESULT CPropertyItem::get_Name( /*[out, retval]*/ BSTR *strName )
  14. {
  15. if( !strName ) return E_POINTER;
  16. if( !(*strName = SysAllocString( m_bstrName )) )
  17. {
  18. return E_OUTOFMEMORY;
  19. }
  20. return S_OK;
  21. }
  22. HRESULT CPropertyItem::get_Type( /*[out, retval]*/ long *dwFlags )
  23. {
  24. if( !dwFlags ) return E_POINTER;
  25. *dwFlags = m_dwFlags;
  26. return S_OK;
  27. }