Original Post
how do i find the virtual memory range taken up by my code? the idea is to invoke VirtualLock() on that memory range, such that windows does not move it to the page file, in other words, i want to lock the code (instructions) of my app in RAM