Embedded Protection - Code Clear Marks


Code Clear Marks

 

Introduction:

Code Clear marks are very similar to the Dynamic code en/decryption marks, with one exception, after code placed between markers is decrypted and executed, it is erased from the memory.


Remarks
Nested marks are not supported, and they should always be used in pairs. Before you use these marks, we strongly recommend you to read marks usage tips first.
Example
for C++

#include "SDProtector.h"
//...
void example() { //...
CLEAR_BLOCK_START //... MessageBox(NULL,"After protection, the code between Code Clear marks can only be run once"
,"Info",MB_OK); CLEAR_BLOCK_END

//...

}
for Delphi

        
procedure example; begin //... {$I CLEAR_BLOCK_START.INC} //... MessageBox(0,'After protection, the code between Code Clear marks can only be run once','Info',MB_OK); {$I CLEAR_BLOCK_END.INC} //... end;
Sample application is located in \Examples\Delphi\Embedded Protection\ and \Examples\VC\Embedded Protection\ directory.
 
CopyRight(C) 2003 SDProtector.com All Rights Reserved