According to MSDN, there isn't much difference between these memory allocation API calls. But from the names, I assume LocalAlloc only allocates memory available to the calling program, while GlobalAlloc would allow memory to be allocated in a shared way that would allow multiple programs to access it (such that data can be shared between programs by using this shared memory space). If this isn't the difference, then what is the difference? And also what then would be a way to created a shared memory space accessible by multiple programs?
↧