The GlobalAlloc function allocates the specified number of bytes from the heap. Win32 memory management does not provide a separate local heap and global heap.
This function is provided only for compatibility with 16-bit versions of Windows.
HGLOBAL GlobalAlloc(
UINT uFlags, // allocation attributes
DWORD dwBytes // number of bytes to allocate
);
2应该是memset()吧,
The memset() function copies the value of the byte specified by the c
parameter, which is converted to an unsigned char, into each of the first n
locations of the string pointed to by the s parameter.