News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Unusual quirk with a memory mapped file.

Started by hutch--, December 06, 2016, 12:51:27 AM

Previous topic - Next topic

hutch--

I have wasted the last day or so trying to get memory mapped files working in Win 10 on this current box and kept getting fails on data transfer from one app to another.

            fn GetWindowText,hEdit,pMMF,rv(GetWindowTextLength,hEdit)
            fn SleepEx,10,0     ; delay required between MMF write and remote read
            fn PostMessage,HWND_BROADCAST,PM_COMMAND,1,0

Tried a delay between the write to the MMF and sending a private message to the remote app to read the MMF and it worked. Never seen this before and I have been using memory mapped files since Win95. I am playing with an idea of using a remote app to store extra data to get around the limit of addressable memory in Win32 using a 1 gig mmf and it looks like it works. What I want to do is code a remote 64 bit app as a memory extender for Win 32.