Manual
How to Use Enigma APIEnigma Protector allows using Enigma API through the call of enigma_ide.dll (for 32 bit files, or enigma_ide64.dll for 64 bit) functions from import table or through the pair of functions GetModuleHandle/LoadLibrary and GetProcAddress. Note, that Enigma API uses stdcall calling conversion for 32 bit files. The common method of Enigma API usage (through importing Enigma API) can be found in the Enigma Protector installation folder, Examples subfolder. While application, that is used Enigma API functions, is not protected, it requires the file enigma_ide.dll/enigma_ide64.dll to run. Please check the description how this works, features of enigma_ide.dll and common usage way: Debugging with enigma_ide.dll Here are examples demonstrating one more way to call Enigma API: Delphivar pEP_RegHardwareID : function : PAnsiChar; pEP_RegCheckKey : function(pcName, pcKey : PAnsiChar) : boolean; pcName : PAnsiChar; pcKey : PAnsiChar; begin // Show message box with a Hardware ID pEP_RegHardwareID := GetProcAddress(GetModuleHandle('enigma_ide.dll'), 'EP_RegHardwareID'); MessageBox(0, pEP_RegHardwareID, 'Application' , MB_OK); // Check registration infomation pcName := 'Registration Info'; pcKey := 'Registration Key'; pEP_RegCheckKey := GetProcAddress(GetModuleHandle('enigma_ide.dll'), 'EP_RegCheckKey'); if pEP_RegCheckKey(pcName, pcKey) then MessageBox(0, 'Valid Registration Key', 'Application', MB_OK) else MessageBox(0, 'Invalid Registration Key', 'Application', MB_OK) end; |