virtual BOOL GetLicenseKey( DWORD dwReserved, BSTR *pbstrKey );
Return Value
Nonzero if the license-key string is not NULL; otherwise 0.
Parameters
dwReserved
Reserved for future use.
pbstrKey
Pointer to a BSTR that will store the license key.
Remarks
Requests a unique license key from the control’s DLL and stores it in the BSTR pointed to by pbstrKey.
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.
COleObjectFactory Overview | Class Members | Hierarchy Chart
See Also COleObjectFactory::VerifyUserLicense, COleObjectFactory::VerifyLicenseKey