Microsoft SDK for Java

RequestLicKey

This method of the IClassFactory2 interface creates and returns a license key that the caller can save and use later in calls to CreateInstanceLic.

Syntax

public String RequestLicKey(int dwReserved);

Return Value

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.

Parameters

dwReserved [in] Unused. Must be zero.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.