HANDLE GetMetaFileBits(hMF)
This function returns a handle to a global memory block that contains the specified metafile as a collection of bits. The memory block can be used to determine the size of the metafile or to save the metafile as a file. The memory block should not be modified.
Parameter | Type/Description |
hMF | HANDLE Identifies the memory metafile. |
The return value identifies the global memory block that contains the metafile. If an error occurs, the return value is NULL.
The handle used as the hMF parameter becomes invalid when the GetMetaFileBits function returns, so the returned global memory handle must be used to refer to the metafile.
Memory blocks created by this function are unique to the calling application and are not shared by other applications. These blocks are automatically deleted when the application terminates.