This method of the IClassFactory2 interface creates and returns a license key that the caller can save and use later in calls to CreateInstanceLic.
public String RequestLicKey(int dwReserved);
This method supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:
S_OK
The license key was successfully created.
E_NOTIMPL
This class factory does not support run-time license keys.
CLASS_E_NOTLICENSED
This class factory supports run-time licensing, but the current machine itself is not licensed. Thus, a run-time key is not available on this machine.
dwReserved | [in] Unused. Must be zero. |