I know that Linux supports the mmap system command for being able to define a block of executable memory. How do you do the same thing in windows? I imagine there i
Google, one of the first hits. - use the VirtualAlloc function with the protection flag being one of PAGE_EXECUTE, PAGE_EXECUTE_READ, PAGE_EXECUTE_READWRITE, or PAGE_EXECUTE_WRITECOPY.
Alternatively, use VirtualProtect() to change the protection of an already existing memory region.