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.

41 lines
993 B

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) Microsoft Corporation
  4. //
  5. // SYNOPSIS
  6. //
  7. // Defines the class CSdoClient.
  8. //
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #include "stdafx.h"
  11. #include "sdoclient.h"
  12. #include "sdohelperfuncs.h"
  13. CSdoClient::~CSdoClient() throw ()
  14. {
  15. }
  16. HRESULT CSdoClient::ValidateProperty(
  17. PSDOPROPERTY pProperty,
  18. VARIANT* pValue
  19. ) throw ()
  20. {
  21. HRESULT hr = pProperty->Validate(pValue);
  22. if (SUCCEEDED(hr) && (pProperty->GetId() == PROPERTY_CLIENT_ADDRESS))
  23. {
  24. if (IASIsStringSubNetW(V_BSTR(pValue)))
  25. {
  26. IAS_PRODUCT_LIMITS limits;
  27. hr = SDOGetProductLimits(m_pParent, &limits);
  28. if (SUCCEEDED(hr) && !limits.allowSubnetSyntax)
  29. {
  30. hr = IAS_E_LICENSE_VIOLATION;
  31. }
  32. }
  33. }
  34. return hr;
  35. }