EP_RegDeleteKey
EP_RegDeleteKey function serves for deleting the existing registration information.
Parameters
The function does not have parameters.
Return Value
If the function succeeds, the return value is 1. If the function fails, the return value is 0.
Remark
The function fails in the following cases:
- no registration information is present;
- an error ocurred while deleting the registration information (it can occur due to the enabled protection from deleting files from the drive or entries in the registry);
- the application is not protected.
Definition
Show/Hide C++ function definition
extern "C" __declspec( dllimport ) __stdcall BOOL EP_RegDeleteKey();
Show/Hide Delphi function definition
function EP_RegDeleteKey : boolean; stdcall;
Show/Hide Visual Basic function definition
Public Declare Function EP_RegDeleteKey Lib "enigma_ide.dll" () As Boolean
Show/Hide C# (.NET) function definition
public class Enigma_IDE
{
[DllImport("enigma_ide.dll", CallingConvention = CallingConvention.StdCall)]
public static extern bool EP_RegDeleteKey();
}
Examples
Show/Hide Delphi function example
uses
enigma_ide;
function DeleteRegistrationInformation : boolean;
begin
Result := fasle;
if EP_RegDeleteKey then
begin
MessageBox(0, 'The registration had been deleted successfully!', 'Application', 0);
Result := true;
end;
end;
Show/Hide C++ function example
#include "include/enigma_api.h"
#pragma link "include/enigma_ide.lib"
BOOL DeleteRegistrationInformation()
{
if (EP_RegDeleteKey())
{
MessageBox(0, "The registration had been deleted successfully!", "Application", 0);
return TRUE;
}
return FALSE;
}
See function examples in the installation folder, Examples subfolder.