Using the Zentitle2Core Library

This guideline outlines a simple method of dynamically loading the Zentitle2Core DLL and creating a device fingerprint on a Windows platform using standard C++. It is important to ensure that the file is accessible to your application. Furthermore, it is recommended that adequate error handling for a production environment be implemented.

Generating Device Fingerprint with Default Option

To generate a device fingerprint using the Zentitle2Core Library in a Windows environment, follow these steps:

  1. Include Necessary Headers

Include headers for dynamic library loading and other necessary functionalities.

#include <windows.h>
#include <string>
  1. Load the Zentitle2Core Library

Load the DLL dynamically.

HMODULE libraryHandle = LoadLibraryA( "Zentitle2Core.dll" );
if ( libraryHandle == nullptr ) 
    // Handle error
  1. Define Function Prototype

Define the prototype for the generateDeviceFingerprint function.

typedef bool ( *GenerateFingerprintFunc )( char*, int );
  1. Load the Function from the Library

Get the generateDeviceFingerprint function from the library.

GenerateFingerprintFunc generateFingerprint = ( GenerateFingerprintFunc )GetProcAddress( libraryHandle, "generateDeviceFingerprint" );
if ( generateFingerprint == nullptr ) 
    // Handle error
  1. Generate the Device Fingerprint

Use the loaded function to generate the fingerprint.

char generatedFingerprint[100];
bool result = generateFingerprint( generatedFingerprint, FINGERPRINT_OPTION_DEFAULT );
if (!result) 
    // Handle error
// Use generatedFingerprint as needed
  1. Cleanup

Release the library after usage.

FreeLibrary( libraryHandle );

Last updated


Service terms

© Copyright - Nalpeiron, all rights reserved Website use subject to Terms and Conditions. See our Privacy Policy Use of Zentitle is subject to our Service Terms and Conditions