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.

39 lines
1.0 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright(C) 1997-1998 Microsoft Corporation all rights reserved.
  4. //
  5. // Module: sdocondition.cpp
  6. //
  7. // Project: Everest
  8. //
  9. // Description: IAS - Condition SDO Implementation
  10. //
  11. // Author: TLP 2/13/98
  12. //
  13. ///////////////////////////////////////////////////////////////////////////
  14. #include "stdafx.h"
  15. #include "sdocondition.h"
  16. #include "xprparse.h"
  17. ///////////////////////////////////////////////////////////////////////////
  18. HRESULT CSdoCondition::ValidateProperty(
  19. /*[in]*/ PSDOPROPERTY pProperty,
  20. /*[in]*/ VARIANT* pValue
  21. )
  22. {
  23. /* Uncomment when core has switched over to using the new dictionary
  24. if ( PROPERTY_CONDITION_TEXT == pProperty->GetId() )
  25. {
  26. _ASSERT( VT_BSTR == V_VT(pValue) );
  27. if ( VT_BSTR != V_VT(pValue) )
  28. return E_INVALIDARG;
  29. _variant_t vtReturn;
  30. return IASParseExpression( V_BSTR(pValue), &vtReturn );
  31. }
  32. return pProperty->Validate(pValue);
  33. */
  34. return S_OK;
  35. }