StampExe method
function TOgProtectExe.StampExe (const FileName : string ; EraseMarker : Boolean) : Boolean;
StampExe method function TOgProtectExe.StampExe (const FileName : string ; EraseMarker : Boolean) : Boolean; |
StampExe marks the executable program with its size and a CRC value.
StampExe searches for a special marker that is used to mark the record where the size and CRC value are stored, calculates the executables size and CRC, and writes that information back to the record. If EraseMarker is True, the special marker used to locate the record is erased.
This method is not used by the TOgProtectExe component. It is provided so that you can use it to stamp the application you want to protect. You can write a simple application that uses StampExe to stamp the application you want to protect. Or you can use the STAMPEXE example project (which uses the StampExe method) to stamp the application you want to protect.
See also: UnStampExe