![]() ![]() Build my exe, then look in the map file to find the address of the variable within its segment (remember about C++ name decoration).declare a global string variable of the necessary size, say const char g_szWatermark = "". ![]() Here's the thing, this is pretty easy to do in your installer before the exe starts. I've gotta believe that whatever you are trying to do, there is a better way to go about it. The only way I can think to do this would be to write a little program that runs after your exe finishes and opens the. Other than hacking the page protection to turn off COPY_ON_WRITE - Which I'm not sure is even possible. But since the file is kept open, no-one else can open the EXE file and write to it either. It just creates a new page backed by the swap file. So when the exe writes to itself, the file is not modified. You should now be able to open.exe files as usual.When an EXE is running on a Windows machine, the exe file is held open as a CreateFileMapping object with pages marked either as READONLY or COPY_ON_WRITE. Close the Registry Editor and restart your system.In the right area of the window, change the value of the Default key so that it reads as follows: "%1" %* Open the HKEY_CLASSES_ROOTexefileshellopencommand folder.In the Value data field, type exefile and confirm with OK. ![]() A double-click on the Default key in the right part of the window will open a dialog window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |