EP_RegDeleteKey
EP_RegDeleteKey 函数用来删除已存在的注册信息。
参数
此函数没有参数。
返回值
如果函数成功执行,返回值为 1 ,否则为 0 。
备注
在以下情况函数不会执行成功:
- 注册信息不存在;
- 删除注册信息时发生错误(可以是无法删除带写保护的文件或无法访问注册表);
- 未知错误。
定义
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();
}
举例
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;
}
可以在安装文件夹下的 Examples 子文件夹查看函数实例。