2026-11-13 03:29:59 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
<Document>
|
|
|
|
|
<Protection InputFileName="Project1.exe" Options="32768" RunParameters="">
|
|
|
|
|
<Folders />
|
|
|
|
|
<Procedures>
|
2026-11-23 16:15:28 +08:00
|
|
|
<Procedure MapAddress='DogProtectMarker "Test marker"' Options="1" />
|
2026-11-13 03:29:59 +08:00
|
|
|
<Procedure MapAddress='string "Correct password"' Options="1" />
|
|
|
|
|
<Procedure MapAddress='string "Incorrect password"' Options="1" />
|
|
|
|
|
</Procedures>
|
|
|
|
|
<Messages />
|
|
|
|
|
</Protection>
|
|
|
|
|
<DLLBox />
|
|
|
|
|
<Script>
|
|
|
|
|
<![CDATA[function OnBeforeSaveFile()
|
2026-11-23 16:15:28 +08:00
|
|
|
local file = dogprotect:core():outputArchitecture()
|
2026-11-13 03:29:59 +08:00
|
|
|
local rc_data = file:resources():itemByType(PE.RT_RCDATA)
|
|
|
|
|
if (rc_data) then
|
|
|
|
|
local names = {}
|
|
|
|
|
table.insert(names, "PACKAGEINFO")
|
|
|
|
|
table.insert(names, "DVCLAL")
|
|
|
|
|
for _, line in ipairs(names) do
|
|
|
|
|
local resource = rc_data:itemByName(line)
|
|
|
|
|
if (resource) then
|
|
|
|
|
print(string.format("Resource \"%s\" is deleted", line))
|
|
|
|
|
resource:destroy()
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end]]>
|
|
|
|
|
</Script>
|
|
|
|
|
</Document>
|