/img/help/home.gif

TStream.ReadResHeader

TStream


Reads a Windows resource-file header from the stream.

 

procedure ReadResHeader;

 

Description

 

Do not call ReadResHeader directly. It is called automatically by ReadComponentRes before reading a component from a resource file.

 

After reading the resource-file header, ReadResHeader moves the current position of the stream to just beyond the header. If the stream does not contain a valid resource-file header, ReadResHeader throws an EInvalidImage exception.