Upravit

Sdílet prostřednictvím


LICINFO structure (ocidl.h)

Contains parameters that describe the licensing behavior of a class factory that supports licensing. The structure is filled by calling the IClassFactory2::GetLicInfo method.

Syntax

typedef struct tagLICINFO {
  LONG cbLicInfo;
  BOOL fRuntimeKeyAvail;
  BOOL fLicVerified;
} LICINFO, *LPLICINFO;

Members

cbLicInfo

The size of the structure, in bytes.

fRuntimeKeyAvail

Indicates whether this class factory allows the creation of its objects on an unlicensed machine through the use of a license key. If TRUE, IClassFactory2::RequestLicKey can be called to obtain the key. If FALSE, objects can be created only on a fully licensed machine.

fLicVerified

Indicates whether a full machine license exists such that calls to IClassFactory::CreateInstance and IClassFactory2::RequestLicKey will succeed. If TRUE, the full machine license exists. Thus, objects can be created freely. and a license key is available if fRuntimeKeyAvail is also TRUE. If FALSE, this class factory cannot create any instances of objects on this machine unless the proper license key is passed to IClassFactory2::CreateInstanceLic.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header ocidl.h

See also

IClassFactory2::GetLicInfo