home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-05-09 | 8.9 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: SetGestaltValue1.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu May 9 21:39:50 1996, modified Thu May 9 21:39:50 1996, creator 'CWIE', type ASCII, 8411 bytes "SetGestaltValue1.c" , at 0x215b 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 53 65 74 47 65 73 | 74 61 6c 74 56 61 6c 75 |..SetGes|taltValu|
|00000010| 65 31 2e 63 00 00 00 00 | 00 00 00 00 00 00 00 00 |e1.c....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 20 db 00 | 00 01 9a ad b8 4e e6 ad |..... ..|.....N..|
|00000060| b8 4e e6 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.N......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 90 e4 00 00 |........|........|
|00000080| 2f 2a 0d 53 65 74 47 65 | 73 74 61 6c 74 56 61 6c |/*.SetGe|staltVal|
|00000090| 75 65 31 2e 63 0d 0d 65 | 6e 75 6d 7b 67 65 73 74 |ue1.c..e|num{gest|
|000000a0| 61 6c 74 50 73 79 63 68 | 54 61 62 6c 65 3d 27 50 |altPsych|Table='P|
|000000b0| 73 79 63 27 7d 09 09 09 | 09 09 09 2f 2f 20 74 68 |syc'}...|...// th|
|000000c0| 69 73 20 63 61 6e 20 62 | 65 20 77 68 61 74 65 76 |is can b|e whatev|
|000000d0| 65 72 20 79 6f 75 20 77 | 61 6e 74 0d 0d 65 72 72 |er you w|ant..err|
|000000e0| 6f 72 3d 53 65 74 47 65 | 73 74 61 6c 74 56 61 6c |or=SetGe|staltVal|
|000000f0| 75 65 31 28 67 65 73 74 | 61 6c 74 50 73 79 63 68 |ue1(gest|altPsych|
|00000100| 54 61 62 6c 65 2c 74 61 | 62 6c 65 29 3b 09 2f 2f |Table,ta|ble);.//|
|00000110| 20 69 6e 73 74 61 6c 6c | 20 61 20 74 61 62 6c 65 | install| a table|
|00000120| 20 61 64 64 72 65 73 73 | 0d 65 72 72 6f 72 3d 53 | address|.error=S|
|00000130| 65 74 47 65 73 74 61 6c | 74 56 61 6c 75 65 31 28 |etGestal|tValue1(|
|00000140| 67 65 73 74 61 6c 74 50 | 73 79 63 68 54 61 62 6c |gestaltP|sychTabl|
|00000150| 65 2c 4e 55 4c 4c 29 3b | 09 09 2f 2f 20 72 65 70 |e,NULL);|..// rep|
|00000160| 6c 61 63 65 20 74 68 65 | 20 74 61 62 6c 65 20 61 |lace the| table a|
|00000170| 64 64 72 65 73 73 20 77 | 69 74 68 20 4e 55 4c 4c |ddress w|ith NULL|
|00000180| 0d 0d 65 72 72 6f 72 3d | 47 65 73 74 61 6c 74 28 |..error=|Gestalt(|
|00000190| 67 65 73 74 61 6c 74 50 | 73 79 63 68 54 61 62 6c |gestaltP|sychTabl|
|000001a0| 65 2c 26 74 61 62 6c 65 | 50 74 72 29 3b 09 09 09 |e,&table|Ptr);...|
|000001b0| 2f 2f 20 72 65 74 72 69 | 65 76 65 20 74 68 65 20 |// retri|eve the |
|000001c0| 74 61 62 6c 65 20 61 64 | 64 72 65 73 73 0d 0d 53 |table ad|dress..S|
|000001d0| 65 74 47 65 73 74 61 6c | 74 56 61 6c 75 65 31 2e |etGestal|tValue1.|
|000001e0| 63 20 70 72 6f 76 69 64 | 65 73 20 61 6e 20 61 70 |c provid|es an ap|
|000001f0| 70 72 6f 78 69 6d 61 74 | 65 20 65 71 75 69 76 61 |proximat|e equiva|
|00000200| 6c 65 6e 74 20 66 6f 72 | 20 74 68 65 0d 53 65 74 |lent for| the.Set|
|00000210| 47 65 73 74 61 6c 74 56 | 61 6c 75 65 28 29 20 66 |GestaltV|alue() f|
|00000220| 75 6e 63 74 69 6f 6e 20 | 70 72 6f 76 69 64 65 64 |unction |provided|
|00000230| 20 69 6e 20 53 79 73 74 | 65 6d 20 37 2e 35 20 28 | in Syst|em 7.5 (|
|00000240| 73 65 65 20 41 70 70 6c | 65 27 73 0d 47 65 73 74 |see Appl|e's.Gest|
|00000250| 61 6c 74 2e 68 29 2c 20 | 62 75 74 20 6f 6e 6c 79 |alt.h), |but only|
|00000260| 20 72 65 71 75 69 72 65 | 73 20 53 79 73 74 65 6d | require|s System|
|00000270| 20 37 20 6f 72 20 62 65 | 74 74 65 72 2e 20 53 65 | 7 or be|tter. Se|
|00000280| 74 47 65 73 74 61 6c 74 | 56 61 6c 75 65 31 28 29 |tGestalt|Value1()|
|00000290| 0d 61 6c 6c 6f 77 73 20 | 79 6f 75 20 74 6f 20 69 |.allows |you to i|
|000002a0| 6e 73 74 61 6c 6c 20 61 | 20 6e 65 77 20 47 65 73 |nstall a| new Ges|
|000002b0| 74 61 6c 74 20 73 65 6c | 65 63 74 6f 72 20 6f 72 |talt sel|ector or|
|000002c0| 20 72 65 70 6c 61 63 65 | 20 61 6e 20 65 78 69 73 | replace| an exis|
|000002d0| 74 69 6e 67 20 73 65 6c | 65 63 74 6f 72 0d 69 6e |ting sel|ector.in|
|000002e0| 73 74 61 6c 6c 65 64 20 | 62 79 20 53 65 74 47 65 |stalled |by SetGe|
|000002f0| 73 74 61 6c 74 31 2e 20 | 44 4f 4e 27 54 20 75 73 |stalt1. |DON'T us|
|00000300| 65 20 53 65 74 47 65 73 | 74 61 6c 74 56 61 6c 75 |e SetGes|taltValu|
|00000310| 65 31 28 29 20 74 6f 20 | 72 65 70 6c 61 63 65 20 |e1() to |replace |
|00000320| 61 0d 70 72 65 2d 65 78 | 69 73 74 69 6e 67 20 73 |a.pre-ex|isting s|
|00000330| 65 6c 65 63 74 6f 72 20 | 4e 4f 54 20 69 6e 73 74 |elector |NOT inst|
|00000340| 61 6c 6c 65 64 20 62 79 | 20 53 65 74 47 65 73 74 |alled by| SetGest|
|00000350| 61 6c 74 31 20 62 65 63 | 61 75 73 65 20 69 74 73 |alt1 bec|ause its|
|00000360| 20 61 74 74 65 6d 70 74 | 0d 74 6f 20 66 72 65 65 | attempt|.to free|
|00000370| 20 74 68 65 20 73 74 6f | 72 61 67 65 20 28 75 70 | the sto|rage (up|
|00000380| 70 20 61 6e 64 20 63 6f | 64 65 29 20 6d 61 79 20 |p and co|de) may |
|00000390| 66 61 69 6c 2e 0d 0d 54 | 68 65 20 4d 61 63 69 6e |fail...T|he Macin|
|000003a0| 74 6f 73 68 20 47 65 73 | 74 61 6c 74 28 29 20 66 |tosh Ges|talt() f|
|000003b0| 75 6e 63 74 69 6f 6e 20 | 70 72 6f 76 69 64 65 73 |unction |provides|
|000003c0| 20 61 20 77 61 79 20 66 | 6f 72 20 6d 61 6e 79 20 | a way f|or many |
|000003d0| 61 75 74 6f 6e 6f 6d 6f | 75 73 0d 70 72 6f 67 72 |autonomo|us.progr|
|000003e0| 61 6d 73 20 74 6f 20 73 | 68 61 72 65 20 61 20 67 |ams to s|hare a g|
|000003f0| 6c 6f 62 61 6c 20 74 61 | 62 6c 65 2e 20 41 6c 6c |lobal ta|ble. All|
|00000400| 20 74 68 65 20 70 72 6f | 67 72 61 6d 73 20 73 69 | the pro|grams si|
|00000410| 6d 70 6c 79 20 63 61 6c | 6c 20 47 65 73 74 61 6c |mply cal|l Gestal|
|00000420| 74 28 29 0d 77 69 74 68 | 20 74 68 65 20 73 61 6d |t().with| the sam|
|00000430| 65 20 73 65 6c 65 63 74 | 6f 72 20 61 6e 64 20 47 |e select|or and G|
|00000440| 65 73 74 61 6c 74 20 72 | 65 74 75 72 6e 73 20 74 |estalt r|eturns t|
|00000450| 68 65 20 74 61 62 6c 65 | 20 61 64 64 72 65 73 73 |he table| address|
|00000460| 2e 20 41 6e 79 0d 70 72 | 6f 67 72 61 6d 20 63 61 |. Any.pr|ogram ca|
|00000470| 6c 6c 69 6e 67 20 47 65 | 73 74 61 6c 74 28 29 20 |lling Ge|stalt() |
|00000480| 74 6f 20 67 65 74 20 74 | 68 65 20 74 61 62 6c 65 |to get t|he table|
|00000490| 20 61 64 64 72 65 73 73 | 20 73 68 6f 75 6c 64 20 | address| should |
|000004a0| 63 68 65 63 6b 20 74 68 | 61 74 0d 65 72 72 6f 72 |check th|at.error|
|000004b0| 3d 3d 30 20 61 6e 64 20 | 74 68 61 74 20 74 61 62 |==0 and |that tab|
|000004c0| 6c 65 21 3d 4e 55 4c 4c | 20 62 65 66 6f 72 65 20 |le!=NULL| before |
|000004d0| 75 73 69 6e 67 20 74 68 | 65 20 74 61 62 6c 65 2e |using th|e table.|
|000004e0| 20 54 6f 20 73 65 74 20 | 74 68 65 0d 73 65 6c 65 | To set |the.sele|
|000004f0| 63 74 6f 72 20 61 6e 64 | 20 74 61 62 6c 65 20 61 |ctor and| table a|
|00000500| 64 64 72 65 73 73 20 69 | 6e 20 47 65 73 74 61 6c |ddress i|n Gestal|
|00000510| 74 20 79 6f 75 20 63 61 | 6e 20 65 69 74 68 65 72 |t you ca|n either|
|00000520| 20 75 73 65 0d 53 65 74 | 47 65 73 74 61 6c 74 56 | use.Set|GestaltV|
|00000530| 61 6c 75 65 31 20 28 74 | 68 69 73 20 66 69 6c 65 |alue1 (t|his file|
|00000540| 29 2c 20 77 68 69 63 68 | 20 77 6f 72 6b 73 20 6f |), which| works o|
|00000550| 6e 20 61 6c 6c 20 4d 61 | 63 20 53 79 73 74 65 6d |n all Ma|c System|
|00000560| 73 20 61 6e 64 0d 61 72 | 63 68 69 74 65 63 74 75 |s and.ar|chitectu|
|00000570| 72 65 73 2c 20 6f 72 20 | 79 6f 75 20 63 61 6e 20 |res, or |you can |
|00000580| 75 73 65 20 41 70 70 6c | 65 27 73 20 72 6f 75 74 |use Appl|e's rout|
|00000590| 69 6e 65 73 2e 0d 0d 49 | 6e 73 74 65 61 64 20 6f |ines...I|nstead o|
|000005a0| 66 20 75 73 69 6e 67 20 | 53 65 74 47 65 73 74 61 |f using |SetGesta|
|000005b0| 6c 74 56 61 6c 75 65 31 | 20 28 74 68 69 73 20 66 |ltValue1| (this f|
|000005c0| 69 6c 65 29 2c 20 79 6f | 75 20 63 6f 75 6c 64 20 |ile), yo|u could |
|000005d0| 75 73 65 20 41 70 70 6c | 65 27 73 0d 72 6f 75 74 |use Appl|e's.rout|
|000005e0| 69 6e 65 73 2e 20 53 79 | 73 74 65 6d 20 37 2e 35 |ines. Sy|stem 7.5|
|000005f0| 20 70 72 6f 76 69 64 65 | 73 20 4e 65 77 47 65 73 | provide|s NewGes|
|00000600| 74 61 6c 74 56 61 6c 75 | 65 28 29 20 61 6e 64 20 |taltValu|e() and |
|00000610| 53 65 74 47 65 73 74 61 | 6c 74 56 61 6c 75 65 28 |SetGesta|ltValue(|
|00000620| 29 0d 28 73 65 65 20 41 | 70 70 6c 65 27 73 20 47 |).(see A|pple's G|
|00000630| 65 73 74 61 6c 74 2e 68 | 29 2e 20 50 6f 77 65 72 |estalt.h|). Power|
|00000640| 50 43 20 63 6f 6d 70 75 | 74 65 72 73 20 72 65 71 |PC compu|ters req|
|00000650| 75 69 72 65 20 53 79 73 | 74 65 6d 20 37 2e 35 20 |uire Sys|tem 7.5 |
|00000660| 6f 72 20 62 65 74 74 65 | 72 2c 0d 73 6f 20 79 6f |or bette|r,.so yo|
|00000670| 75 72 20 70 70 63 20 63 | 6f 64 65 20 63 61 6e 20 |ur ppc c|ode can |
|00000680| 73 61 66 65 6c 79 20 61 | 73 73 75 6d 65 20 74 68 |safely a|ssume th|
|00000690| 65 20 70 72 65 73 65 6e | 63 65 20 6f 66 20 74 68 |e presen|ce of th|
|000006a0| 6f 73 65 20 72 6f 75 74 | 69 6e 65 73 2e 20 49 66 |ose rout|ines. If|
|000006b0| 0d 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 20 6d 61 |.your pr|ogram ma|
|000006c0| 79 20 62 65 20 72 75 6e | 20 6f 6e 20 36 38 6b 20 |y be run| on 68k |
|000006d0| 63 6f 6d 70 75 74 65 72 | 73 20 72 75 6e 6e 69 6e |computer|s runnin|
|000006e0| 67 20 61 6e 20 65 61 72 | 6c 69 65 72 20 53 79 73 |g an ear|lier Sys|
|000006f0| 74 65 6d 2c 20 74 68 65 | 6e 0d 79 6f 75 72 20 36 |tem, the|n.your 6|
|00000700| 38 6b 20 63 6f 64 65 20 | 73 68 6f 75 6c 64 20 6c |8k code |should l|
|00000710| 69 6e 6b 20 69 6e 20 41 | 70 70 6c 65 27 73 20 47 |ink in A|pple's G|
|00000720| 65 73 74 61 6c 74 56 61 | 6c 75 65 2e 6f 20 6c 69 |estaltVa|lue.o li|
|00000730| 62 72 61 72 79 2c 20 77 | 68 69 63 68 20 41 70 70 |brary, w|hich App|
|00000740| 6c 65 0d 73 75 70 70 6c | 69 65 73 20 6f 6e 20 74 |le.suppl|ies on t|
|00000750| 68 65 69 72 20 64 65 76 | 65 6c 6f 70 65 72 20 64 |heir dev|eloper d|
|00000760| 69 73 6b 73 2e 0d 0d 49 | 6e 76 65 6e 74 20 79 6f |isks...I|nvent yo|
|00000770| 75 72 20 6f 77 6e 20 73 | 65 6c 65 63 74 6f 72 20 |ur own s|elector |
|00000780| 6e 61 6d 65 2c 20 65 2e | 67 2e 20 67 65 73 74 61 |name, e.|g. gesta|
|00000790| 6c 74 50 73 79 63 68 54 | 61 62 6c 65 2e 20 42 79 |ltPsychT|able. By|
|000007a0| 20 63 6f 6e 76 65 6e 74 | 69 6f 6e 2c 0d 74 68 65 | convent|ion,.the|
|000007b0| 20 73 65 6c 65 63 74 6f | 72 20 6e 61 6d 65 20 73 | selecto|r name s|
|000007c0| 68 6f 75 6c 64 20 62 65 | 67 69 6e 20 77 69 74 68 |hould be|gin with|
|000007d0| 20 22 67 65 73 74 61 6c | 74 22 20 61 6e 64 20 65 | "gestal|t" and e|
|000007e0| 6e 64 20 77 69 74 68 20 | 22 54 61 62 6c 65 22 2e |nd with |"Table".|
|000007f0| 20 49 74 73 0d 76 61 6c | 75 65 20 69 73 20 61 20 | Its.val|ue is a |
|00000800| 66 6f 75 72 2d 63 68 61 | 72 61 63 74 65 72 20 63 |four-cha|racter c|
|00000810| 6f 64 65 2c 20 6c 69 6b | 65 20 27 50 73 79 63 27 |ode, lik|e 'Psyc'|
|00000820| 2e 20 41 70 70 6c 65 20 | 72 65 73 65 72 76 65 73 |. Apple |reserves|
|00000830| 20 61 6c 6c 20 74 68 65 | 0d 6c 6f 77 65 72 63 61 | all the|.lowerca|
|00000840| 73 65 2d 6f 6e 6c 79 20 | 63 6f 64 65 73 20 66 6f |se-only |codes fo|
|00000850| 72 20 69 74 73 65 6c 66 | 2e 0d 0d 49 6e 20 6f 72 |r itself|...In or|
|00000860| 64 65 72 20 66 6f 72 20 | 74 68 65 20 47 65 73 74 |der for |the Gest|
|00000870| 61 6c 74 20 73 65 6c 65 | 63 74 6f 72 20 72 6f 75 |alt sele|ctor rou|
|00000880| 74 69 6e 65 20 74 6f 20 | 73 74 69 63 6b 20 61 72 |tine to |stick ar|
|00000890| 6f 75 6e 64 2c 20 61 6e | 64 20 6e 6f 74 20 63 61 |ound, an|d not ca|
|000008a0| 75 73 65 0d 67 72 69 65 | 66 20 74 6f 20 47 65 73 |use.grie|f to Ges|
|000008b0| 74 61 6c 74 20 62 79 20 | 64 69 73 61 70 70 65 61 |talt by |disappea|
|000008c0| 72 69 6e 67 20 77 68 65 | 6e 20 74 68 65 20 61 70 |ring whe|n the ap|
|000008d0| 70 6c 69 63 61 74 69 6f | 6e 20 71 75 69 74 73 2c |plicatio|n quits,|
|000008e0| 20 77 65 20 66 6f 6c 6c | 6f 77 0d 41 70 70 6c 65 | we foll|ow.Apple|
|000008f0| 27 73 20 67 75 69 64 65 | 6c 69 6e 65 73 20 61 6e |'s guide|lines an|
|00000900| 64 20 69 6e 73 74 61 6c | 6c 20 69 74 20 69 6e 20 |d instal|l it in |
|00000910| 74 68 65 20 53 79 73 74 | 65 6d 20 68 65 61 70 2e |the Syst|em heap.|
|00000920| 20 4f 6e 63 65 20 69 6e | 73 74 61 6c 6c 65 64 0d | Once in|stalled.|
|00000930| 69 74 27 6c 6c 20 73 74 | 61 79 20 74 68 65 72 65 |it'll st|ay there|
|00000940| 20 75 6e 74 69 6c 20 74 | 68 65 20 6d 61 63 68 69 | until t|he machi|
|00000950| 6e 65 20 69 73 20 72 65 | 62 6f 6f 74 65 64 2e 20 |ne is re|booted. |
|00000960| 59 6f 75 20 63 61 6e 27 | 74 20 67 65 74 20 72 69 |You can'|t get ri|
|00000970| 64 20 6f 66 20 61 0d 73 | 65 6c 65 63 74 6f 72 20 |d of a.s|elector |
|00000980| 6f 6e 63 65 20 79 6f 75 | 27 76 65 20 69 6e 73 74 |once you|'ve inst|
|00000990| 61 6c 6c 65 64 20 69 74 | 2c 20 62 75 74 20 79 6f |alled it|, but yo|
|000009a0| 75 20 63 61 6e 20 63 61 | 6c 6c 20 53 65 74 47 65 |u can ca|ll SetGe|
|000009b0| 73 74 61 6c 74 56 61 6c | 75 65 31 28 29 0d 61 67 |staltVal|ue1().ag|
|000009c0| 61 69 6e 2c 20 61 6e 64 | 20 61 73 73 69 67 6e 20 |ain, and| assign |
|000009d0| 74 68 65 20 72 65 73 70 | 6f 6e 73 65 20 4e 55 4c |the resp|onse NUL|
|000009e0| 4c 2e 0d 0d 54 68 65 20 | 73 65 6c 65 63 74 6f 72 |L...The |selector|
|000009f0| 20 66 75 6e 63 74 69 6f | 6e 20 74 68 61 74 20 77 | functio|n that w|
|00000a00| 65 20 69 6e 73 74 61 6c | 6c 20 69 6e 74 6f 20 74 |e instal|l into t|
|00000a10| 68 65 20 53 79 73 74 65 | 6d 20 48 65 61 70 20 69 |he Syste|m Heap i|
|00000a20| 73 20 36 38 6b 20 63 6f | 64 65 2c 0d 62 65 63 61 |s 68k co|de,.beca|
|00000a30| 75 73 65 20 49 20 6b 6e | 6f 77 20 68 6f 77 20 74 |use I kn|ow how t|
|00000a40| 6f 20 63 6f 70 79 20 73 | 75 63 68 20 72 6f 75 74 |o copy s|uch rout|
|00000a50| 69 6e 65 73 2c 20 61 6e | 64 20 68 61 76 65 20 68 |ines, an|d have h|
|00000a60| 61 64 20 6e 6f 20 73 75 | 63 63 65 73 73 20 64 6f |ad no su|ccess do|
|00000a70| 69 6e 67 0d 73 6f 20 77 | 69 74 68 20 70 70 63 20 |ing.so w|ith ppc |
|00000a80| 63 6f 64 65 2e 20 54 6f | 20 68 61 76 65 20 74 68 |code. To| have th|
|00000a90| 65 20 36 38 6b 20 63 6f | 64 65 20 61 76 61 69 6c |e 68k co|de avail|
|00000aa0| 61 62 6c 65 20 65 76 65 | 6e 20 77 68 65 6e 20 74 |able eve|n when t|
|00000ab0| 68 69 73 20 66 69 6c 65 | 20 69 73 0d 63 6f 6d 70 |his file| is.comp|
|00000ac0| 69 6c 65 64 20 66 6f 72 | 20 70 70 63 2c 20 77 69 |iled for| ppc, wi|
|00000ad0| 74 68 6f 75 74 20 72 65 | 73 6f 72 74 69 6e 67 20 |thout re|sorting |
|00000ae0| 74 6f 20 75 73 69 6e 67 | 20 72 65 73 6f 75 72 63 |to using| resourc|
|00000af0| 65 73 2c 20 69 2e 65 2e | 20 6d 75 6c 74 69 70 6c |es, i.e.| multipl|
|00000b00| 65 20 66 69 6c 65 73 2c | 0d 69 20 73 61 76 65 64 |e files,|.i saved|
|00000b10| 20 74 68 65 20 6d 61 63 | 68 69 6e 65 20 63 6f 64 | the mac|hine cod|
|00000b20| 65 20 66 72 6f 6d 20 61 | 20 64 69 73 61 73 73 65 |e from a| disasse|
|00000b30| 6d 62 6c 79 20 69 6e 20 | 61 20 43 20 61 72 72 61 |mbly in |a C arra|
|00000b40| 79 2e 0d 0d 51 55 45 53 | 54 49 4f 4e 3a 0d 49 6e |y...QUES|TION:.In|
|00000b50| 20 74 68 69 6e 6b 69 6e | 67 20 61 62 6f 75 74 20 | thinkin|g about |
|00000b60| 74 68 65 20 75 73 65 73 | 20 6f 66 20 74 68 69 73 |the uses| of this|
|00000b70| 20 72 6f 75 74 69 6e 65 | 2c 20 69 74 20 6f 63 63 | routine|, it occ|
|00000b80| 75 72 72 65 64 20 74 6f | 20 6d 65 20 74 68 61 74 |urred to| me that|
|00000b90| 20 69 66 20 61 6e 0d 61 | 70 70 6c 69 63 61 74 69 | if an.a|pplicati|
|00000ba0| 6f 6e 20 63 72 65 61 74 | 65 73 20 61 20 74 61 62 |on creat|es a tab|
|00000bb0| 6c 65 20 69 6e 20 69 74 | 73 20 6f 77 6e 20 68 65 |le in it|s own he|
|00000bc0| 61 70 20 73 70 61 63 65 | 20 61 6e 64 20 70 75 62 |ap space| and pub|
|00000bd0| 6c 69 73 68 65 73 20 74 | 68 65 20 74 61 62 6c 65 |lishes t|he table|
|00000be0| 27 73 0d 61 64 64 72 65 | 73 73 20 76 69 61 20 47 |'s.addre|ss via G|
|00000bf0| 65 73 74 61 6c 74 2c 20 | 74 68 65 6e 20 69 74 20 |estalt, |then it |
|00000c00| 6d 69 67 68 74 20 68 61 | 70 70 65 6e 20 74 68 61 |might ha|ppen tha|
|00000c10| 74 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |t the ap|plicatio|
|00000c20| 6e 20 69 73 0d 61 62 6e | 6f 72 6d 61 6c 6c 79 20 |n is.abn|ormally |
|00000c30| 74 65 72 6d 69 6e 61 74 | 65 64 20 62 65 66 6f 72 |terminat|ed befor|
|00000c40| 65 20 69 74 20 68 61 73 | 20 61 20 63 68 61 6e 63 |e it has| a chanc|
|00000c50| 65 20 74 6f 20 4e 55 4c | 4c 20 74 68 65 20 74 61 |e to NUL|L the ta|
|00000c60| 62 6c 65 20 61 64 64 72 | 65 73 73 0d 70 75 62 6c |ble addr|ess.publ|
|00000c70| 69 73 68 65 64 20 62 79 | 20 47 65 73 74 61 6c 74 |ished by| Gestalt|
|00000c80| 2e 20 54 68 65 20 53 79 | 73 74 65 6d 20 77 6f 75 |. The Sy|stem wou|
|00000c90| 6c 64 20 72 65 63 6f 76 | 65 72 20 74 68 65 20 61 |ld recov|er the a|
|00000ca0| 70 70 6c 69 63 61 74 69 | 6f 6e 27 73 20 6d 65 6d |pplicati|on's mem|
|00000cb0| 6f 72 79 2c 0d 69 6e 63 | 6c 75 64 69 6e 67 20 74 |ory,.inc|luding t|
|00000cc0| 68 65 20 74 61 62 6c 65 | 2c 20 62 75 74 20 74 68 |he table|, but th|
|00000cd0| 65 20 47 65 73 74 61 6c | 74 20 76 61 6c 75 65 20 |e Gestal|t value |
|00000ce0| 77 6f 75 6c 64 20 70 65 | 72 73 69 73 74 2c 20 64 |would pe|rsist, d|
|00000cf0| 61 6e 67 65 72 6f 75 73 | 6c 79 0d 70 72 6f 76 69 |angerous|ly.provi|
|00000d00| 64 69 6e 67 20 61 20 70 | 6f 69 6e 74 65 72 20 74 |ding a p|ointer t|
|00000d10| 6f 20 6d 65 6d 6f 72 79 | 20 74 68 61 74 20 74 68 |o memory| that th|
|00000d20| 65 20 53 79 73 74 65 6d | 20 63 6f 6e 73 69 64 65 |e System| conside|
|00000d30| 72 73 20 75 6e 61 73 73 | 69 67 6e 65 64 2e 20 53 |rs unass|igned. S|
|00000d40| 6f 2c 0d 68 6f 77 20 63 | 61 6e 20 77 65 20 74 65 |o,.how c|an we te|
|00000d50| 6c 6c 20 69 66 20 61 20 | 74 61 62 6c 65 20 70 6f |ll if a |table po|
|00000d60| 69 6e 74 65 72 20 69 73 | 20 76 61 6c 69 64 3f 0d |inter is| valid?.|
|00000d70| 0d 41 4e 53 57 45 52 3a | 0d 45 76 65 72 79 20 72 |.ANSWER:|.Every r|
|00000d80| 75 6e 6e 69 6e 67 20 61 | 70 70 6c 69 63 61 74 69 |unning a|pplicati|
|00000d90| 6f 6e 20 68 61 73 20 61 | 20 75 6e 69 71 75 65 20 |on has a| unique |
|00000da0| 70 72 6f 63 65 73 73 20 | 73 65 72 69 61 6c 20 6e |process |serial n|
|00000db0| 75 6d 62 65 72 20 28 70 | 73 6e 29 2e 20 41 6e 0d |umber (p|sn). An.|
|00000dc0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 68 61 74 |applicat|ion that|
|00000dd0| 20 63 72 65 61 74 65 73 | 20 61 20 74 61 62 6c 65 | creates| a table|
|00000de0| 20 69 6e 20 69 74 73 20 | 6f 77 6e 20 68 65 61 70 | in its |own heap|
|00000df0| 20 73 70 61 63 65 20 61 | 6e 64 20 70 75 62 6c 69 | space a|nd publi|
|00000e00| 73 68 65 73 20 74 68 65 | 0d 74 61 62 6c 65 27 73 |shes the|.table's|
|00000e10| 20 61 64 64 72 65 73 73 | 20 76 69 61 20 47 65 73 | address| via Ges|
|00000e20| 74 61 6c 74 20 73 68 6f | 75 6c 64 20 73 74 6f 72 |talt sho|uld stor|
|00000e30| 65 20 69 74 73 20 70 73 | 6e 20 69 6e 20 74 68 65 |e its ps|n in the|
|00000e40| 20 74 61 62 6c 65 2e 20 | 57 68 65 6e 65 76 65 72 | table. |Whenever|
|00000e50| 0d 77 65 20 72 65 74 72 | 69 65 76 65 20 61 20 74 |.we retr|ieve a t|
|00000e60| 61 62 6c 65 20 61 64 64 | 72 65 73 73 20 76 69 61 |able add|ress via|
|00000e70| 20 47 65 73 74 61 6c 74 | 20 77 65 20 73 68 6f 75 | Gestalt| we shou|
|00000e80| 6c 64 20 63 68 65 63 6b | 20 74 68 65 20 70 73 6e |ld check| the psn|
|00000e90| 20 66 69 65 6c 64 2e 0d | 49 66 20 74 68 65 20 74 | field..|If the t|
|00000ea0| 61 62 6c 65 27 73 20 70 | 73 6e 20 66 69 65 6c 64 |able's p|sn field|
|00000eb0| 20 69 73 20 6e 6f 74 20 | 4e 55 4c 4c 2c 20 74 68 | is not |NULL, th|
|00000ec0| 65 6e 20 77 65 20 73 68 | 6f 75 6c 64 20 6d 61 6b |en we sh|ould mak|
|00000ed0| 65 20 73 75 72 65 20 74 | 68 61 74 20 74 68 61 74 |e sure t|hat that|
|00000ee0| 0d 70 72 6f 63 65 73 73 | 20 69 73 20 73 74 69 6c |.process| is stil|
|00000ef0| 6c 20 72 75 6e 6e 69 6e | 67 2e 20 41 74 20 74 68 |l runnin|g. At th|
|00000f00| 65 20 6d 6f 6d 65 6e 74 | 2c 20 44 61 76 69 64 20 |e moment|, David |
|00000f10| 42 72 61 69 6e 61 72 64 | 20 61 6e 64 20 49 20 61 |Brainard| and I a|
|00000f20| 72 65 20 6f 6e 6c 79 0d | 77 6f 72 72 69 65 64 20 |re only.|worried |
|00000f30| 61 62 6f 75 74 20 4d 45 | 58 20 66 69 6c 65 73 20 |about ME|X files |
|00000f40| 74 68 61 74 20 61 6c 6c | 20 72 75 6e 20 61 73 20 |that all| run as |
|00000f50| 70 61 72 74 20 6f 66 20 | 74 68 65 20 4d 41 54 4c |part of |the MATL|
|00000f60| 41 42 0d 61 70 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |AB.appli|cation, |
|00000f70| 73 6f 20 69 74 20 69 73 | 20 65 6e 6f 75 67 68 20 |so it is| enough |
|00000f80| 66 6f 72 20 75 73 20 74 | 6f 20 73 69 6d 70 6c 79 |for us t|o simply|
|00000f90| 20 6d 61 6b 65 20 73 75 | 72 65 20 74 68 61 74 20 | make su|re that |
|00000fa0| 74 68 65 20 73 74 6f 72 | 65 64 0d 70 73 6e 20 6d |the stor|ed.psn m|
|00000fb0| 61 74 63 68 65 73 20 6f | 75 72 20 63 75 72 72 65 |atches o|ur curre|
|00000fc0| 6e 74 20 70 73 6e 2e 20 | 0d 0d 23 69 6e 63 6c 75 |nt psn. |..#inclu|
|00000fd0| 64 65 20 3c 50 72 6f 63 | 65 73 73 65 73 2e 68 3e |de <Proc|esses.h>|
|00000fe0| 0d 50 72 6f 63 65 73 73 | 53 65 72 69 61 6c 4e 75 |.Process|SerialNu|
|00000ff0| 6d 62 65 72 20 70 73 6e | 3b 0d 42 6f 6f 6c 65 61 |mber psn|;.Boolea|
|00001000| 6e 20 6f 75 72 73 3b 0d | 0d 2f 2f 20 77 68 65 6e |n ours;.|.// when|
|00001010| 20 77 65 20 6d 61 6b 65 | 20 74 68 65 20 74 61 62 | we make| the tab|
|00001020| 6c 65 2c 20 6d 61 72 6b | 20 69 74 20 61 73 20 6f |le, mark| it as o|
|00001030| 75 72 20 6f 77 6e 0d 65 | 72 72 6f 72 3d 47 65 74 |ur own.e|rror=Get|
|00001040| 43 75 72 72 65 6e 74 50 | 72 6f 63 65 73 73 28 26 |CurrentP|rocess(&|
|00001050| 74 61 62 6c 65 2d 3e 70 | 73 6e 29 3b 0d 0d 2f 2f |table->p|sn);..//|
|00001060| 20 77 68 65 6e 20 77 65 | 20 61 63 63 65 73 73 20 | when we| access |
|00001070| 74 68 65 20 74 61 62 6c | 65 2c 20 6d 61 6b 65 20 |the tabl|e, make |
|00001080| 73 75 72 65 20 74 68 61 | 74 20 69 74 27 73 20 6f |sure tha|t it's o|
|00001090| 75 72 73 0d 65 72 72 6f | 72 3d 47 65 74 43 75 72 |urs.erro|r=GetCur|
|000010a0| 72 65 6e 74 50 72 6f 63 | 65 73 73 28 26 70 73 6e |rentProc|ess(&psn|
|000010b0| 29 3b 0d 65 72 72 6f 72 | 3d 53 61 6d 65 50 72 6f |);.error|=SamePro|
|000010c0| 63 65 73 73 28 26 74 61 | 62 6c 65 2d 3e 70 73 6e |cess(&ta|ble->psn|
|000010d0| 2c 26 70 73 6e 2c 26 6f | 75 72 73 29 3b 20 20 2f |,&psn,&o|urs); /|
|000010e0| 2f 20 41 70 70 6c 65 20 | 73 61 79 73 20 74 68 69 |/ Apple |says thi|
|000010f0| 73 20 69 73 20 74 68 65 | 20 77 61 79 20 74 6f 20 |s is the| way to |
|00001100| 63 6f 6d 70 61 72 65 20 | 70 73 6e 73 2e 0d 69 66 |compare |psns..if|
|00001110| 28 21 6f 75 72 73 29 20 | 74 61 62 6c 65 20 69 73 |(!ours) |table is|
|00001120| 20 69 6e 76 61 6c 69 64 | 2c 20 0d 0d 48 49 53 54 | invalid|, ..HIST|
|00001130| 4f 52 59 3a 0d 35 2f 37 | 2f 39 36 20 64 67 70 20 |ORY:.5/7|/96 dgp |
|00001140| 77 72 6f 74 65 20 69 74 | 2e 0d 35 2f 39 2f 39 36 |wrote it|..5/9/96|
|00001150| 20 64 67 70 20 67 6f 74 | 20 69 74 20 74 6f 20 77 | dgp got| it to w|
|00001160| 6f 72 6b 20 6f 6e 20 70 | 70 63 2e 0d 2a 2f 0d 0d |ork on p|pc..*/..|
|00001170| 23 69 6e 63 6c 75 64 65 | 20 22 56 69 64 65 6f 54 |#include| "VideoT|
|00001180| 6f 6f 6c 62 6f 78 2e 68 | 22 0d 2f 2f 23 69 6e 63 |oolbox.h|".//#inc|
|00001190| 6c 75 64 65 20 3c 47 65 | 73 74 61 6c 74 2e 68 3e |lude <Ge|stalt.h>|
|000011a0| 0d 0d 2f 2f 20 6d 6f 64 | 69 66 69 65 64 20 66 72 |..// mod|ified fr|
|000011b0| 6f 6d 20 47 65 73 74 61 | 6c 74 2e 68 20 62 65 63 |om Gesta|lt.h bec|
|000011c0| 61 75 73 65 20 6f 75 72 | 20 72 6f 75 74 69 6e 65 |ause our| routine|
|000011d0| 20 69 73 20 41 4c 57 41 | 59 53 20 36 38 6b 20 63 | is ALWA|YS 68k c|
|000011e0| 6f 64 65 2e 0d 23 69 66 | 20 47 45 4e 45 52 41 54 |ode..#if| GENERAT|
|000011f0| 49 4e 47 43 46 4d 0d 23 | 64 65 66 69 6e 65 20 4e |INGCFM.#|define N|
|00001200| 65 77 36 38 6b 53 65 6c | 65 63 74 6f 72 46 75 6e |ew68kSel|ectorFun|
|00001210| 63 74 69 6f 6e 50 72 6f | 63 28 75 73 65 72 52 6f |ctionPro|c(userRo|
|00001220| 75 74 69 6e 65 29 09 09 | 5c 0d 09 09 28 53 65 6c |utine)..|\...(Sel|
|00001230| 65 63 74 6f 72 46 75 6e | 63 74 69 6f 6e 55 50 50 |ectorFun|ctionUPP|
|00001240| 29 20 4e 65 77 52 6f 75 | 74 69 6e 65 44 65 73 63 |) NewRou|tineDesc|
|00001250| 72 69 70 74 6f 72 28 28 | 50 72 6f 63 50 74 72 29 |riptor((|ProcPtr)|
|00001260| 28 75 73 65 72 52 6f 75 | 74 69 6e 65 29 2c 20 75 |(userRou|tine), u|
|00001270| 70 70 53 65 6c 65 63 74 | 6f 72 46 75 6e 63 74 69 |ppSelect|orFuncti|
|00001280| 6f 6e 50 72 6f 63 49 6e | 66 6f 2c 20 6b 4d 36 38 |onProcIn|fo, kM68|
|00001290| 6b 49 53 41 29 0d 23 65 | 6c 73 65 0d 23 64 65 66 |kISA).#e|lse.#def|
|000012a0| 69 6e 65 20 4e 65 77 36 | 38 6b 53 65 6c 65 63 74 |ine New6|8kSelect|
|000012b0| 6f 72 46 75 6e 63 74 69 | 6f 6e 50 72 6f 63 28 75 |orFuncti|onProc(u|
|000012c0| 73 65 72 52 6f 75 74 69 | 6e 65 29 09 09 5c 0d 09 |serRouti|ne)..\..|
|000012d0| 09 28 28 53 65 6c 65 63 | 74 6f 72 46 75 6e 63 74 |.((Selec|torFunct|
|000012e0| 69 6f 6e 55 50 50 29 20 | 28 75 73 65 72 52 6f 75 |ionUPP) |(userRou|
|000012f0| 74 69 6e 65 29 29 0d 23 | 65 6e 64 69 66 0d 0d 23 |tine)).#|endif..#|
|00001300| 69 66 20 28 54 48 49 4e | 4b 5f 43 20 7c 7c 20 54 |if (THIN|K_C || T|
|00001310| 48 49 4e 4b 5f 43 50 4c | 55 53 20 7c 7c 20 53 59 |HINK_CPL|US || SY|
|00001320| 4d 41 4e 54 45 43 5f 43 | 29 0d 09 23 70 72 61 67 |MANTEC_C|)..#prag|
|00001330| 6d 61 20 6f 70 74 69 6f | 6e 73 28 21 70 72 6f 66 |ma optio|ns(!prof|
|00001340| 69 6c 65 29 0d 23 65 6e | 64 69 66 0d 23 69 66 20 |ile).#en|dif.#if |
|00001350| 5f 5f 4d 57 45 52 4b 53 | 5f 5f 20 26 26 20 5f 5f |__MWERKS|__ && __|
|00001360| 70 72 6f 66 69 6c 65 5f | 5f 0d 09 23 70 72 61 67 |profile_|_..#prag|
|00001370| 6d 61 20 70 72 6f 66 69 | 6c 65 20 6f 66 66 0d 23 |ma profi|le off.#|
|00001380| 65 6e 64 69 66 0d 0d 2f | 2f 20 54 68 65 72 65 27 |endif../|/ There'|
|00001390| 73 20 6e 6f 74 68 69 6e | 67 20 73 70 65 63 69 61 |s nothin|g specia|
|000013a0| 6c 20 61 62 6f 75 74 20 | 74 68 65 73 65 20 6e 75 |l about |these nu|
|000013b0| 6d 62 65 72 73 2e 20 57 | 65 20 68 6f 70 65 20 74 |mbers. W|e hope t|
|000013c0| 68 61 74 20 74 68 65 79 | 20 77 6f 6e 27 74 20 63 |hat they| won't c|
|000013d0| 6f 69 6e 63 69 64 65 20 | 77 69 74 68 0d 2f 2f 20 |oincide |with.// |
|000013e0| 6d 61 63 68 69 6e 65 20 | 69 6e 73 74 72 75 63 74 |machine |instruct|
|000013f0| 69 6f 6e 73 20 75 73 65 | 64 20 69 6e 20 74 68 65 |ions use|d in the|
|00001400| 20 74 69 6e 79 20 4d 79 | 47 65 73 74 61 6c 74 56 | tiny My|GestaltV|
|00001410| 61 6c 75 65 20 70 72 6f | 67 72 61 6d 2c 20 69 6d |alue pro|gram, im|
|00001420| 6d 65 64 69 61 74 65 6c | 79 20 66 6f 6c 6c 6f 77 |mediatel|y follow|
|00001430| 69 6e 67 2e 0d 23 64 65 | 66 69 6e 65 20 53 45 4c |ing..#de|fine SEL|
|00001440| 45 43 54 4f 52 20 30 78 | 31 32 33 34 35 36 37 38 |ECTOR 0x|12345678|
|00001450| 0d 23 64 65 66 69 6e 65 | 20 52 45 53 50 4f 4e 53 |.#define| RESPONS|
|00001460| 45 20 30 78 38 37 36 35 | 34 33 32 31 0d 09 0d 2f |E 0x8765|4321.../|
|00001470| 2f 20 53 65 74 47 65 73 | 74 61 6c 74 56 61 6c 75 |/ SetGes|taltValu|
|00001480| 65 31 20 63 6f 70 69 65 | 73 20 74 68 65 20 63 6f |e1 copie|s the co|
|00001490| 6d 70 69 6c 65 64 20 76 | 65 72 73 69 6f 6e 20 28 |mpiled v|ersion (|
|000014a0| 62 65 6c 6f 77 29 20 6f | 66 20 74 68 69 73 20 63 |below) o|f this c|
|000014b0| 6f 64 65 20 74 6f 20 74 | 68 65 0d 2f 2f 20 53 79 |ode to t|he.// Sy|
|000014c0| 73 74 65 6d 20 68 65 61 | 70 20 61 6e 64 20 73 65 |stem hea|p and se|
|000014d0| 74 73 20 74 68 65 20 63 | 6f 70 79 27 73 20 73 65 |ts the c|opy's se|
|000014e0| 6c 65 63 74 6f 72 20 61 | 6e 64 20 72 65 73 70 6f |lector a|nd respo|
|000014f0| 6e 73 65 2e 0d 70 61 73 | 63 61 6c 20 4f 53 45 72 |nse..pas|cal OSEr|
|00001500| 72 20 4d 79 47 65 73 74 | 61 6c 74 56 61 6c 75 65 |r MyGest|altValue|
|00001510| 28 4f 53 54 79 70 65 20 | 73 65 6c 65 63 74 6f 72 |(OSType |selector|
|00001520| 2c 6c 6f 6e 67 20 2a 72 | 65 73 70 6f 6e 73 65 29 |,long *r|esponse)|
|00001530| 3b 09 2f 2f 20 70 72 69 | 76 61 74 65 0d 70 61 73 |;.// pri|vate.pas|
|00001540| 63 61 6c 20 4f 53 45 72 | 72 20 4d 79 47 65 73 74 |cal OSEr|r MyGest|
|00001550| 61 6c 74 56 61 6c 75 65 | 28 4f 53 54 79 70 65 20 |altValue|(OSType |
|00001560| 73 65 6c 65 63 74 6f 72 | 2c 6c 6f 6e 67 20 2a 72 |selector|,long *r|
|00001570| 65 73 70 6f 6e 73 65 29 | 0d 7b 0d 09 69 66 28 73 |esponse)|.{..if(s|
|00001580| 65 6c 65 63 74 6f 72 3d | 3d 53 45 4c 45 43 54 4f |elector=|=SELECTO|
|00001590| 52 29 7b 0d 09 09 2a 72 | 65 73 70 6f 6e 73 65 3d |R){...*r|esponse=|
|000015a0| 52 45 53 50 4f 4e 53 45 | 3b 0d 09 09 72 65 74 75 |RESPONSE|;...retu|
|000015b0| 72 6e 20 30 3b 0d 09 7d | 65 6c 73 65 20 72 65 74 |rn 0;..}|else ret|
|000015c0| 75 72 6e 20 67 65 73 74 | 61 6c 74 55 6e 6b 6e 6f |urn gest|altUnkno|
|000015d0| 77 6e 45 72 72 3b 0d 7d | 0d 0d 2f 2a 0d 4d 79 47 |wnErr;.}|../*.MyG|
|000015e0| 65 73 74 61 6c 74 56 61 | 6c 75 65 43 6f 64 65 20 |estaltVa|lueCode |
|000015f0| 69 73 20 74 68 65 20 36 | 38 6b 20 63 6f 6d 70 69 |is the 6|8k compi|
|00001600| 6c 65 64 20 63 6f 64 65 | 20 70 72 6f 64 75 63 65 |led code| produce|
|00001610| 64 20 62 79 20 4d 65 74 | 72 6f 77 65 72 6b 73 20 |d by Met|rowerks |
|00001620| 43 20 38 0d 66 6f 72 20 | 74 68 65 20 4d 79 47 65 |C 8.for |the MyGe|
|00001630| 73 74 61 6c 74 56 61 6c | 75 65 20 72 6f 75 74 69 |staltVal|ue routi|
|00001640| 6e 65 20 61 62 6f 76 65 | 2e 20 54 68 69 73 20 61 |ne above|. This a|
|00001650| 6c 6c 6f 77 73 20 6d 65 | 20 74 6f 20 69 6e 73 74 |llows me| to inst|
|00001660| 61 6c 6c 20 61 20 36 38 | 6b 0d 63 6f 64 65 20 76 |all a 68|k.code v|
|00001670| 65 72 73 69 6f 6e 20 65 | 76 65 6e 20 77 68 65 6e |ersion e|ven when|
|00001680| 20 74 68 69 73 20 66 69 | 6c 65 20 69 73 20 63 6f | this fi|le is co|
|00001690| 6d 70 69 6c 65 64 20 66 | 6f 72 20 70 70 63 2e 20 |mpiled f|or ppc. |
|000016a0| 49 27 76 65 20 66 6f 75 | 6e 64 20 69 74 20 65 61 |I've fou|nd it ea|
|000016b0| 73 79 0d 74 6f 20 63 6f | 70 79 2c 20 6d 6f 64 69 |sy.to co|py, modi|
|000016c0| 66 79 2c 20 61 6e 64 20 | 69 6e 73 74 61 6c 6c 20 |fy, and |install |
|000016d0| 61 20 36 38 6b 20 72 6f | 75 74 69 6e 65 2c 20 62 |a 68k ro|utine, b|
|000016e0| 75 74 20 68 61 76 65 6e | 27 74 20 73 75 63 63 65 |ut haven|'t succe|
|000016f0| 65 64 65 64 20 77 68 65 | 6e 20 49 0d 74 72 69 65 |eded whe|n I.trie|
|00001700| 64 20 74 6f 20 64 6f 20 | 74 68 65 20 73 61 6d 65 |d to do |the same|
|00001710| 20 77 69 74 68 20 61 20 | 70 70 63 20 72 6f 75 74 | with a |ppc rout|
|00001720| 69 6e 65 2c 20 62 65 63 | 61 75 73 65 20 49 27 6d |ine, bec|ause I'm|
|00001730| 20 6e 6f 74 20 71 75 69 | 74 65 20 73 75 72 65 20 | not qui|te sure |
|00001740| 77 68 61 74 0d 74 6f 20 | 64 6f 20 61 62 6f 75 74 |what.to |do about|
|00001750| 20 74 68 65 20 69 6e 64 | 69 72 65 63 74 69 6f 6e | the ind|irection|
|00001760| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 54 56 65 | through| the TVe|
|00001770| 63 74 6f 72 20 28 6e 6f | 72 20 68 61 76 65 20 49 |ctor (no|r have I|
|00001780| 20 66 6f 75 6e 64 20 61 | 6e 79 0d 64 6f 63 75 6d | found a|ny.docum|
|00001790| 65 6e 74 61 74 69 6f 6e | 20 6f 6e 20 69 74 2e 29 |entation| on it.)|
|000017a0| 20 41 70 70 6c 65 20 44 | 65 76 65 6c 6f 70 65 72 | Apple D|eveloper|
|000017b0| 20 54 65 63 68 20 53 75 | 70 70 6f 72 74 20 74 6f | Tech Su|pport to|
|000017c0| 6c 64 20 6d 65 20 74 68 | 61 74 20 61 6c 6c 20 70 |ld me th|at all p|
|000017d0| 70 63 0d 72 6f 75 74 69 | 6e 65 73 20 61 72 65 20 |pc.routi|nes are |
|000017e0| 63 61 6c 6c 65 64 20 69 | 6e 64 69 72 65 63 74 6c |called i|ndirectl|
|000017f0| 79 20 76 69 61 20 61 20 | 54 56 65 63 74 6f 72 2e |y via a |TVector.|
|00001800| 0d 2a 2f 0d 73 68 6f 72 | 74 20 6d 79 47 65 73 74 |.*/.shor|t myGest|
|00001810| 61 6c 74 56 61 6c 75 65 | 43 6f 64 65 5b 5d 3d 7b |altValue|Code[]={|
|00001820| 0d 09 30 78 34 45 35 36 | 2c 30 78 30 30 30 30 09 |..0x4E56|,0x0000.|
|00001830| 09 09 2f 2f 20 4c 49 4e | 4b 20 20 20 20 20 20 41 |..// LIN|K A|
|00001840| 36 2c 23 24 30 30 30 30 | 0d 09 2c 30 78 30 43 41 |6,#$0000|..,0x0CA|
|00001850| 45 2c 30 78 31 32 33 34 | 2c 30 78 35 36 37 38 09 |E,0x1234|,0x5678.|
|00001860| 2f 2f 20 43 4d 50 49 2e | 4c 20 20 20 20 23 24 31 |// CMPI.|L #$1|
|00001870| 32 33 34 35 36 37 38 2c | 24 30 30 30 43 28 41 36 |2345678,|$000C(A6|
|00001880| 29 0d 09 2c 30 78 30 30 | 30 43 20 20 20 20 20 20 |)..,0x00|0C |
|00001890| 20 20 20 20 20 0d 09 2c | 30 78 36 36 31 30 09 09 | ..,|0x6610..|
|000018a0| 09 09 09 2f 2f 20 42 4e | 45 2e 53 20 20 20 20 20 |...// BN|E.S |
|000018b0| 2a 2b 24 30 30 31 32 0d | 09 2c 30 78 32 30 36 45 |*+$0012.|.,0x206E|
|000018c0| 2c 30 78 30 30 30 38 09 | 09 09 2f 2f 20 4d 4f 56 |,0x0008.|..// MOV|
|000018d0| 45 41 2e 4c 20 20 20 24 | 30 30 30 38 28 41 36 29 |EA.L $|0008(A6)|
|000018e0| 2c 41 30 0d 09 2c 30 78 | 32 30 42 43 2c 30 78 38 |,A0..,0x|20BC,0x8|
|000018f0| 37 36 35 2c 30 78 34 33 | 32 31 09 2f 2f 20 4d 4f |765,0x43|21.// MO|
|00001900| 56 45 2e 4c 20 20 20 20 | 23 24 38 37 36 35 34 33 |VE.L |#$876543|
|00001910| 32 31 2c 28 41 30 29 0d | 09 2c 30 78 34 32 36 46 |21,(A0).|.,0x426F|
|00001920| 2c 30 78 30 30 31 30 09 | 09 09 2f 2f 20 43 4c 52 |,0x0010.|..// CLR|
|00001930| 2e 57 20 20 20 20 20 24 | 30 30 31 30 28 41 37 29 |.W $|0010(A7)|
|00001940| 0d 09 2c 30 78 36 30 30 | 36 09 09 09 09 09 2f 2f |..,0x600|6.....//|
|00001950| 20 42 52 41 2e 53 20 20 | 20 20 20 2a 2b 24 30 30 | BRA.S | *+$00|
|00001960| 30 38 0d 09 2c 30 78 33 | 46 37 43 2c 30 78 45 41 |08..,0x3|F7C,0xEA|
|00001970| 35 32 2c 30 78 30 30 31 | 30 09 2f 2f 20 4d 4f 56 |52,0x001|0.// MOV|
|00001980| 45 2e 57 20 20 20 20 23 | 24 45 41 35 32 2c 24 30 |E.W #|$EA52,$0|
|00001990| 30 31 30 28 41 37 29 0d | 09 2c 30 78 34 45 35 45 |010(A7).|.,0x4E5E|
|000019a0| 09 09 09 09 09 2f 2f 20 | 55 4e 4c 4b 20 20 20 20 |.....// |UNLK |
|000019b0| 20 20 41 36 0d 09 2c 30 | 78 32 30 35 46 09 09 09 | A6..,0|x205F...|
|000019c0| 09 09 2f 2f 20 4d 4f 56 | 45 41 2e 4c 20 20 20 28 |..// MOV|EA.L (|
|000019d0| 41 37 29 2b 2c 41 30 0d | 09 2c 30 78 35 30 34 46 |A7)+,A0.|.,0x504F|
|000019e0| 09 09 09 09 09 2f 2f 20 | 41 44 44 51 2e 57 20 20 |.....// |ADDQ.W |
|000019f0| 20 20 23 24 38 2c 41 37 | 0d 09 2c 30 78 34 45 44 | #$8,A7|..,0x4ED|
|00001a00| 30 09 09 09 09 09 2f 2f | 20 4a 4d 50 20 20 20 20 |0.....//| JMP |
|00001a10| 20 20 20 28 41 30 29 0d | 09 2c 30 78 38 45 34 44 | (A0).|.,0x8E4D|
|00001a20| 2c 30 78 35 39 34 37 2c | 30 78 34 35 35 33 09 2f |,0x5947,|0x4553./|
|00001a30| 2f 20 44 43 2e 42 20 20 | 20 20 20 20 24 38 30 2b |/ DC.B | $80+|
|00001a40| 24 30 45 2c 20 27 4d 59 | 47 45 53 54 41 4c 54 56 |$0E, 'MY|GESTALTV|
|00001a50| 41 4c 55 45 27 2c 20 24 | 30 30 0d 09 2c 30 78 35 |ALUE', $|00..,0x5|
|00001a60| 34 34 31 2c 30 78 34 43 | 35 34 2c 30 78 35 36 34 |441,0x4C|54,0x564|
|00001a70| 31 20 0d 09 2c 30 78 34 | 43 35 35 2c 30 78 34 35 |1 ..,0x4|C55,0x45|
|00001a80| 30 30 2c 30 78 30 30 30 | 30 20 20 20 20 20 20 20 |00,0x000|0 |
|00001a90| 20 20 20 20 0d 7d 3b 0d | 0d 4f 53 45 72 72 20 53 | .};.|.OSErr S|
|00001aa0| 65 74 47 65 73 74 61 6c | 74 56 61 6c 75 65 31 28 |etGestal|tValue1(|
|00001ab0| 4f 53 54 79 70 65 20 73 | 65 6c 65 63 74 6f 72 2c |OSType s|elector,|
|00001ac0| 6c 6f 6e 67 20 72 65 73 | 70 6f 6e 73 65 29 0d 7b |long res|ponse).{|
|00001ad0| 0d 09 50 74 72 20 70 74 | 72 3b 0d 09 4f 53 45 72 |..Ptr pt|r;..OSEr|
|00001ae0| 72 20 65 72 72 6f 72 3b | 0d 09 6c 6f 6e 67 20 76 |r error;|..long v|
|00001af0| 61 6c 75 65 2c 76 65 72 | 73 69 6f 6e 3b 0d 09 53 |alue,ver|sion;..S|
|00001b00| 65 6c 65 63 74 6f 72 46 | 75 6e 63 74 69 6f 6e 55 |electorF|unctionU|
|00001b10| 50 50 20 75 70 70 2c 6f | 6c 64 55 70 70 3b 0d 09 |PP upp,o|ldUpp;..|
|00001b20| 54 48 7a 20 68 65 61 70 | 5a 6f 6e 65 3b 0d 09 6c |THz heap|Zone;..l|
|00001b30| 6f 6e 67 20 73 69 7a 65 | 3b 0d 09 75 6e 73 69 67 |ong size|;..unsig|
|00001b40| 6e 65 64 20 73 68 6f 72 | 74 20 2a 77 6f 72 64 50 |ned shor|t *wordP|
|00001b50| 74 72 3b 0d 09 53 65 6c | 65 63 74 6f 72 46 75 6e |tr;..Sel|ectorFun|
|00001b60| 63 74 69 6f 6e 50 72 6f | 63 50 74 72 20 66 75 6e |ctionPro|cPtr fun|
|00001b70| 63 74 69 6f 6e 50 74 72 | 3b 0d 09 0d 09 47 65 73 |ctionPtr|;....Ges|
|00001b80| 74 61 6c 74 28 67 65 73 | 74 61 6c 74 53 79 73 74 |talt(ges|taltSyst|
|00001b90| 65 6d 56 65 72 73 69 6f | 6e 2c 26 76 65 72 73 69 |emVersio|n,&versi|
|00001ba0| 6f 6e 29 3b 0d 09 69 66 | 28 76 65 72 73 69 6f 6e |on);..if|(version|
|00001bb0| 3c 30 78 37 30 30 29 50 | 72 69 6e 74 66 45 78 69 |<0x700)P|rintfExi|
|00001bc0| 74 28 22 25 73 20 25 6c | 64 2e 20 53 6f 72 72 79 |t("%s %l|d. Sorry|
|00001bd0| 2e 20 49 20 6e 65 65 64 | 20 53 79 73 74 65 6d 20 |. I need| System |
|00001be0| 37 20 6f 72 20 62 65 74 | 74 65 72 2e 5c 6e 22 2c |7 or bet|ter.\n",|
|00001bf0| 5f 5f 46 49 4c 45 5f 5f | 2c 28 6c 6f 6e 67 29 5f |__FILE__|,(long)_|
|00001c00| 5f 4c 49 4e 45 5f 5f 29 | 3b 0d 09 66 75 6e 63 74 |_LINE__)|;..funct|
|00001c10| 69 6f 6e 50 74 72 3d 28 | 76 6f 69 64 20 2a 29 6d |ionPtr=(|void *)m|
|00001c20| 79 47 65 73 74 61 6c 74 | 56 61 6c 75 65 43 6f 64 |yGestalt|ValueCod|
|00001c30| 65 3b 0d 09 73 69 7a 65 | 3d 73 69 7a 65 6f 66 28 |e;..size|=sizeof(|
|00001c40| 6d 79 47 65 73 74 61 6c | 74 56 61 6c 75 65 43 6f |myGestal|tValueCo|
|00001c50| 64 65 29 3b 0d 09 2f 2f | 20 63 6f 70 79 20 6f 75 |de);..//| copy ou|
|00001c60| 72 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 53 79 |r functi|on to Sy|
|00001c70| 73 74 65 6d 20 48 65 61 | 70 0d 09 70 74 72 3d 4e |stem Hea|p..ptr=N|
|00001c80| 65 77 50 74 72 53 79 73 | 28 73 69 7a 65 29 3b 0d |ewPtrSys|(size);.|
|00001c90| 09 69 66 28 70 74 72 3d | 3d 4e 55 4c 4c 29 50 72 |.if(ptr=|=NULL)Pr|
|00001ca0| 69 6e 74 66 45 78 69 74 | 28 22 25 73 20 25 6c 64 |intfExit|("%s %ld|
|00001cb0| 2e 20 4e 6f 20 73 70 61 | 63 65 20 69 6e 20 53 79 |. No spa|ce in Sy|
|00001cc0| 73 74 65 6d 20 48 65 61 | 70 2e 5c 6e 22 2c 5f 5f |stem Hea|p.\n",__|
|00001cd0| 46 49 4c 45 5f 5f 2c 28 | 6c 6f 6e 67 29 5f 5f 4c |FILE__,(|long)__L|
|00001ce0| 49 4e 45 5f 5f 29 3b 0d | 09 42 6c 6f 63 6b 4d 6f |INE__);.|.BlockMo|
|00001cf0| 76 65 28 66 75 6e 63 74 | 69 6f 6e 50 74 72 2c 70 |ve(funct|ionPtr,p|
|00001d00| 74 72 2c 73 69 7a 65 29 | 3b 0d 09 2f 2f 20 53 65 |tr,size)|;..// Se|
|00001d10| 74 20 74 68 65 20 63 6f | 70 79 27 73 20 73 65 6c |t the co|py's sel|
|00001d20| 65 63 74 6f 72 20 61 6e | 64 20 72 65 73 70 6f 6e |ector an|d respon|
|00001d30| 73 65 2e 0d 09 77 6f 72 | 64 50 74 72 3d 28 75 6e |se...wor|dPtr=(un|
|00001d40| 73 69 67 6e 65 64 20 73 | 68 6f 72 74 20 2a 29 70 |signed s|hort *)p|
|00001d50| 74 72 3b 0d 09 77 6f 72 | 64 50 74 72 5b 33 5d 3d |tr;..wor|dPtr[3]=|
|00001d60| 73 65 6c 65 63 74 6f 72 | 3e 3e 31 36 3b 0d 09 77 |selector|>>16;..w|
|00001d70| 6f 72 64 50 74 72 5b 34 | 5d 3d 73 65 6c 65 63 74 |ordPtr[4|]=select|
|00001d80| 6f 72 26 30 78 66 66 66 | 66 3b 0d 09 77 6f 72 64 |or&0xfff|f;..word|
|00001d90| 50 74 72 5b 31 30 5d 3d | 72 65 73 70 6f 6e 73 65 |Ptr[10]=|response|
|00001da0| 3e 3e 31 36 3b 0d 09 77 | 6f 72 64 50 74 72 5b 31 |>>16;..w|ordPtr[1|
|00001db0| 31 5d 3d 72 65 73 70 6f | 6e 73 65 26 30 78 66 66 |1]=respo|nse&0xff|
|00001dc0| 66 66 3b 0d 09 23 69 66 | 20 47 45 4e 45 52 41 54 |ff;..#if| GENERAT|
|00001dd0| 49 4e 47 50 4f 57 45 52 | 50 43 0d 09 09 4d 61 6b |INGPOWER|PC...Mak|
|00001de0| 65 44 61 74 61 45 78 65 | 63 75 74 61 62 6c 65 28 |eDataExe|cutable(|
|00001df0| 70 74 72 2c 73 69 7a 65 | 29 3b 0d 09 23 65 6c 73 |ptr,size|);..#els|
|00001e00| 65 0d 09 09 46 6c 75 73 | 68 43 6f 64 65 43 61 63 |e...Flus|hCodeCac|
|00001e10| 68 65 52 61 6e 67 65 28 | 70 74 72 2c 73 69 7a 65 |heRange(|ptr,size|
|00001e20| 29 3b 0d 09 23 65 6e 64 | 69 66 0d 09 68 65 61 70 |);..#end|if..heap|
|00001e30| 5a 6f 6e 65 3d 47 65 74 | 5a 6f 6e 65 28 29 3b 0d |Zone=Get|Zone();.|
|00001e40| 09 53 65 74 5a 6f 6e 65 | 28 53 79 73 74 65 6d 5a |.SetZone|(SystemZ|
|00001e50| 6f 6e 65 28 29 29 3b 0d | 09 75 70 70 3d 4e 65 77 |one());.|.upp=New|
|00001e60| 36 38 6b 53 65 6c 65 63 | 74 6f 72 46 75 6e 63 74 |68kSelec|torFunct|
|00001e70| 69 6f 6e 50 72 6f 63 28 | 70 74 72 29 3b 09 2f 2f |ionProc(|ptr);.//|
|00001e80| 20 61 6c 6c 6f 63 61 74 | 65 20 55 55 50 20 69 6e | allocat|e UUP in|
|00001e90| 20 53 79 73 74 65 6d 20 | 48 65 61 70 0d 09 53 65 | System |Heap..Se|
|00001ea0| 74 5a 6f 6e 65 28 68 65 | 61 70 5a 6f 6e 65 29 3b |tZone(he|apZone);|
|00001eb0| 0d 09 2f 2f 20 64 6f 65 | 73 20 6f 75 72 20 47 65 |..// doe|s our Ge|
|00001ec0| 73 74 61 6c 74 20 73 65 | 6c 65 63 74 6f 72 20 61 |stalt se|lector a|
|00001ed0| 6c 72 65 61 64 79 20 65 | 78 69 73 74 3f 0d 09 65 |lready e|xist?..e|
|00001ee0| 72 72 6f 72 3d 47 65 73 | 74 61 6c 74 28 73 65 6c |rror=Ges|talt(sel|
|00001ef0| 65 63 74 6f 72 2c 26 76 | 61 6c 75 65 29 3b 0d 09 |ector,&v|alue);..|
|00001f00| 69 66 28 21 65 72 72 6f | 72 29 7b 0d 09 09 2f 2f |if(!erro|r){...//|
|00001f10| 20 79 65 73 2c 20 72 65 | 70 6c 61 63 65 20 69 74 | yes, re|place it|
|00001f20| 2e 20 28 49 74 20 6d 61 | 79 20 70 65 72 73 69 73 |. (It ma|y persis|
|00001f30| 74 20 66 72 6f 6d 20 61 | 6e 20 65 61 72 6c 69 65 |t from a|n earlie|
|00001f40| 72 20 72 75 6e 20 6f 66 | 20 4d 41 54 4c 41 42 2e |r run of| MATLAB.|
|00001f50| 29 0d 09 09 65 72 72 6f | 72 3d 52 65 70 6c 61 63 |)...erro|r=Replac|
|00001f60| 65 47 65 73 74 61 6c 74 | 28 73 65 6c 65 63 74 6f |eGestalt|(selecto|
|00001f70| 72 2c 75 70 70 2c 26 6f | 6c 64 55 70 70 29 3b 0d |r,upp,&o|ldUpp);.|
|00001f80| 09 09 69 66 28 65 72 72 | 6f 72 29 50 72 69 6e 74 |..if(err|or)Print|
|00001f90| 66 45 78 69 74 28 22 25 | 73 20 25 6c 64 2e 20 52 |fExit("%|s %ld. R|
|00001fa0| 65 70 6c 61 63 65 47 65 | 73 74 61 6c 74 20 65 72 |eplaceGe|stalt er|
|00001fb0| 72 6f 72 20 25 6c 64 2e | 5c 6e 22 2c 5f 5f 46 49 |ror %ld.|\n",__FI|
|00001fc0| 4c 45 5f 5f 2c 28 6c 6f | 6e 67 29 5f 5f 4c 49 4e |LE__,(lo|ng)__LIN|
|00001fd0| 45 5f 5f 2c 28 6c 6f 6e | 67 29 65 72 72 6f 72 29 |E__,(lon|g)error)|
|00001fe0| 3b 0d 09 09 2f 2f 20 66 | 72 65 65 20 74 68 65 20 |;...// f|ree the |
|00001ff0| 6f 6c 64 20 66 75 6e 63 | 74 69 6f 6e 27 73 20 73 |old func|tion's s|
|00002000| 70 61 63 65 20 69 6e 20 | 74 68 65 20 53 79 73 74 |pace in |the Syst|
|00002010| 65 6d 20 48 65 61 70 0d | 09 09 69 66 28 6f 6c 64 |em Heap.|..if(old|
|00002020| 55 70 70 21 3d 4e 55 4c | 4c 29 7b 0d 09 09 09 23 |Upp!=NUL|L){....#|
|00002030| 69 66 20 47 45 4e 45 52 | 41 54 49 4e 47 43 46 4d |if GENER|ATINGCFM|
|00002040| 0d 09 09 09 09 44 69 73 | 70 6f 73 65 50 74 72 28 |.....Dis|posePtr(|
|00002050| 28 50 74 72 29 6f 6c 64 | 55 70 70 2d 3e 72 6f 75 |(Ptr)old|Upp->rou|
|00002060| 74 69 6e 65 52 65 63 6f | 72 64 73 5b 30 5d 2e 70 |tineReco|rds[0].p|
|00002070| 72 6f 63 44 65 73 63 72 | 69 70 74 6f 72 29 3b 0d |rocDescr|iptor);.|
|00002080| 09 09 09 23 65 6e 64 69 | 66 0d 09 09 09 44 69 73 |...#endi|f....Dis|
|00002090| 70 6f 73 65 50 74 72 28 | 28 50 74 72 29 6f 6c 64 |posePtr(|(Ptr)old|
|000020a0| 55 70 70 29 3b 0d 09 09 | 7d 0d 09 7d 65 6c 73 65 |Upp);...|}..}else|
|000020b0| 7b 0d 09 09 2f 2f 20 6e | 6f 2c 20 69 6e 73 74 61 |{...// n|o, insta|
|000020c0| 6c 6c 20 69 74 2e 0d 09 | 09 65 72 72 6f 72 3d 4e |ll it...|.error=N|
|000020d0| 65 77 47 65 73 74 61 6c | 74 28 73 65 6c 65 63 74 |ewGestal|t(select|
|000020e0| 6f 72 2c 75 70 70 29 3b | 0d 09 09 69 66 28 65 72 |or,upp);|...if(er|
|000020f0| 72 6f 72 29 50 72 69 6e | 74 66 45 78 69 74 28 22 |ror)Prin|tfExit("|
|00002100| 25 73 20 25 6c 64 2e 20 | 4e 65 77 47 65 73 74 61 |%s %ld. |NewGesta|
|00002110| 6c 74 20 65 72 72 6f 72 | 20 25 6c 64 2e 5c 6e 22 |lt error| %ld.\n"|
|00002120| 2c 5f 5f 46 49 4c 45 5f | 5f 2c 28 6c 6f 6e 67 29 |,__FILE_|_,(long)|
|00002130| 5f 5f 4c 49 4e 45 5f 5f | 2c 28 6c 6f 6e 67 29 65 |__LINE__|,(long)e|
|00002140| 72 72 6f 72 29 3b 0d 09 | 7d 0d 09 72 65 74 75 72 |rror);..|}..retur|
|00002150| 6e 20 65 72 72 6f 72 3b | 0d 7d 0d 00 00 00 00 00 |n error;|.}......|
|00002160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002180| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00002190| 07 e3 0f 73 51 30 f3 0e | a5 0a ab 4e a1 0a be 3c |...sQ0..|...N...<|
|000021a0| 0f 0a ab 47 30 eb 0a 85 | 01 43 05 1c 93 01 33 00 |...G0...|.C....3.|
|000021b0| 12 53 65 74 47 65 73 74 | 61 6c 74 56 61 6c 75 65 |.SetGest|altValue|
|000021c0| 31 2e 63 6c 02 00 00 00 | 54 45 58 54 43 57 49 45 |1.cl....|TEXTCWIE|
|000021d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 05 40 |..TEXTCW|IE.....@|
|000021e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021f0| 00 00 ad b7 f6 d0 00 00 | 20 db 00 00 01 9a 01 16 |........| .......|
|00002200| 63 11 63 12 8b 8b 73 0b | a3 8a 6b 61 fb 04 c3 66 |c.c...s.|..ka...f|
|00002210| 33 01 1b 3c a6 9a 88 70 | 52 bb 0d 16 1e d3 00 1d |3..<...p|R.......|
|00002220| 1b 66 72 72 14 1c 41 d3 | 0f c5 08 6b 05 4b 10 10 |.frr..A.|...k.K..|
|00002230| 9b 59 f3 14 6b 61 73 00 | 04 be 2a 06 04 2b 05 63 |.Y..kas.|..*..+.c|
|00002240| 05 73 61 fb 1f 81 06 09 | 05 ed db 9b 04 33 06 21 |.sa.....|.....3.!|
|00002250| 49 5b 02 e1 97 61 24 03 | 00 20 9b 04 7b 05 45 01 |I[...a$.|. ..{.E.|
|00002260| e9 4f 45 01 c4 45 01 49 | 52 41 01 65 3d 0f 7d de |.OE..E.I|RA.e=.}.|
|00002270| 63 0f 99 85 0b 13 00 83 | 2a 45 50 05 01 81 6f 0f |c.......|*EP...o.|
|00002280| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00002290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022a0| 00 00 00 00 00 00 00 03 | 00 04 00 59 00 5b 02 5f |........|...Y.[._|
|000022b0| 02 d9 00 59 00 5b 02 5f | 02 d9 ad b8 16 ab 00 00 |...Y.[._|........|
|000022c0| 0b 63 00 00 0b 63 00 00 | 0b 17 01 00 00 00 00 04 |.c...c..|........|
|000022d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000022e0| 00 00 00 46 01 9d 57 d4 | 4c 04 00 00 00 1c 00 46 |...F..W.|L......F|
|000022f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00002300| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00002310| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+