Global Memory

Global memory is allocated from the global heap of a process. This type of memory is allocated with the GlobalAlloc function that returns a handle to the memory. In most cases, the handle is simply a pointer to the allocated memory. The memory is allocated in private, committed pages with read/write access. Private memory cannot be accessed by other processes.

Using GlobalAlloc with the GMEM_DDESHARE flag is not really shared globally as it was in older versions of Windows. The flag is provided for compatibility and can be used by some applications to enhance the performance of dynamic data exchange (DDE) operations. Applications that require shared memory for other purposes must use file-mapping objects. For information on file ...

Get Microsoft Windows 2000 API SuperBible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.