Есть вопросы? Напишите нам: support@enigmaprotector.com

Справка

Руководство
Additional
Руководство

How to Use Enigma API

Enigma Protector allows using Enigma API through the call of enigma_ide.dll functions from import table or through the pair of functions GetModuleHandle/LoadLibrary and GetProcAddress. Note, that Enigma API uses stdcall calling conversion. The common method of Enigma API usage (through importing Enigma API) can be found in the Enigma Protector installation folder, Examples subfolder. Here are examples demonstrating one more way to call Enigma API:

Delphi

var
  pEP_RegHardwareID : function : pchar;
  pEP_RegCheckKey : function(pcName, pcKey : pchar) : boolean;
  pcName : pchar;
  pcKey : pchar;

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;