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

///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) Microsoft Corporation
//
// SYNOPSIS
//
// Defines the class CSdoClient.
//
///////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "sdoclient.h"
#include "sdohelperfuncs.h"
CSdoClient::~CSdoClient() throw ()
{
}
HRESULT CSdoClient::ValidateProperty(
PSDOPROPERTY pProperty,
VARIANT* pValue
) throw ()
{
HRESULT hr = pProperty->Validate(pValue);
if (SUCCEEDED(hr) && (pProperty->GetId() == PROPERTY_CLIENT_ADDRESS))
{
if (IASIsStringSubNetW(V_BSTR(pValue)))
{
IAS_PRODUCT_LIMITS limits;
hr = SDOGetProductLimits(m_pParent, &limits);
if (SUCCEEDED(hr) && !limits.allowSubnetSyntax)
{
hr = IAS_E_LICENSE_VIOLATION;
}
}
}
return hr;
}