.Exe file how to embed in resource after start program
Martin Drašar
drasar at ics.muni.cz
Mon Jul 1 14:23:30 PDT 2013
Dne 1.7.2013 23:03, Ali GOREN napsal(a):
> On Monday, 1 July 2013 at 20:11:40 UTC, Ali Çehreli wrote:
>> On 07/01/2013 12:28 PM, Ali GOREN wrote:
>>
>> > Sorry for my bad english.
>>
>> Please don't say that. :) Thank you very much for writing in English
>> so that we can understand you.
>>
>> I don't have an answer to your question though... :-/
>>
>> Ali
>
> Hmm thank you very much :) i want to embed because high security program :(
Hi,
one way, not necessarily the optimal one, that works in Windows:
- save the exe as a string in a file, like: enum prog = '...'; and
compile it to your wrapping program
- 1) run the wrapping program, write the prog to disk and call
CreateProcessEx (it requires file in the filesystem)
- 2) run the wrapping program, memory map the prog and then try to
follow this guide at StackOverflow (the one with 21 upvotes)
http://stackoverflow.com/questions/305203/createprocess-from-memory-buffer
Both approaches have their pros and cons and you should tread carefully,
especially if you say that this should be about high security...
Regards,
Martin
More information about the Digitalmars-d-learn
mailing list