void sendrequests() {
auto Readstring = (char*)MapViewOfFile(hMapFileW, FILE_MAP_WRITE, 0, 0, 4096);
RtlCopyMemory(Readstring, "Read", 4);
printf("message has been sent to kernel [Read]! \n");
UnmapViewOfFile(Readstring) } ;
so basically if i do something like this
it works fine but if i add another mapviewoffile after that call it doesn't send anything to my driver , am mapping the section with zwmapviewofsection and looping until i find "Read" string then if it is found it will execute some code but problem is i can't send more than 1 request with mapviewoffile so i don't really know what is the problem with this issue. any help in advance is much appreciated.
What I have tried:
<pre lang="c++">void sendrequests() {
auto Readstring = (char*)MapViewOfFile(hMapFileW, FILE_MAP_WRITE, 0, 0, 4096);
RtlCopyMemory(Readstring, "Read", 4);
printf("message has been sent to kernel [Read]! \n");
UnmapViewOfFile(Readstring)
auto Read_test = (char*)MapViewOfFile(hMapFileW, FILE_MAP_WRITE, 0, 0, 4096);
RtlCopyMemory(Read_test , "Test", 4);
printf("message has been sent to kernel [Read_test ]! \n");
UnmapViewOfFile(Read_test);
} ;