Upravit

Sdílet prostřednictvím


IClassFactory2 interface (ocidl.h)

Enables a class factory object, in any sort of object server, to control object creation through licensing.

This interface is an extension to IClassFactory. This extension enables a class factory executing on a licensed machine to provide a license key that can be used later to create an object instance on an unlicensed machine. Such considerations are important for objects like controls that are used to build applications on a licensed machine. Subsequently, the application built must be able to run on an unlicensed machine. The license key gives only that one client application the right to instantiate objects through IClassFactory2 when a full machine license does not exist.

Inheritance

The IClassFactory2 interface inherits from IClassFactory. IClassFactory2 also has these types of members:

Methods

The IClassFactory2 interface has these methods.

 
IClassFactory2::CreateInstanceLic

Creates an instance of the licensed object for the specified license key. This method is the only possible means to create an object on an otherwise unlicensed machine.
IClassFactory2::GetLicInfo

Retrieves information about the licensing capabilities of this class factory.
IClassFactory2::RequestLicKey

Creates a license key that the caller can save and use later to create an instance of the licensed object.

Requirements

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

See also

IClassFactory