IWMSIncomingCounters::AllocateRequestedBandwidth

banner art

Previous Next

IWMSIncomingCounters::AllocateRequestedBandwidth

The AllocateRequestedBandwidth method allocates bandwidth, in Kbps, for an incoming client connection.

Syntax

  HRESULT AllocateRequestedBandwidth(
  
  DWORD
  
  dwAllocatedBandwidth
  
  );

Parameters

dwAllocatedBandwidth

[in] DWORD containing the amount of bandwidth to allocate.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Remarks

This method should be called any time that bandwidth needs to be allocated for an incoming client connection. If the allocated bandwidth requested does not exceed the limit specified by the IWMSServerLimits::put_IncomingBandwidth method, the IWMSServerCurrentCounters::get_IncomingBandwidth counter will be updated with this value, otherwise the AllocateRequestedBandwidth method will fail.

Requirements

Header: wmsincomingcounters.h.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.

See Also

Previous Next