Platform SDK: TAPI |
Obtains a new lease for one or more multicast addresses. The EnumerateScopes or get_Scopes method must be called first.
HRESULT RequestAddress( IMcastScope * pScope, DATE LeaseStartTime, DATE LeaseStopTime, long NumAddresses, IMcastLeaseInfo **ppLeaseResponse );
Value | Meaning |
---|---|
S_OK | Method succeeded. |
E_POINTER | The caller passed in an invalid pointer argument. |
E_OUTOFMEMORY | Not enough memory exists to create the required objects. |
E_INVALIDARG | Requested stop time is prior to requested stop time. |
Although these COM interfaces and their implementation support allocation of multiple addresses at a time, multiple allocation is not currently supported by the underlying Win32 calls. You may need to use a loop for multiple address allocation.
Windows NT/2000: Requires Windows 2000.
Version: Requires TAPI 3.0 or later.
Header: Declared in Mdhcp.h.
Library: Use Mdhcpid.lib.