Ignore:
Timestamp:
Oct 22, 2006, 8:05:28 PM (19 years ago)
Author:
bird
Message:

image format headers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrInternal.h

    r2826 r2827  
    3232extern "C" {
    3333#endif
     34
     35/* ignore definitions in winnt.h */
     36#undef IMAGE_DOS_SIGNATURE
     37#undef IMAGE_NT_SIGNATURE
     38
     39/** @name Signatures we know
     40 * @{ */
     41/** ELF signature ("\x7fELF"). */
     42#define IMAGE_ELF_SIGNATURE KLDRHLP_LE2H_U32(0x7f | ('E' << 8) | ((uint32_t)'L' << 16) | ((uint32_t)'F' << 24))
     43/** PE signature ("PE\0\0"). */
     44#define IMAGE_NT_SIGNATURE  KLDRHLP_LE2H_U32('P' | ('E' << 8))
     45/** LX signature ("LX") */
     46#define IMAGE_LX_SIGNATURE  KLDRHLP_LE2H_U16('L' | ('X' << 8))
     47/** LE signature ("LE") */
     48#define IMAGE_LE_SIGNATURE  KLDRHLP_LE2H_U16('L' | ('E' << 8))
     49/** NE signature ("NE") */
     50#define IMAGE_NE_SIGNATURE  KLDRHLP_LE2H_U16('N' | ('E' << 8))
     51/** MZ signature ("MZ"). */
     52#define IMAGE_DOS_SIGNATURE KLDRHLP_LE2H_U16('M' | ('Z' << 8))
     53/** @} */
     54
    3455
    3556/** Native file provider operations. */
Note: See TracChangeset for help on using the changeset viewer.