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