Hi,
Is this possible to write a code that modifies a variable within the EXE file ? I need the procedure for counting the number of times a program has been executed. Without registry, extra files or anything a user could find. You now what I'm talking about.
In the old MS-DOS apps that could be done using _psp variable
(Program segment prefix) and SEG/OFFSET of the global variable. In Win32 there is no such a thing.
The main problem is to find the position inside the EXE file generated that coresponds to the variable itself. Then I should find a way to actualy write in the file opened for execution.
Can anybody help ?
Thanx
Is this possible to write a code that modifies a variable within the EXE file ? I need the procedure for counting the number of times a program has been executed. Without registry, extra files or anything a user could find. You now what I'm talking about.
In the old MS-DOS apps that could be done using _psp variable
(Program segment prefix) and SEG/OFFSET of the global variable. In Win32 there is no such a thing.
The main problem is to find the position inside the EXE file generated that coresponds to the variable itself. Then I should find a way to actualy write in the file opened for execution.
Can anybody help ?
Thanx