Yep, I used CreateFileMapping. I had absolutely no problem with the speed, which was expected when you just need to send a few editing commands here and there. As for the fact that it's backed up by the pagefile, *all* the memory is, I don't think there's such a big difference here compared to writing to any memory block. I may be wrong.
In any case if you need speed don't assume anything. If you wanna know, make some tests and compare the results :)
The method of using #pragma data_seg could be faster, that's not a bad idea.
EDIT: And anyway don't take my DLL as a good example of how to do it. As I said it was really a quick and dirty one.
In any case if you need speed don't assume anything. If you wanna know, make some tests and compare the results :)
The method of using #pragma data_seg could be faster, that's not a bad idea.
EDIT: And anyway don't take my DLL as a good example of how to do it. As I said it was really a quick and dirty one.