The NEWHEADER structure contains the number of icon or cursor components in a resource group.
struct NEWHEADER { WORD Reserved; WORD ResType; WORD ResCount; } NEWHEADER, *PNEWHEADER; NEWHEADER NewHeader;
One or more RESDIR structures immediately follow the NEWHEADER structure in the .RES file. The ResCount member specifies the number of RESDIR structures.