fpcrestypes.pp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2008 by Giulio Bernardi
  4. Common types used by various readers and writers
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. {$IFNDEF FPC_DOTTEDUNITS}
  12. unit fpcrestypes;
  13. {$ENDIF FPC_DOTTEDUNITS}
  14. {$MODE OBJFPC}
  15. interface
  16. type
  17. TResHdr32 = packed record
  18. rootptr : longword; //pointer to root node
  19. count : longword; //number of resources in the file
  20. usedhandles : longword; //set at runtime
  21. handles : longword; //pointer to handles
  22. end;
  23. TResHdr64 = packed record
  24. rootptr : qword; //pointer to root node
  25. count : longword; //number of resources in the file
  26. usedhandles : longword; //set at runtime
  27. handles : qword; //pointer to handles
  28. end;
  29. TResInfoNode32 = packed record
  30. nameid : longword; //name offset / integer ID / languageID
  31. ncount : longword; //named sub-entries count
  32. idcountsize : longword; //id sub-entries count / resource size
  33. subptr : longword; //first sub-entry offset
  34. end;
  35. TResInfoNode64 = packed record
  36. nameid : qword; //name offset / integer ID / languageID
  37. ncount : longword; //named sub-entries count
  38. idcountsize : longword; //id sub-entries count / resource size
  39. subptr : qword; //first sub-entry offset
  40. end;
  41. implementation
  42. end.