Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
783 B

  1. // EXE.H - read windows exe headers
  2. /* Attempt to get information of type fInfo on the file szFile, depositing
  3. the information (to a maximum of nBuf characters) in pBuf. If BOOL fError
  4. is set, then display error messages when something goes wrong... */
  5. DWORD FAR PASCAL GetExeInfo(LPTSTR szFile, void FAR *pBuf, int cbBuf, UINT fInfo);
  6. #define GEI_MODNAME 0x01
  7. #define GEI_DESCRIPTION 0x02
  8. #define GEI_FLAGS 0x03
  9. #define GEI_EXEHDR 0x04
  10. #define GEI_FAPI 0x05
  11. #define GEI_EXPVER 0x06
  12. #define PEMAGIC 0x4550 /* 'PE' */
  13. #define NEMAGIC 0x454E /* 'NE' */
  14. // Second parameter must be writeable because that's how Kernel32 likes it...
  15. UINT WinExecN(LPCTSTR pszPath, LPTSTR pszPathAndArgs, UINT uCmdShow);