Shared memory w/ unmanaged DLL
This is my first excursion into .NET development, so please forgive any novice oversights...
I'm trying to write a C# application that accesses shared memory in an unmanaged Win32 DLL.
The Win32 DLL defines the shared memory in such a fashion:
Code:
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// define shared memory
//
// data must be initialized! data_seg pragma applies only to initialized data.
#pragma data_seg(".SHAREDMEMORY")
int gshared_nTest = 0;
#pragma data_seg()
// sets linker switch for shared memory section
#pragma comment(linker, "/SECTION:.SHAREDMEMORY,RWS");
How can I get my C# application to access this shared memory? Is it even possible?
Thanks,
Jeremy