anti-cracking library 1.0

API_HasBPX function
Detects a BPX breakpoint on an API function.

Group
Breakpoints

function API_HasBPX(Win32ApiFunction: Pointer): Boolean;

Description
Checks for a breakpoint set on API function.

Remarks
You can not use HasBPX, because HasBPX would only check if there isn't a BPX set on EXE -> DLL jumpgate.
If you want to check for a breakpoint on API function you should at first check, if there isn't a BPR breakpoint set (if it is set, the memory page containing the function is PAGE_NOACCESS and an attempt to read from it would cause debugger to pop up).

See also
HasBPX

Example
if API_HasBPX(@GetWindowTextA) then
   ShowMessage('GetWindowText has a BPX breakpoint!');