I tried to implement this idea of searching for kernel32.dll in Windows 10 and I'm afraid it crashes (there must be some unallocated pages there). Do you have idea how to workaround this? I can use ReadProcessMemory at this point and it helps but in final version it obviously cannot be used (because I don't have pointer to that function before finding kernel32.dll).
I tried to implement this idea of searching for kernel32.dll in Windows 10 and I'm afraid it crashes (there must be some unallocated pages there). Do you have idea how to workaround this? I can use ReadProcessMemory at this point and it helps but in final version it obviously cannot be used (because I don't have pointer to that function before finding kernel32.dll).