Is there a way to store variable (in C++) at specific offset in PE file?
Similar question: Can I define specific order of variables stored in data section?
I’ve heard there are programs which can store settings in their executables.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depending on the size of data, you could use deprecated (unused) areas of a PE image (like the MS-DOS Stub) to store your variables. The offsets of many of these unused areas are well-known (since they are defined by the PE format).