Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I have multiple processes running in my system (Win2003) which communicate via Shared Memory Queues(Named Shared Memory ).
Is there any way by which i could get information about all the open shared memory queues in my system, can i write a application to get this info.
Posted

1 solution

You did not specify the level of detail you want, but you can find out if a memory block belongs to a memory mapped file using the VirtualQueryEx function. If it is a shared memory block you have encountered, then the MEMORY_BASIC_INFORMATION.Type field will be MEM_MAPPED.

I have not been able to make the VirtualQueryEx function work in some circumstances for 32-bit applications running on Windows 7, because of the WOW layer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900