Last member in this struct must be not WORD (as in the article) but DWORD instead
typedef struct GRPICONDIRENTRY
{
BYTE bWidth;
BYTE bHeight;
BYTE bColorCount;
BYTE bReserved;
WORD wPlanes;
WORD wBitCount;
DWORD dwBytesInRes;
DWORD nId; // <<<<
} GRPICONDIRENTRY;
https://devblogs.microsoft.com/oldnewthing/20120720-00/?p=7083
Last member in this struct must be not WORD (as in the article) but DWORD instead
Or not ?