IMcastAddressAllocation::CreateLeaseInfoFromVariant method (mdhcp.h)
[Rendezvous IP Telephony Conferencing controls and interfaces are not available for use in Windows Vista, Windows Server 2008, and subsequent versions of the operating system. The RTC Client API provides similar functionality.]
The CreateLeaseInfoFromVariant method creates a lease information object for a subsequent call to RenewAddress or ReleaseAddress. This method is similar to CreateLeaseInfo but is used by Automation client languages such as Visual Basic.
HRESULT CreateLeaseInfoFromVariant( [in] DATE LeaseStartTime, [in] DATE LeaseStopTime, [in] VARIANT vAddresses, [in] BSTR pRequestID, [in] BSTR pServerAddress, [out] IMcastLeaseInfo **ppReleaseRequest );
The start time of the lease.
The stop time of the lease.
A VARIANT containing a SAFEARRAY of BSTR strings. Each BSTR is an IP version 4 address in dotted quad notation (for example, 10.111.222.111).
Pointer to a BSTR specifying the request ID for the original request. This is obtained by calling IMcastLeaseInfo::get_RequestID on the lease information object corresponding to the original request. The request ID should be saved in persistent storage between executions of the application program. If you are renewing or releasing a lease that was requested during the same run of the application, you have no reason to use CreateLeaseInfo; just pass the existing IMcastLeaseInfo pointer to RenewAddress or ReleaseAddress.
Pointer to a BSTR specifying the server address.
Pointer to the IMcastLeaseInfo interface created.
This method can return one of these values.
||The caller passed in an invalid pointer argument.|
||Not enough memory exists to create the required objects.|
The application must use SysAllocString to allocate memory for the pRequestID and pServerAddress parameters. The application must use SysFreeString to free the memory when the variables are no longer needed.
TAPI calls the AddRef method on the IMcastLeaseInfo interface returned by IMcastAddressAllocation::CreateLeaseInfoFromVariant. The application must call Release on the IMcastLeaseInfo interface to free resources associated with it.
This function may send data over the wire in unencrypted form; therefore, someone eavesdropping on the network may be able to read the data. The security risk of sending the data in clear text should be considered before using this method.