Esta documentación está archivada y no tiene mantenimiento.

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.

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

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.

Mostrar: