fpcrestypes.pp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. unit fpcrestypes;
  12. {$MODE OBJFPC}
  13. interface
  14. type
  15. TResHdr32 = packed record
  16. rootptr : longword; //pointer to root node
  17. count : longword; //number of resources in the file
  18. usedhandles : longword; //set at runtime
  19. handles : longword; //pointer to handles
  20. end;
  21. TResHdr64 = packed record
  22. rootptr : qword; //pointer to root node
  23. count : longword; //number of resources in the file
  24. usedhandles : longword; //set at runtime
  25. handles : qword; //pointer to handles
  26. end;
  27. TResInfoNode32 = packed record
  28. nameid : longword; //name offset / integer ID / languageID
  29. ncount : longword; //named sub-entries count
  30. idcountsize : longword; //id sub-entries count / resource size
  31. subptr : longword; //first sub-entry offset
  32. end;
  33. TResInfoNode64 = packed record
  34. nameid : qword; //name offset / integer ID / languageID
  35. ncount : longword; //named sub-entries count
  36. idcountsize : longword; //id sub-entries count / resource size
  37. subptr : qword; //first sub-entry offset
  38. end;
  39. implementation
  40. end.