3 ms·
Microsoft's Win16 memory allocator APIs (GlobalAlloc and LocalAlloc) also returned handles so the OS could move memory blocks to new addresses behind the scenes
by cpeterso 3y ago
Microsoft's Win16 memory allocator APIs (GlobalAlloc and LocalAlloc) also returned handles so the OS could move memory blocks to new addresses behind the scenes. Application code would need to call GlobalLock/Unlock APIs to acquire a temporary pointer to the memory block. The APIs still exist in Win32 and Win64 for backwards compatibility, but now they're thin wrappers around a more standard memory allocator.
https://learn.microsoft.com/en-us/windows/win32/memory/comparing-memory-allocation-methods https://learn.microsoft.com/en-us/windows/win32/memory/compa...
- mmphosis 3y agoHistorically, I think there was an overlap of APIs between early Macintosh and early versions of Windows because Microsoft was porting their software. Microsoft released the first version of Excel for the Macintosh on September 30, 1985, and the first Windows version was 2.05 (to synchronize with the Macintosh version 2.2) on November 19, 1987. https://en.wikipedia.org/wiki/Microsoft_Excel#Early_history https://en.wikipedia.org/wiki/Microsoft_Excel#Early_history