home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-08-06 | 4.0 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: AfterDark.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, Tue Aug 6 01:23:53 1996, modified Tue Aug 6 01:23:53 1996, creator 'CWIE', type ASCII, 3414 bytes "AfterDark.c" , at 0xdd6 456 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 0b 41 66 74 65 72 44 | 61 72 6b 2e 63 00 00 00 |..AfterD|ark.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 0d 56 00 | 00 01 c8 ae 2c 87 69 ae |......V.|....,.i.|
|00000060| 2c 87 69 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |,.i.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 15 03 00 00 |........|........|
|00000080| 2f 2a 20 41 66 74 65 72 | 44 61 72 6b 2e 63 0d 0d |/* After|Dark.c..|
|00000090| 65 72 72 6f 72 3d 41 66 | 74 65 72 44 61 72 6b 44 |error=Af|terDarkD|
|000000a0| 69 73 61 62 6c 65 28 29 | 3b 0d 65 72 72 6f 72 3d |isable()|;.error=|
|000000b0| 41 66 74 65 72 44 61 72 | 6b 45 6e 61 62 6c 65 28 |AfterDar|kEnable(|
|000000c0| 29 3b 0d 0d 44 69 73 61 | 62 6c 65 20 61 6e 64 20 |);..Disa|ble and |
|000000d0| 6c 61 74 65 72 20 72 65 | 2d 65 6e 61 62 6c 65 20 |later re|-enable |
|000000e0| 74 68 65 20 70 6f 70 75 | 6c 61 72 20 73 63 72 65 |the popu|lar scre|
|000000f0| 65 6e 20 73 61 76 65 72 | 2c 20 41 66 74 65 72 44 |en saver|, AfterD|
|00000100| 61 72 6b 2e 20 41 6e 20 | 65 72 72 6f 72 20 63 6f |ark. An |error co|
|00000110| 64 65 20 69 73 0d 72 65 | 74 75 72 6e 65 64 20 69 |de is.re|turned i|
|00000120| 66 20 74 68 65 20 72 65 | 6c 65 76 61 6e 74 20 47 |f the re|levant G|
|00000130| 65 73 74 61 6c 74 20 73 | 65 6c 65 63 74 6f 72 73 |estalt s|electors|
|00000140| 20 61 72 65 20 6e 6f 74 | 20 69 6e 73 74 61 6c 6c | are not| install|
|00000150| 65 64 2c 20 69 2e 65 2e | 20 6e 6f 0d 41 66 74 65 |ed, i.e.| no.Afte|
|00000160| 72 44 61 72 6b 2d 63 6f | 6d 70 61 74 69 62 6c 65 |rDark-co|mpatible|
|00000170| 20 73 63 72 65 65 6e 20 | 73 61 76 65 72 20 69 73 | screen |saver is|
|00000180| 20 70 72 65 73 65 6e 74 | 2e 0d 0d 57 72 69 74 74 | present|...Writt|
|00000190| 65 6e 20 62 79 20 44 61 | 76 69 64 20 42 72 61 69 |en by Da|vid Brai|
|000001a0| 6e 61 72 64 2c 20 62 61 | 73 65 64 20 6f 6e 20 64 |nard, ba|sed on d|
|000001b0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 73 75 70 |ocumenta|tion sup|
|000001c0| 70 6c 69 65 64 20 62 79 | 20 42 65 72 6b 65 6c 65 |plied by| Berkele|
|000001d0| 79 20 53 79 73 74 65 6d | 73 0d 4d 61 63 20 54 65 |y System|s.Mac Te|
|000001e0| 63 68 20 53 75 70 70 6f | 72 74 2c 20 62 72 6b 6c |ch Suppo|rt, brkl|
|000001f0| 79 73 79 73 74 6d 40 61 | 6f 6c 2e 63 6f 6d 2e 20 |ysystm@a|ol.com. |
|00000200| 41 73 6b 20 74 68 65 6d | 20 66 6f 72 20 74 68 65 |Ask them| for the|
|00000210| 20 41 66 74 65 72 44 61 | 72 6b 47 65 73 74 61 6c | AfterDa|rkGestal|
|00000220| 74 2e 68 20 66 69 6c 65 | 2e 0d 0d 54 68 65 20 69 |t.h file|...The i|
|00000230| 6e 74 65 72 66 61 63 65 | 20 74 6f 20 74 68 65 20 |nterface| to the |
|00000240| 73 63 72 65 65 6e 20 73 | 61 76 65 72 20 69 73 20 |screen s|aver is |
|00000250| 67 65 6e 65 72 69 63 2e | 20 41 6e 79 20 73 63 72 |generic.| Any scr|
|00000260| 65 65 6e 20 73 61 76 65 | 72 20 74 68 61 74 20 69 |een save|r that i|
|00000270| 6e 73 74 61 6c 6c 73 20 | 74 68 65 0d 73 61 6d 65 |nstalls |the.same|
|00000280| 20 47 65 73 74 61 6c 74 | 20 73 65 6c 65 63 74 6f | Gestalt| selecto|
|00000290| 72 73 20 77 6f 75 6c 64 | 20 62 65 20 63 6f 6e 74 |rs would| be cont|
|000002a0| 72 6f 6c 6c 65 64 20 62 | 79 20 74 68 65 73 65 20 |rolled b|y these |
|000002b0| 74 77 6f 20 72 6f 75 74 | 69 6e 65 73 2c 20 62 75 |two rout|ines, bu|
|000002c0| 74 20 77 65 20 68 61 76 | 65 6e 27 74 0d 74 65 73 |t we hav|en't.tes|
|000002d0| 74 65 64 20 74 68 61 74 | 2e 0d 0d 53 45 45 20 41 |ted that|...SEE A|
|000002e0| 4c 53 4f 3a 0d 49 73 46 | 69 6c 65 53 68 61 72 69 |LSO:.IsF|ileShari|
|000002f0| 6e 67 4f 6e 2e 63 0d 0d | 48 49 53 54 4f 52 59 3a |ngOn.c..|HISTORY:|
|00000300| 0d 36 2f 31 35 2f 39 35 | 09 64 68 62 09 09 57 72 |.6/15/95|.dhb..Wr|
|00000310| 6f 74 65 20 69 74 2e 0d | 36 2f 31 36 2f 39 35 09 |ote it..|6/16/95.|
|00000320| 64 68 62 09 09 44 6f 6e | 27 74 20 63 61 6c 6c 20 |dhb..Don|'t call |
|00000330| 70 72 6f 63 65 64 75 72 | 65 20 6f 6e 20 50 50 43 |procedur|e on PPC|
|00000340| 2c 20 61 73 20 69 74 20 | 63 61 75 73 65 73 20 61 |, as it |causes a|
|00000350| 20 63 72 61 73 68 2e 09 | 0d 36 2f 32 30 2f 39 35 | crash..|.6/20/95|
|00000360| 09 64 68 62 09 09 4d 61 | 6b 65 20 69 74 20 77 6f |.dhb..Ma|ke it wo|
|00000370| 72 6b 20 6f 6e 20 50 50 | 43 2c 20 75 73 65 20 73 |rk on PP|C, use s|
|00000380| 79 6d 62 6f 6c 20 47 45 | 4e 45 52 41 54 49 4e 47 |ymbol GE|NERATING|
|00000390| 36 38 4b 2e 0d 36 2f 32 | 31 2f 39 35 09 64 68 62 |68K..6/2|1/95.dhb|
|000003a0| 09 09 43 6f 6e 64 69 74 | 69 6f 6e 61 6c 20 63 6f |..Condit|ional co|
|000003b0| 6d 70 69 6c 65 73 20 73 | 6f 20 74 68 61 74 20 69 |mpiles s|o that i|
|000003c0| 74 20 77 69 6c 6c 20 73 | 74 69 6c 6c 20 77 6f 72 |t will s|till wor|
|000003d0| 6b 20 6f 6e 20 36 38 4b | 2e 0d 36 2f 32 33 2f 39 |k on 68K|..6/23/9|
|000003e0| 35 20 64 67 70 09 09 52 | 65 6d 6f 76 65 64 20 74 |5 dgp..R|emoved t|
|000003f0| 68 65 20 73 74 75 66 66 | 20 74 68 61 74 20 77 61 |he stuff| that wa|
|00000400| 73 20 4d 41 54 4c 41 42 | 2d 73 70 65 63 69 66 69 |s MATLAB|-specifi|
|00000410| 63 2e 20 52 65 6e 61 6d | 65 64 0d 09 09 09 09 09 |c. Renam|ed......|
|00000420| 09 09 76 61 72 69 61 62 | 6c 65 73 20 74 6f 20 6d |..variab|les to m|
|00000430| 61 6b 65 20 74 68 65 20 | 63 6f 64 65 20 6d 6f 72 |ake the |code mor|
|00000440| 65 20 73 65 6c 66 20 64 | 6f 63 75 6d 65 6e 74 69 |e self d|ocumenti|
|00000450| 6e 67 2e 0d 36 2f 32 33 | 2f 39 35 09 64 68 62 09 |ng..6/23|/95.dhb.|
|00000460| 09 41 64 64 65 64 20 6e | 65 63 65 73 73 61 72 79 |.Added n|ecessary|
|00000470| 20 73 74 75 66 66 20 66 | 72 6f 6d 20 41 66 74 65 | stuff f|rom Afte|
|00000480| 72 44 61 72 6b 47 65 73 | 74 61 6c 74 2e 68 2e 0d |rDarkGes|talt.h..|
|00000490| 09 09 09 09 09 09 09 49 | 6e 63 6c 75 64 65 20 56 |.......I|nclude V|
|000004a0| 69 64 65 6f 54 6f 6f 6c | 62 6f 78 2e 68 2e 0d 09 |ideoTool|box.h...|
|000004b0| 09 09 09 09 09 09 4d 6f | 76 65 20 70 72 6f 74 6f |......Mo|ve proto|
|000004c0| 74 79 70 65 73 20 74 6f | 20 56 69 64 65 6f 54 6f |types to| VideoTo|
|000004d0| 6f 6c 62 6f 78 2e 68 2e | 0d 35 2f 32 38 2f 39 36 |olbox.h.|.5/28/96|
|000004e0| 20 64 67 70 20 43 68 61 | 6e 67 65 64 20 3c 56 69 | dgp Cha|nged <Vi|
|000004f0| 64 65 6f 54 6f 6f 6c 62 | 6f 78 2e 68 3e 20 74 6f |deoToolb|ox.h> to|
|00000500| 20 20 22 56 69 64 65 6f | 54 6f 6f 6c 62 6f 78 2e | "Video|Toolbox.|
|00000510| 68 22 0d 2a 2f 0d 0d 23 | 69 6e 63 6c 75 64 65 20 |h".*/..#|include |
|00000520| 22 56 69 64 65 6f 54 6f | 6f 6c 62 6f 78 2e 68 22 |"VideoTo|olbox.h"|
|00000530| 0d 0d 2f 2f 20 47 65 73 | 74 61 6c 74 20 63 61 6c |..// Ges|talt cal|
|00000540| 6c 65 64 20 77 69 74 68 | 20 27 53 41 56 52 27 20 |led with| 'SAVR' |
|00000550| 73 65 6c 65 63 74 6f 72 | 20 72 65 74 75 72 6e 73 |selector| returns|
|00000560| 20 6c 6f 6e 67 77 6f 72 | 64 20 62 69 74 6d 61 73 | longwor|d bitmas|
|00000570| 6b 2e 0d 23 64 65 66 69 | 6e 65 20 67 65 73 74 61 |k..#defi|ne gesta|
|00000580| 6c 74 53 63 72 65 65 6e | 53 61 76 65 72 41 74 74 |ltScreen|SaverAtt|
|00000590| 72 20 27 53 41 56 52 27 | 0d 65 6e 75 6d 20 7b 0d |r 'SAVR'|.enum {.|
|000005a0| 09 67 65 73 74 61 6c 74 | 53 61 76 65 72 54 75 72 |.gestalt|SaverTur|
|000005b0| 6e 65 64 4f 6e 20 3d 20 | 30 2c 09 09 09 09 09 09 |nedOn = |0,......|
|000005c0| 2f 2a 20 73 61 76 65 72 | 20 65 6e 61 62 6c 65 64 |/* saver| enabled|
|000005d0| 2f 64 69 73 61 62 6c 65 | 64 2e 20 2a 2f 0d 09 67 |/disable|d. */..g|
|000005e0| 65 73 74 61 6c 74 53 61 | 76 65 72 41 73 6c 65 65 |estaltSa|verAslee|
|000005f0| 70 2c 09 09 09 09 09 09 | 09 09 09 2f 2a 20 73 61 |p,......|.../* sa|
|00000600| 76 65 72 20 63 75 72 72 | 65 6e 74 6c 79 20 61 73 |ver curr|ently as|
|00000610| 6c 65 65 70 2e 20 2a 2f | 0d 09 67 65 73 74 61 6c |leep. */|..gestal|
|00000620| 74 53 61 76 65 72 44 65 | 6d 6f 4d 6f 64 65 2c 09 |tSaverDe|moMode,.|
|00000630| 09 09 09 09 09 09 09 2f | 2a 20 73 61 76 65 72 20 |......./|* saver |
|00000640| 73 6c 65 65 70 69 6e 67 | 20 69 6e 20 64 65 6d 6f |sleeping| in demo|
|00000650| 20 6d 6f 64 65 2e 20 2a | 2f 0d 09 67 65 73 74 61 | mode. *|/..gesta|
|00000660| 6c 74 53 61 76 65 72 50 | 61 73 73 77 6f 72 64 4d |ltSaverP|asswordM|
|00000670| 6f 64 65 2c 09 09 09 09 | 09 09 2f 2a 20 73 61 76 |ode,....|../* sav|
|00000680| 65 72 20 73 6c 65 65 70 | 69 6e 67 20 69 6e 20 70 |er sleep|ing in p|
|00000690| 61 73 73 77 6f 72 64 2d | 70 72 6f 74 65 63 74 65 |assword-|protecte|
|000006a0| 64 20 6d 6f 64 65 2e 20 | 2a 2f 0d 09 67 65 73 74 |d mode. |*/..gest|
|000006b0| 61 6c 74 41 70 70 44 72 | 61 77 69 6e 67 44 69 73 |altAppDr|awingDis|
|000006c0| 61 62 6c 65 64 09 09 09 | 09 09 09 2f 2a 20 51 75 |abled...|.../* Qu|
|000006d0| 69 63 6b 64 72 61 77 20 | 64 72 61 77 69 6e 67 20 |ickdraw |drawing |
|000006e0| 64 69 73 61 6c 6c 6f 77 | 65 64 20 62 65 74 77 65 |disallow|ed betwe|
|000006f0| 65 6e 20 6d 6f 64 75 6c | 65 20 61 6e 69 6d 61 74 |en modul|e animat|
|00000700| 69 6f 6e 20 66 72 61 6d | 65 73 2e 20 2a 2f 0d 7d |ion fram|es. */.}|
|00000710| 3b 0d 0d 2f 2f 20 47 65 | 73 74 61 6c 74 20 63 61 |;..// Ge|stalt ca|
|00000720| 6c 6c 65 64 20 77 69 74 | 68 20 27 53 41 56 43 27 |lled wit|h 'SAVC'|
|00000730| 20 73 65 6c 65 63 74 6f | 72 20 72 65 74 75 72 6e | selecto|r return|
|00000740| 73 20 61 20 70 6f 69 6e | 74 65 72 0d 2f 2f 20 74 |s a poin|ter.// t|
|00000750| 6f 20 61 20 70 72 6f 63 | 65 64 75 72 65 2e 20 20 |o a proc|edure. |
|00000760| 50 61 73 73 20 74 68 65 | 20 61 70 70 72 6f 70 72 |Pass the| appropr|
|00000770| 69 61 74 65 20 63 6f 6d | 6d 61 6e 64 0d 23 64 65 |iate com|mand.#de|
|00000780| 66 69 6e 65 20 67 65 73 | 74 61 6c 74 53 63 72 65 |fine ges|taltScre|
|00000790| 65 6e 53 61 76 65 72 43 | 6f 6e 74 72 6f 6c 20 27 |enSaverC|ontrol '|
|000007a0| 53 41 56 43 27 0d 65 6e | 75 6d 20 53 61 76 65 72 |SAVC'.en|um Saver|
|000007b0| 43 6f 6d 6d 61 6e 64 20 | 7b 0d 09 67 65 73 74 61 |Command |{..gesta|
|000007c0| 6c 74 53 61 76 65 72 57 | 61 6b 65 55 70 2c 0d 09 |ltSaverW|akeUp,..|
|000007d0| 67 65 73 74 61 6c 74 53 | 61 76 65 72 53 6c 65 65 |gestaltS|averSlee|
|000007e0| 70 2c 0d 09 0d 09 2f 2a | 20 64 65 66 69 6e 65 64 |p,..../*| defined|
|000007f0| 20 69 6e 20 41 44 20 32 | 2e 30 78 20 61 6e 64 20 | in AD 2|.0x and |
|00000800| 6c 61 74 65 72 20 2a 2f | 0d 09 67 65 73 74 61 6c |later */|..gestal|
|00000810| 74 53 61 76 65 72 4f 6e | 2c 0d 09 67 65 73 74 61 |tSaverOn|,..gesta|
|00000820| 6c 74 53 61 76 65 72 4f | 66 66 2c 0d 09 0d 09 2f |ltSaverO|ff,..../|
|00000830| 2a 20 64 65 66 69 6e 65 | 64 20 66 6f 72 20 41 44 |* define|d for AD|
|00000840| 20 33 2e 30 20 61 6e 64 | 20 6c 61 74 65 72 20 2a | 3.0 and| later *|
|00000850| 2f 0d 09 67 65 73 74 61 | 6c 74 53 79 73 49 51 4f |/..gesta|ltSysIQO|
|00000860| 6e 2c 0d 09 67 65 73 74 | 61 6c 74 53 79 73 49 51 |n,..gest|altSysIQ|
|00000870| 4f 66 66 2c 0d 09 0d 09 | 67 65 73 74 61 6c 74 46 |Off,....|gestaltF|
|00000880| 6f 72 63 65 53 68 6f 72 | 74 20 3d 20 32 35 37 0d |orceShor|t = 257.|
|00000890| 7d 3b 0d 74 79 70 65 64 | 65 66 20 73 68 6f 72 74 |};.typed|ef short|
|000008a0| 20 53 61 76 65 72 43 6f | 6d 6d 61 6e 64 3b 0d 74 | SaverCo|mmand;.t|
|000008b0| 79 70 65 64 65 66 20 70 | 61 73 63 61 6c 20 4f 53 |ypedef p|ascal OS|
|000008c0| 45 72 72 20 28 2a 53 61 | 76 65 72 43 6f 6e 74 72 |Err (*Sa|verContr|
|000008d0| 6f 6c 50 72 6f 63 50 74 | 72 29 20 28 53 61 76 65 |olProcPt|r) (Save|
|000008e0| 72 43 6f 6d 6d 61 6e 64 | 20 63 6f 6d 6d 61 6e 64 |rCommand| command|
|000008f0| 29 3b 0d 0d 73 74 61 74 | 69 63 20 4f 53 45 72 72 |);..stat|ic OSErr|
|00000900| 20 41 66 74 65 72 44 61 | 72 6b 43 6f 6d 6d 61 6e | AfterDa|rkComman|
|00000910| 64 28 53 61 76 65 72 43 | 6f 6d 6d 61 6e 64 20 63 |d(SaverC|ommand c|
|00000920| 6f 6d 6d 61 6e 64 29 3b | 0d 0d 23 69 66 20 21 47 |ommand);|..#if !G|
|00000930| 45 4e 45 52 41 54 49 4e | 47 36 38 4b 0d 09 65 6e |ENERATIN|G68K..en|
|00000940| 75 6d 20 7b 0d 09 09 75 | 70 70 53 61 76 65 72 50 |um {...u|ppSaverP|
|00000950| 72 6f 63 49 6e 66 6f 3d | 6b 50 61 73 63 61 6c 53 |rocInfo=|kPascalS|
|00000960| 74 61 63 6b 42 61 73 65 | 64 0d 09 09 09 20 7c 20 |tackBase|d.... | |
|00000970| 52 45 53 55 4c 54 5f 53 | 49 5a 45 28 53 49 5a 45 |RESULT_S|IZE(SIZE|
|00000980| 5f 43 4f 44 45 28 73 69 | 7a 65 6f 66 28 4f 53 45 |_CODE(si|zeof(OSE|
|00000990| 72 72 29 29 29 0d 09 09 | 09 20 7c 20 53 54 41 43 |rr)))...|. | STAC|
|000009a0| 4b 5f 52 4f 55 54 49 4e | 45 5f 50 41 52 41 4d 45 |K_ROUTIN|E_PARAME|
|000009b0| 54 45 52 28 31 2c 53 49 | 5a 45 5f 43 4f 44 45 28 |TER(1,SI|ZE_CODE(|
|000009c0| 73 69 7a 65 6f 66 28 53 | 61 76 65 72 43 6f 6d 6d |sizeof(S|averComm|
|000009d0| 61 6e 64 29 29 29 0d 09 | 7d 3b 0d 23 65 6e 64 69 |and)))..|};.#endi|
|000009e0| 66 0d 0d 0d 4f 53 45 72 | 72 20 41 66 74 65 72 44 |f...OSEr|r AfterD|
|000009f0| 61 72 6b 45 6e 61 62 6c | 65 28 76 6f 69 64 29 0d |arkEnabl|e(void).|
|00000a00| 7b 0d 09 72 65 74 75 72 | 6e 20 41 66 74 65 72 44 |{..retur|n AfterD|
|00000a10| 61 72 6b 43 6f 6d 6d 61 | 6e 64 28 67 65 73 74 61 |arkComma|nd(gesta|
|00000a20| 6c 74 53 61 76 65 72 4f | 6e 29 3b 09 0d 7d 0d 0d |ltSaverO|n);..}..|
|00000a30| 0d 4f 53 45 72 72 20 41 | 66 74 65 72 44 61 72 6b |.OSErr A|fterDark|
|00000a40| 44 69 73 61 62 6c 65 28 | 76 6f 69 64 29 0d 7b 0d |Disable(|void).{.|
|00000a50| 09 72 65 74 75 72 6e 20 | 41 66 74 65 72 44 61 72 |.return |AfterDar|
|00000a60| 6b 43 6f 6d 6d 61 6e 64 | 28 67 65 73 74 61 6c 74 |kCommand|(gestalt|
|00000a70| 53 61 76 65 72 4f 66 66 | 29 3b 09 0d 7d 0d 0d 73 |SaverOff|);..}..s|
|00000a80| 74 61 74 69 63 20 4f 53 | 45 72 72 20 41 66 74 65 |tatic OS|Err Afte|
|00000a90| 72 44 61 72 6b 43 6f 6d | 6d 61 6e 64 28 53 61 76 |rDarkCom|mand(Sav|
|00000aa0| 65 72 43 6f 6d 6d 61 6e | 64 20 63 6f 6d 6d 61 6e |erComman|d comman|
|00000ab0| 64 29 0d 7b 0d 09 4f 53 | 45 72 72 20 65 72 72 6f |d).{..OS|Err erro|
|00000ac0| 72 3b 0d 09 6c 6f 6e 67 | 20 72 65 73 70 6f 6e 73 |r;..long| respons|
|00000ad0| 65 3b 0d 09 53 61 76 65 | 72 43 6f 6e 74 72 6f 6c |e;..Save|rControl|
|00000ae0| 50 72 6f 63 50 74 72 20 | 73 61 76 65 72 50 72 6f |ProcPtr |saverPro|
|00000af0| 63 50 74 72 3b 0d 09 23 | 69 66 20 21 47 45 4e 45 |cPtr;..#|if !GENE|
|00000b00| 52 41 54 49 4e 47 36 38 | 4b 0d 09 09 55 6e 69 76 |RATING68|K...Univ|
|00000b10| 65 72 73 61 6c 50 72 6f | 63 50 74 72 20 73 61 76 |ersalPro|cPtr sav|
|00000b20| 65 72 55 50 50 3d 4e 55 | 4c 4c 3b 0d 09 23 65 6e |erUPP=NU|LL;..#en|
|00000b30| 64 69 66 0d 0d 09 2f 2f | 20 4d 61 6b 65 20 73 75 |dif...//| Make su|
|00000b40| 72 65 20 74 68 65 20 73 | 63 72 65 65 6e 20 73 61 |re the s|creen sa|
|00000b50| 76 65 72 20 69 73 20 69 | 6e 73 74 61 6c 6c 65 64 |ver is i|nstalled|
|00000b60| 2c 20 72 65 74 75 72 6e | 20 69 66 20 6e 6f 74 2e |, return| if not.|
|00000b70| 0d 09 65 72 72 6f 72 3d | 47 65 73 74 61 6c 74 28 |..error=|Gestalt(|
|00000b80| 67 65 73 74 61 6c 74 53 | 63 72 65 65 6e 53 61 76 |gestaltS|creenSav|
|00000b90| 65 72 41 74 74 72 2c 26 | 72 65 73 70 6f 6e 73 65 |erAttr,&|response|
|00000ba0| 29 3b 0d 09 69 66 28 65 | 72 72 6f 72 29 72 65 74 |);..if(e|rror)ret|
|00000bb0| 75 72 6e 20 65 72 72 6f | 72 3b 09 0d 09 0d 09 2f |urn erro|r;...../|
|00000bc0| 2f 20 47 65 74 20 61 20 | 70 6f 69 6e 74 65 72 20 |/ Get a |pointer |
|00000bd0| 74 6f 20 74 68 65 20 73 | 63 72 65 65 6e 20 73 61 |to the s|creen sa|
|00000be0| 76 65 72 27 73 20 63 6f | 6e 74 72 6f 6c 20 70 72 |ver's co|ntrol pr|
|00000bf0| 6f 63 65 64 75 72 65 0d | 09 65 72 72 6f 72 3d 47 |ocedure.|.error=G|
|00000c00| 65 73 74 61 6c 74 28 67 | 65 73 74 61 6c 74 53 63 |estalt(g|estaltSc|
|00000c10| 72 65 65 6e 53 61 76 65 | 72 43 6f 6e 74 72 6f 6c |reenSave|rControl|
|00000c20| 2c 28 6c 6f 6e 67 20 2a | 29 26 73 61 76 65 72 50 |,(long *|)&saverP|
|00000c30| 72 6f 63 50 74 72 29 3b | 0d 09 69 66 28 65 72 72 |rocPtr);|..if(err|
|00000c40| 6f 72 29 72 65 74 75 72 | 6e 20 65 72 72 6f 72 3b |or)retur|n error;|
|00000c50| 09 0d 09 0d 09 2f 2f 20 | 41 73 6b 20 74 68 65 20 |.....// |Ask the |
|00000c60| 63 6f 6e 74 72 6f 6c 20 | 70 72 6f 63 65 64 75 72 |control |procedur|
|00000c70| 65 20 74 6f 20 70 65 72 | 66 6f 72 6d 20 74 68 65 |e to per|form the|
|00000c80| 20 63 6f 6d 6d 61 6e 64 | 0d 09 23 69 66 20 47 45 | command|..#if GE|
|00000c90| 4e 45 52 41 54 49 4e 47 | 36 38 4b 0d 09 09 65 72 |NERATING|68K...er|
|00000ca0| 72 6f 72 3d 28 2a 73 61 | 76 65 72 50 72 6f 63 50 |ror=(*sa|verProcP|
|00000cb0| 74 72 29 28 63 6f 6d 6d | 61 6e 64 29 3b 0d 09 23 |tr)(comm|and);..#|
|00000cc0| 65 6c 73 65 0d 09 09 73 | 61 76 65 72 55 50 50 3d |else...s|averUPP=|
|00000cd0| 4e 65 77 52 6f 75 74 69 | 6e 65 44 65 73 63 72 69 |NewRouti|neDescri|
|00000ce0| 70 74 6f 72 28 28 50 72 | 6f 63 50 74 72 29 73 61 |ptor((Pr|ocPtr)sa|
|00000cf0| 76 65 72 50 72 6f 63 50 | 74 72 2c 75 70 70 53 61 |verProcP|tr,uppSa|
|00000d00| 76 65 72 50 72 6f 63 49 | 6e 66 6f 2c 6b 4d 36 38 |verProcI|nfo,kM68|
|00000d10| 6b 49 53 41 29 3b 0d 09 | 09 69 66 28 73 61 76 65 |kISA);..|.if(save|
|00000d20| 72 55 50 50 3d 3d 4e 55 | 4c 4c 29 72 65 74 75 72 |rUPP==NU|LL)retur|
|00000d30| 6e 20 31 3b 09 2f 2f 20 | 4d 65 6d 6f 72 79 20 61 |n 1;.// |Memory a|
|00000d40| 6c 6c 6f 63 61 74 69 6f | 6e 20 66 61 69 6c 65 64 |llocatio|n failed|
|00000d50| 2e 0d 09 09 65 72 72 6f | 72 3d 28 4f 53 45 72 72 |....erro|r=(OSErr|
|00000d60| 29 43 61 6c 6c 55 6e 69 | 76 65 72 73 61 6c 50 72 |)CallUni|versalPr|
|00000d70| 6f 63 28 73 61 76 65 72 | 55 50 50 2c 75 70 70 53 |oc(saver|UPP,uppS|
|00000d80| 61 76 65 72 50 72 6f 63 | 49 6e 66 6f 2c 63 6f 6d |averProc|Info,com|
|00000d90| 6d 61 6e 64 29 3b 0d 09 | 09 44 69 73 70 6f 73 65 |mand);..|.Dispose|
|00000da0| 52 6f 75 74 69 6e 65 44 | 65 73 63 72 69 70 74 6f |RoutineD|escripto|
|00000db0| 72 28 73 61 76 65 72 55 | 50 50 29 3b 0d 09 23 65 |r(saverU|PP);..#e|
|00000dc0| 6e 64 69 66 0d 09 72 65 | 74 75 72 6e 20 65 72 72 |ndif..re|turn err|
|00000dd0| 6f 72 3b 0d 7d 0d 00 00 | 00 00 00 00 00 00 00 00 |or;.}...|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 01 00 00 00 01 76 | 00 00 00 76 00 00 00 52 |.......v|...v...R|
|00000e10| 20 65 78 74 65 6e 64 65 | 64 20 69 73 20 39 36 20 | extende|d is 96 |
|00000e20| 62 69 74 73 2e 20 20 0d | 20 20 20 20 20 20 20 20 |bits. .| |
|00000e30| 0b 41 66 74 65 72 44 61 | 72 6b 2e 63 02 00 00 00 |.AfterDa|rk.c....|
|00000e40| 54 45 58 54 43 57 49 45 | 01 00 00 00 00 00 00 00 |TEXTCWIE|........|
|00000e50| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 00 00 |..TEXTCW|IE......|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 ac 10 e3 02 00 00 | 0d 56 00 00 01 c8 65 73 |........|.V....es|
|00000e80| 20 72 65 71 75 69 72 65 | 20 61 6e 20 38 30 20 62 | require| an 80 b|
|00000e90| 69 74 20 65 78 74 65 6e | 64 65 64 20 73 6f 20 77 |it exten|ded so w|
|00000ea0| 65 20 64 65 66 69 6e 65 | 20 65 78 74 65 6e 64 65 |e define| extende|
|00000eb0| 64 38 30 0d 2a 2f 0d 23 | 69 66 20 47 45 4e 45 52 |d80.*/.#|if GENER|
|00000ec0| 41 54 49 4e 47 36 38 38 | 38 31 0d 74 79 70 65 64 |ATING688|81.typed|
|00000ed0| 65 66 20 73 74 72 75 63 | 74 20 5f 65 78 74 65 6e |ef struc|t _exten|
|00000ee0| 64 65 64 38 30 20 65 78 | 74 65 6e 64 65 64 38 30 |ded80 ex|tended80|
|00000ef0| 3b 0d 0d 74 79 70 65 64 | 65 66 20 65 78 74 65 6e |;..typed|ef exten|
|00000f00| 00 00 00 04 00 01 00 01 | 00 00 00 48 00 09 4d 6f |........|...H..Mo|
|00000f10| 6e 61 63 6f 00 00 00 00 | 01 9a 9e 80 00 00 00 00 |naco....|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 06 |........|........|
|00000f30| 00 02 00 3d 00 07 01 cc | 02 7d 00 3d 00 07 01 cc |...=....|.}.=....|
|00000f40| 02 7d ae 2c 4f 29 00 00 | 00 00 00 00 00 00 00 00 |.}.,O)..|........|
|00000f50| 00 00 00 00 00 00 00 1e | 00 3d 00 07 01 cc 02 7d |........|.=.....}|
|00000f60| 00 3d 00 07 01 cc 02 7d | 00 00 00 00 00 00 00 00 |.=.....}|........|
|00000f70| 00 00 00 00 00 00 00 00 | 01 00 00 00 01 76 00 00 |........|.....v..|
|00000f80| 00 76 00 00 00 52 01 8e | e8 c8 3e cc 00 00 00 1c |.v...R..|..>.....|
|00000f90| 00 52 00 01 4d 50 53 52 | 00 01 00 12 4d 57 42 42 |.R..MPSR|....MWBB|
|00000fa0| 00 00 00 2a 03 ed ff ff | 00 00 00 08 00 00 00 00 |...*....|........|
|00000fb0| 03 f0 ff ff 00 00 00 54 | 01 91 44 78 03 f0 ff ff |.......T|..Dx....|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+