HRESULT RequestLicKey( DWORD dwReserved, BSTR* pbstrKey );
Return Value
A standard HRESULT value.
Parameters
dwReserved
[in] Not used. Must be zero.
pbstrKey
[out] Pointer to the license key.
Remarks
Creates and returns a license key, provided that the fRuntimeKeyAvail member of the LICINFO structure is TRUE. A license key is required for calling CreateInstanceLic to create an object on an unlicensed machine. If fRuntimeKeyAvail is FALSE, then objects can only be created on a fully licensed machine.
Call GetLicInfo to retrieve the value of fRuntimeKeyAvail.