Posted on 1997-09-10
I am trying to create a list in a DLL that is to be shared among all processes which loads/uses this dll. And all these processes would be able to add and delete objects from this list. I thought one of the easiest way to accomplish this would be to allocate not only the list, but all objects for this list, from shared memory. However, there is nothing in the Win32 SDK documentation which suggest this can be done. Is this the proper way of doing things in Windows? I guess what I am really asking is:
Is it possible to have dynamically allocated objects (memory) in a DLL to be accessible to all processes that use this dLL?
I come from UNIX/OS2 environments where this can (easily) be done. Any help and/or suggestions would be greatly appreicated. Thanks.
Environment: NT 4.0
Compiler: MicroSoft Visual C++ 5.0