TE Edit Control Win32 / Win64 Help
Product page

TerFileToMem

A utility function to read a file into a global memory block.

HGLOBAL TerFileToMem(FileName, size)
DWORD far *size;Location to receive the size of the memory block

Description: This function simply reads a file into a global memory buffer. Please note that this function does not load the file into the editor's buffer. To load a file into the editor, please use the function: ReadTerFile.

Return Value: This function returns the global memory handle containing the file. A NULL value indicates an error condition.