icoextract.types
icoextract common types.
See https://devblogs.microsoft.com/oldnewthing/20120720-00/?p=7083 for a reference on ICO structures.
BYTE =
<class 'ctypes.c_ubyte'>
WORD =
<class 'ctypes.c_ushort'>
DWORD =
<class 'ctypes.c_uint'>
class
ResourceID:
Resource ID wrapper.
For resources with a string ID, str() will return its string value (e.g. "IDI_MAIN_ICON") and int() will return its underlying numeric ID.
Numerical icon resource IDs can be accessed via int(), and str() will return the number casted to a string.
class
GroupIconDirEntry(_ctypes.Structure):
ICO GRPICONDIRENTRY / RESDIR structure
class
GroupIconDir(_ctypes.Structure):
ICO GRPICONDIR / NEWHEADER structure
ExtractedGroupIcon =
list[tuple[GroupIconDirEntry, bytes]]
GroupIconWithIconOffsets =
list[tuple[GroupIconDirEntry, int, int]]