mirror of
https://github.com/Alukym/VMProtect-Source.git
synced 2025-06-16 23:18:07 -05:00
Initial commit
This commit is contained in:
26
examples/scripts/External DLL/Project1.exe.vmp
Normal file
26
examples/scripts/External DLL/Project1.exe.vmp
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<Document>
|
||||
<Protection InputFileName="Project1.exe" Options="32768" RunParameters="">
|
||||
<Folders />
|
||||
<Procedures>
|
||||
<Procedure MapAddress='VMProtectMarker "Test marker"' Options="1" />
|
||||
<Procedure MapAddress='string "Correct password"' Options="1" />
|
||||
<Procedure MapAddress='string "Incorrect password"' Options="1" />
|
||||
</Procedures>
|
||||
<Messages />
|
||||
</Protection>
|
||||
<DLLBox />
|
||||
<Script>
|
||||
<![CDATA[function OnBeforeCompilation()
|
||||
MessageBox(0, 'OnBeforeCompilation', 'MessageBox from user32.dll', 0x40)
|
||||
end
|
||||
|
||||
function OnAfterCompilation()
|
||||
MessageBox(0, 'OnAfterCompilation', 'MessageBox from user32.dll', 0x40)
|
||||
end
|
||||
|
||||
user32 = vmprotect.openLib('user32.dll')
|
||||
MessageBox = user32:getFunction('MessageBoxA', {ret = 'int', 'size_t', 'string', 'string', 'uint'})]]>
|
||||
</Script>
|
||||
<LicenseManager />
|
||||
</Document>
|
Reference in New Issue
Block a user