Source code of Windows XP (NT5)
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.

34 lines
851 B

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright(C) 1997-1998 Microsoft Corporation all rights reserved.
  4. //
  5. // Module: sdoclient.cpp
  6. //
  7. // Project: Everest
  8. //
  9. // Description: IAS Server Data Object - Client Object Implementation
  10. //
  11. // Author: TLP 1/23/98
  12. //
  13. /////////////////////////////////////////////////////////////////////////////
  14. #include "stdafx.h"
  15. #include "sdoclient.h"
  16. #include "sdohelperfuncs.h"
  17. ////////////////////////////////////////////////////////////////////////////
  18. HRESULT CSdoClient::ValidateProperty(
  19. /*[in]*/ PSDOPROPERTY pProperty,
  20. /*[in]*/ VARIANT* pValue
  21. )
  22. {
  23. HRESULT hr = pProperty->Validate(pValue);
  24. if ( SUCCEEDED(hr) )
  25. {
  26. if ( PROPERTY_CLIENT_ADDRESS == pProperty->GetId() )
  27. hr = ::ValidateDNSName(pValue);
  28. }
  29. return hr;
  30. }