21 Mar
2012
21 Mar
'12
8:59 p.m.
MapViewOfFile (and the underlying NtMapViewOfSection) has support for specifying the address to map it.
So what I should do is: 1. in ntdll/thread.c:thread_init: int fd = shm_open("/KUSER_SHARED_DATA", O_RDONLY | O_CREAT, 0600); // call MapViewOfFile to map fd to 0x7ffe0000 2. in server/main.c: int fd = shm_open("/KUSER_SHARED_DATA", O_RDWR | O_CREAT, 0600); // call MapViewOfFile to map fd to 0x7ffe0000 // start thread to update/nanosleep Is that roughly correct? How do I translate the fd to a HANDLE for the first arg to MapViewOfFile? thanks, Joey