View Single Post
  #4  
Old 02-21-2023, 02:40
Kerlingen Kerlingen is offline
VIP
 
Join Date: Feb 2011
Posts: 324
Rept. Given: 0
Rept. Rcvd 276 Times in 98 Posts
Thanks Given: 0
Thanks Rcvd at 309 Times in 96 Posts
Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299
Based on the original question, there are two ways:
  • Use the VirtualProtect function to make the memory region writable.
  • Edit the PE file header on disk and make the sections writable.
Both methods have been successfully used many times by many people.

Based on your second post, the most promising answer would be:
  • First, read a book about x86 assembler.
  • Next, read a book about Win32 programming.
  • Next, read a book about x64 assembler.
Your very short text and code fragments already violate at least 4 core principles of x86/Win32/x64 assembly. Your problem definitely is not some write permission, but the basic understanding of the CPU architecture.
Reply With Quote
The Following User Says Thank You to Kerlingen For This Useful Post:
X0rby (04-01-2024)