Article ID: 114611
Article Last Modified on 4/13/2004
{
HGLOBAL hMem;
// allocate a block from the global heap
hMem = GlobalAlloc(GMEM_ZEROINIT, 512);
.
.
.
}
Although this source code is compatible between applications for Windows
3.1 and applications for Windows NT running on Win32s, the result is
different. A 16-bit application running on Windows 3.1 will allocate the
memory as moveable and zero the contents. A Win32 application running on
Win32s will allocate the memory as fixed and page-locked and zero the
contents.
Additional query words: 1.10 1.20
Keywords: KB114611