-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathREFS - $AttrDef Structure.tpl
More file actions
76 lines (70 loc) · 2.2 KB
/
REFS - $AttrDef Structure.tpl
File metadata and controls
76 lines (70 loc) · 2.2 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Template "REFS - $AttrDef Structure"
// Costas Katsavounidis - 2021 v.1
// kacos2000 [at] gmail.com
// https://github.com/kacos2000
description "REFS - $AttrDef Metafile Structure"
read-only
begin
Numbering 1
{
Section "Attribute #~"
little-endian string16 64 "Attribute Label"
uint32 "Attribute Type (Decimal)"
ifEqual "Attribute Type (Decimal)" 0
end
endIf
move -4
hex 4 "Attribute Type (Hex)"
hex 4 "Display rule"
hex 4 "Collation rule"
ifEqual "Collation rule" 0x00000000
move -4
hexadecimal uint32 "-> Binary"
else
ifEqual "Collation rule" 0x00000001
move -4
hexadecimal uint32 "-> Filename"
else
ifEqual "Collation rule" 0x00000002
move -4
hexadecimal uint32 "-> Unicode String"
else
ifEqual "Collation rule" 0x00000010
move -4
hexadecimal uint32 "-> Unsigned Long"
else
ifEqual "Collation rule" 0x00000011
move -4
hexadecimal uint32 "-> SID"
else
ifEqual "Collation rule" 0x00000012
move -4
hexadecimal uint32 "-> Security Hash"
else
ifEqual "Collation rule" 0x00000013
move -4
hexadecimal uint32 "-> Multiple Unsigned Longs"
EndIf
hex 4 "Flags"
ifEqual "Flags" 0x02000000
move -4
hexadecimal uint32 "-> Indexed"
else
ifEqual "Flags" 0x40000000
move -4
hexadecimal uint32 "-> Always Resident"
else
ifEqual "Flags" 0x42000000
move -4
hexadecimal uint32 "-> Always Resident & Indexed"
else
ifEqual "Flags" 0x80000000
move -4
hexadecimal uint32 "-> Allowed to be Non-Resident"
EndIf
int32 "Minimum Attribute Size"
int64 "Maximum Attribute Size"
// total refs AttrDef entry size = 156
endSection
}[16]
end