RFC: KUSER_SHARED_DATA update patch to fix bug 29168
Joey Yandle
dragon at dancingdragon.be
Wed Mar 21 15:59:04 CDT 2012
>
> 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
More information about the wine-devel
mailing list