Platform SDK: Debugging and Error Handling |
The IMAGE_SECTION_HEADER structure represents the image section header format.
typedef struct _IMAGE_SECTION_HEADER { BYTE Name[IMAGE_SIZEOF_SHORT_NAME]; union { DWORD PhysicalAddress; DWORD VirtualSize; } Misc; DWORD VirtualAddress; DWORD SizeOfRawData; DWORD PointerToRawData; DWORD PointerToRelocations; DWORD PointerToLinenumbers; WORD NumberOfRelocations; WORD NumberOfLinenumbers; DWORD Characteristics; } IMAGE_SECTION_HEADER, *PIMAGE_SECTION_HEADER;
Flag | Description |
---|---|
IMAGE_SCN_TYPE_REG | Reserved. |
IMAGE_SCN_TYPE_DSECT | Reserved. |
IMAGE_SCN_TYPE_NOLOAD | Reserved. |
IMAGE_SCN_TYPE_GROUP | Reserved. |
IMAGE_SCN_TYPE_NO_PAD | Reserved. |
IMAGE_SCN_TYPE_COPY | Reserved. |
IMAGE_SCN_CNT_CODE | Section contains executable code. |
IMAGE_SCN_CNT_INITIALIZED_DATA | Section contains initialized data. |
IMAGE_SCN_CNT_UNINITIALIZED_DATA | Section contains uninitialized data. |
IMAGE_SCN_LNK_OTHER | Reserved. |
IMAGE_SCN_LNK_INFO | Reserved. |
IMAGE_SCN_TYPE_OVER | Reserved. |
IMAGE_SCN_LNK_COMDAT | Section contains COMDAT data. |
IMAGE_SCN_MEM_FARDATA | Reserved. |
IMAGE_SCN_MEM_PURGEABLE | Reserved. |
IMAGE_SCN_MEM_16BIT | Reserved. |
IMAGE_SCN_MEM_LOCKED | Reserved. |
IMAGE_SCN_MEM_PRELOAD | Reserved. |
IMAGE_SCN_ALIGN_1BYTES | Align data on a 1-byte boundary. |
IMAGE_SCN_ALIGN_2BYTES | Align data on a 2-byte boundary. |
IMAGE_SCN_ALIGN_4BYTES | Align data on a 4-byte boundary. |
IMAGE_SCN_ALIGN_8BYTES | Align data on a 8-byte boundary. |
IMAGE_SCN_ALIGN_16BYTES | Align data on a 16-byte boundary. |
IMAGE_SCN_ALIGN_32BYTES | Align data on a 32-byte boundary. |
IMAGE_SCN_ALIGN_64BYTES | Align data on a 64-byte boundary. |
IMAGE_SCN_LNK_NRELOC_OVFL | Section contains extended relocations. |
IMAGE_SCN_MEM_DISCARDABLE | Section can be discarded as needed. |
IMAGE_SCN_MEM_NOT_CACHED | Section cannot be cached. |
IMAGE_SCN_MEM_NOT_PAGED | Section cannot be paged. |
IMAGE_SCN_MEM_SHARED | Section can be shared in memory. |
IMAGE_SCN_MEM_EXECUTE | Section can be executed as code. |
IMAGE_SCN_MEM_READ | Section can be read. |
IMAGE_SCN_MEM_WRITE | Section can be written to. |
Windows NT/2000: Requires Windows NT 4.0 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in Winnt.h; include Windows.h.
Image Help Library Overview, ImageHlp Structures, ImageDirectoryEntryToDataEx, ImageRvaToSection, ImageRvaToVa, LOADED_IMAGE