Export (0) Print
Expand All

COleObjectFactory::GetLicenseKey

Requests a unique license key from the control's DLL and stores it in the BSTR pointed to by pbstrKey.

virtual BOOL GetLicenseKey(
   DWORD dwReserved,
   BSTR *pbstrKey 
);

Parameters

dwReserved
Reserved for future use.
pbstrKey
Pointer to a BSTR that will store the license key.

Return Value

Nonzero if the license-key string is not NULL; otherwise 0.

Remarks

The default implementation of this function returns 0 and stores nothing in the BSTR. If you use MFC ActiveX ControlWizard to create your project, ControlWizard supplies an override that retrieves the control's license key.

See Also

COleObjectFactory Overview | Class Members | Hierarchy Chart | COleObjectFactory::VerifyUserLicense | COleObjectFactory::VerifyLicenseKey

Show:
© 2014 Microsoft