Validates that the Quick License Manager DLL is authentic and was not tampered with. In order to prevent hackers from replacing the IsLicense50.dll with their own version, you can validate the authenticity of the DLL by calling the ValidateFile function. The ValidateFile function returns a fingerprint (long number) that is the result of a checksum of the DLL contents combined with your own key. Use the QlmFingerPrint.exe to generate this unique fingerprint and validate in your code that the runtime fingerprint matches the generated one.
If you are using QLM Professional, you do not need to call this function. Instead, set the validateIntegrity argument to true when constructing the QlmLicense object.
C++: long ValidateFile (BSTR LicenseDLL, BSTR Key);
C#: ulong ValidateFile(string LicenseDLL, BSTR Key)
Parameters
LicenseDLL: Full path to the License DLL. If this argument is NULL, the currently loaded License DLL is used.
Key: A unique key of your choice that is used to uniquely encrypt the fingerprint.
Return
FingerPrint- A long umber that uniquely identifies your license DLL.
Comments
0 comments
Article is closed for comments.