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.
Requirements
Header: afxdisp.h