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.

53 lines
1.4 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: ResHead.H
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. // Definitions of the header structures in a RES32 file
  9. //
  10. //-----------------------------------------------------------------------------
  11. #ifndef __RESHEAD_H
  12. #define __RESHEAD_H
  13. const DWORD ESP_CHAR_USEARRAYVALUE = 1; //Cause the Win32 parser
  14. //to use the type value
  15. //from the LocItem array
  16. //instead of the res file
  17. //in the CrackRes32Image
  18. //function.
  19. // Structure of a res file header. The header consists
  20. // of two fixed sized parts with a variable sized middle
  21. // The middle structure appears twice the first is the
  22. // type ID and the second one is the Res ID
  23. #include <pshpack1.h>
  24. typedef struct
  25. {
  26. DWORD dwDataSize;
  27. DWORD dwHeaderSize;
  28. } RESHEAD1;
  29. typedef struct
  30. {
  31. DWORD dwDataVersion;
  32. WORD wFlags;
  33. WORD wLang;
  34. DWORD dwResVersion;
  35. DWORD dwCharacteristics;
  36. } RESHEAD3;
  37. // Format of our private header data it has an offset to HEADER3
  38. typedef struct
  39. {
  40. DWORD dwOffsetHead3;
  41. RESHEAD1 reshead1;
  42. } PVHEAD;
  43. #include <poppack.h>
  44. #endif //__RESHEAD_H