APIdia Launch Partner
Top Description Methods
sun.jvm.hotspot.debugger.win32.coff

public Interface OptionalHeaderWindowsSpecificFields

Known Direct Implementers
sun.jvm.hotspot.debugger.win32.coff.COFFFileParser.COFFFileImpl.COFFHeaderImpl.OptionalHeaderWindowsSpecificFieldsImpl

Models the information stored in the Windows-specific fields portion of the optional header of a Portable Executable file. (Some of the descriptions are taken directly from Microsoft's documentation and are copyrighted by Microsoft.)

Method Summary

Modifier and TypeMethod and Description
public int
getCheckSum()

Image file checksum.

public short
public int
getFileAlignment()

Alignment factor (in bytes) used to align the raw data of sections in the image file.

public long
getImageBase()

Preferred address of first byte of image when loaded into memory; must be a multiple of 64K.

public int
getLoaderFlags()

Obsolete.

public short
getMajorImageVersion()

Major version number of image.

public short
getMajorOperatingSystemVersion()

Major version number of required OS.

public short
getMajorSubsystemVersion()

Major version number of subsystem.

public short
getMinorImageVersion()

Minor version number of image.

public short
getMinorOperatingSystemVersion()

Minor version number of required OS.

public short
getMinorSubsystemVersion()

Minor version number of subsystem.

public int
getNumberOfRvaAndSizes()

Number of data-dictionary entries in the remainder of the Optional Header.

public int
getSectionAlignment()

Alignment (in bytes) of sections when loaded into memory.

public int
getSizeOfHeaders()

Combined size of MS-DOS stub, PE Header, and section headers rounded up to a multiple of FileAlignment.

public long
getSizeOfHeapCommit()

Size of local heap space to commit.

public long
getSizeOfHeapReserve()

Size of local heap space to reserve.

public int
getSizeOfImage()

Size, in bytes, of image, including all headers; must be a multiple of Section Alignment.

public long
getSizeOfStackCommit()

Size of stack to commit.

public long
getSizeOfStackReserve()

Size of stack to reserve.

public short
getSubsystem()

Subsystem required to run this image; returns one of the constants defined in sun.jvm.hotspot.debugger.win32.coff.WindowsNTSubsystem.

Method Detail

getCheckSumback to summary
public int getCheckSum()

Image file checksum. The algorithm for computing is incorporated into IMAGHELP.DLL. The following are checked for validation at load time: all drivers, any DLL loaded at boot time, and any DLL that ends up in the server.

getDLLCharacteristicsback to summary
public short getDLLCharacteristics()

Indicates characteristics of a DLL; see sun.jvm.hotspot.debugger.win32.coff.DLLCharacteristics.

getFileAlignmentback to summary
public int getFileAlignment()

Alignment factor (in bytes) used to align the raw data of sections in the image file. The value should be a power of 2 between 512 and 64K inclusive. The default is 512. If the SectionAlignment is less than the architecture's page size than this must match the SectionAlignment.

getImageBaseback to summary
public long getImageBase()

Preferred address of first byte of image when loaded into memory; must be a multiple of 64K. The default for DLLs is 0x10000000. The default for Windows CE EXEs is 0x00010000. The default for Windows NT, Windows 95, and Windows 98 is 0x00400000.

getLoaderFlagsback to summary
public int getLoaderFlags()

Obsolete.

getMajorImageVersionback to summary
public short getMajorImageVersion()

Major version number of image.

getMajorOperatingSystemVersionback to summary
public short getMajorOperatingSystemVersion()

Major version number of required OS.

getMajorSubsystemVersionback to summary
public short getMajorSubsystemVersion()

Major version number of subsystem.

getMinorImageVersionback to summary
public short getMinorImageVersion()

Minor version number of image.

getMinorOperatingSystemVersionback to summary
public short getMinorOperatingSystemVersion()

Minor version number of required OS.

getMinorSubsystemVersionback to summary
public short getMinorSubsystemVersion()

Minor version number of subsystem.

getNumberOfRvaAndSizesback to summary
public int getNumberOfRvaAndSizes()

Number of data-dictionary entries in the remainder of the Optional Header. Each describes a location and size.

getSectionAlignmentback to summary
public int getSectionAlignment()

Alignment (in bytes) of sections when loaded into memory. Must be greater or equal to File Alignment. Default is the page size for the architecture.

getSizeOfHeadersback to summary
public int getSizeOfHeaders()

Combined size of MS-DOS stub, PE Header, and section headers rounded up to a multiple of FileAlignment.

getSizeOfHeapCommitback to summary
public long getSizeOfHeapCommit()

Size of local heap space to commit.

getSizeOfHeapReserveback to summary
public long getSizeOfHeapReserve()

Size of local heap space to reserve. Only the Heap Commit Size is committed; the rest is made available one page at a time, until reserve size is reached.

getSizeOfImageback to summary
public int getSizeOfImage()

Size, in bytes, of image, including all headers; must be a multiple of Section Alignment.

getSizeOfStackCommitback to summary
public long getSizeOfStackCommit()

Size of stack to commit.

getSizeOfStackReserveback to summary
public long getSizeOfStackReserve()

Size of stack to reserve. Only the Stack Commit Size is committed; the rest is made available one page at a time, until reserve size is reached.

getSubsystemback to summary
public short getSubsystem()

Subsystem required to run this image; returns one of the constants defined in sun.jvm.hotspot.debugger.win32.coff.WindowsNTSubsystem.