home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-06-22 | 4.5 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: KillEveryoneButMe.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 Jun 22 03:23:53 1995, modified Thu Jun 22 03:23:53 1995, creator 'CWIE', type ASCII, 3909 bytes "KillEveryoneButMe.c" , at 0xfc5 488 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 13 4b 69 6c 6c 45 76 | 65 72 79 6f 6e 65 42 75 |..KillEv|eryoneBu|
|00000010| 74 4d 65 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |tMe.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 0f 45 00 | 00 01 e8 ac 0e cb 09 ac |......E.|........|
|00000060| 0e cb 09 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 8c 1d 00 00 |........|........|
|00000080| 2f 2a 0d 4b 69 6c 6c 45 | 76 65 72 79 6f 6e 65 42 |/*.KillE|veryoneB|
|00000090| 75 74 4d 65 2e 63 0d 0d | 51 75 69 74 73 20 65 76 |utMe.c..|Quits ev|
|000000a0| 65 72 79 20 6f 74 68 65 | 72 20 61 70 70 6c 69 63 |ery othe|r applic|
|000000b0| 61 74 69 6f 6e 20 6f 6e | 20 79 6f 75 72 20 6d 61 |ation on| your ma|
|000000c0| 63 68 69 6e 65 2c 20 69 | 6e 63 6c 75 64 69 6e 67 |chine, i|ncluding|
|000000d0| 20 74 68 65 20 46 69 6e | 64 65 72 20 28 61 6e 64 | the Fin|der (and|
|000000e0| 20 46 69 6c 65 53 68 61 | 72 69 6e 67 29 2e 20 0d | FileSha|ring). .|
|000000f0| 52 65 71 75 69 72 65 73 | 20 61 74 20 6c 65 61 73 |Requires| at leas|
|00000100| 74 20 53 79 73 74 65 6d | 20 37 2c 20 6f 74 68 65 |t System| 7, othe|
|00000110| 72 77 69 73 65 20 72 65 | 74 75 72 6e 73 20 31 20 |rwise re|turns 1 |
|00000120| 61 6e 64 20 64 6f 65 73 | 20 6e 6f 74 68 69 6e 67 |and does| nothing|
|00000130| 2e 0d 54 68 69 73 20 6d | 61 79 20 62 65 20 61 70 |..This m|ay be ap|
|00000140| 70 72 6f 70 72 69 61 74 | 65 20 66 6f 72 20 61 6e |propriat|e for an|
|00000150| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 74 68 61 | applica|tion tha|
|00000160| 74 20 77 69 6c 6c 20 68 | 6f 67 20 74 68 65 20 65 |t will h|og the e|
|00000170| 6e 74 69 72 65 20 6d 61 | 63 68 69 6e 65 20 61 6e |ntire ma|chine an|
|00000180| 79 77 61 79 2c 0d 69 6e | 20 6f 72 64 65 72 20 74 |yway,.in| order t|
|00000190| 6f 20 6d 61 78 69 6d 69 | 7a 65 20 74 68 65 20 61 |o maximi|ze the a|
|000001a0| 76 61 69 6c 61 62 6c 65 | 20 6d 65 6d 6f 72 79 20 |vailable| memory |
|000001b0| 61 6e 64 20 6d 69 6e 69 | 6d 69 7a 65 20 74 68 65 |and mini|mize the|
|000001c0| 20 74 69 6d 65 20 6c 6f | 73 74 20 74 6f 20 6f 74 | time lo|st to ot|
|000001d0| 68 65 72 20 0d 70 72 6f | 63 65 73 73 65 73 2e 0d |her .pro|cesses..|
|000001e0| 0d 22 53 6f 6d 65 20 66 | 6f 6c 6b 73 20 77 61 6e |."Some f|olks wan|
|000001f0| 74 20 74 6f 20 6b 69 6c | 6c 20 61 6c 6c 20 74 68 |t to kil|l all th|
|00000200| 65 20 6f 74 68 65 72 20 | 61 70 70 6c 69 63 61 74 |e other |applicat|
|00000210| 69 6f 6e 73 20 72 75 6e | 6e 69 6e 67 20 6f 6e 20 |ions run|ning on |
|00000220| 61 20 6d 61 63 68 69 6e | 65 20 66 6f 72 0d 64 65 |a machin|e for.de|
|00000230| 6d 6f 73 2c 20 73 63 68 | 6f 6f 6c 20 73 69 74 75 |mos, sch|ool situ|
|00000240| 61 74 69 6f 6e 73 2c 20 | 6b 69 6f 73 6b 73 2c 20 |ations, |kiosks, |
|00000250| 65 74 63 2e 20 57 69 74 | 68 20 53 79 73 74 65 6d |etc. Wit|h System|
|00000260| 20 37 20 69 74 27 73 20 | 65 61 73 79 2e 20 4a 75 | 7 it's |easy. Ju|
|00000270| 73 74 20 75 73 65 20 74 | 68 65 0d 50 72 6f 63 65 |st use t|he.Proce|
|00000280| 73 73 20 4d 61 6e 61 67 | 65 72 20 61 6e 64 20 41 |ss Manag|er and A|
|00000290| 70 70 6c 65 45 76 65 6e | 74 73 2e 20 54 68 69 73 |ppleEven|ts. This|
|000002a0| 20 74 68 69 6e 67 20 73 | 68 6f 77 73 20 79 6f 75 | thing s|hows you|
|000002b0| 20 68 6f 77 2e 0d 0d 22 | 50 4c 45 41 53 45 20 64 | how..."|PLEASE d|
|000002c0| 6f 6e 27 74 20 61 62 75 | 73 65 20 74 68 69 73 2e |on't abu|se this.|
|000002d0| 20 20 53 79 73 74 65 6d | 20 37 20 67 69 76 65 73 | System| 7 gives|
|000002e0| 20 74 68 65 20 75 73 65 | 72 20 66 75 6c 6c 2d 74 | the use|r full-t|
|000002f0| 69 6d 65 20 6d 75 6c 74 | 69 46 69 6e 64 65 72 2c |ime mult|iFinder,|
|00000300| 20 61 6e 64 20 74 68 65 | 79 0d 6c 69 6b 65 20 69 | and the|y.like i|
|00000310| 74 2c 20 6f 75 72 20 53 | 79 73 74 65 6d 20 53 6f |t, our S|ystem So|
|00000320| 66 74 77 61 72 65 20 74 | 65 61 6d 20 77 6f 72 6b |ftware t|eam work|
|00000330| 65 64 20 76 65 72 79 20 | 68 61 72 64 20 74 6f 20 |ed very |hard to |
|00000340| 6d 61 6b 65 20 74 68 69 | 73 20 68 61 70 70 65 6e |make thi|s happen|
|00000350| 2e 20 20 4f 4e 4c 59 20 | 64 6f 0d 74 68 69 73 20 |. ONLY |do.this |
|00000360| 69 6e 20 76 65 72 79 20 | 73 70 65 63 69 61 6c 20 |in very |special |
|00000370| 63 69 72 63 75 6d 73 74 | 61 6e 63 65 73 2c 20 6f |circumst|ances, o|
|00000380| 72 20 79 6f 75 27 72 65 | 20 74 61 6b 69 6e 67 20 |r you're| taking |
|00000390| 70 6f 77 65 72 20 61 77 | 61 79 20 66 72 6f 6d 20 |power aw|ay from |
|000003a0| 74 68 65 20 75 73 65 72 | 20 61 6e 64 0d 74 77 65 |the user| and.twe|
|000003b0| 61 6b 69 6e 67 20 74 68 | 65 20 73 74 72 65 6e 67 |aking th|e streng|
|000003c0| 74 68 20 6f 66 20 74 68 | 65 20 4d 61 63 2e 0d 0d |th of th|e Mac...|
|000003d0| 22 57 72 69 74 74 65 6e | 20 62 79 20 43 2e 4b 2e |"Written| by C.K.|
|000003e0| 20 48 61 75 6e 20 3c 54 | 52 3e 2c 20 41 70 70 6c | Haun <T|R>, Appl|
|000003f0| 65 20 44 65 76 65 6c 6f | 70 65 72 20 54 65 63 68 |e Develo|per Tech|
|00000400| 20 53 75 70 70 6f 72 74 | 0d 0d 22 42 55 47 20 46 | Support|.."BUG F|
|00000410| 49 58 2c 20 69 66 20 6f | 6e 6c 79 20 74 68 69 73 |IX, if o|nly this|
|00000420| 20 61 70 70 20 61 6e 64 | 20 74 68 65 20 46 69 6e | app and| the Fin|
|00000430| 64 65 72 20 77 65 72 65 | 20 72 75 6e 6e 69 6e 67 |der were| running|
|00000440| 2c 20 69 74 20 64 69 64 | 6e 27 74 20 64 6f 20 61 |, it did|n't do a|
|00000450| 6e 79 74 68 69 6e 67 2e | 20 4f 6f 70 73 0d 0d 22 |nything.| Oops.."|
|00000460| 4f 66 20 63 6f 75 72 73 | 65 2c 20 43 6f 70 79 72 |Of cours|e, Copyr|
|00000470| 69 67 68 74 20 31 39 39 | 31 2d 31 39 39 32 2c 20 |ight 199|1-1992, |
|00000480| 41 70 70 6c 65 20 43 6f | 6d 70 75 74 65 72 20 49 |Apple Co|mputer I|
|00000490| 6e 63 2e 22 0d 0d 43 2e | 4b 2e 48 41 55 4e 40 61 |nc."..C.|K.HAUN@a|
|000004a0| 70 70 6c 65 6c 69 6e 6b | 2e 61 70 70 6c 65 2e 63 |pplelink|.apple.c|
|000004b0| 6f 6d 0d 0d 4e 4f 54 45 | 3a 0d 49 74 20 69 73 20 |om..NOTE|:.It is |
|000004c0| 65 73 73 65 6e 74 69 61 | 6c 20 74 68 61 74 20 74 |essentia|l that t|
|000004d0| 68 65 20 69 73 48 69 67 | 68 4c 65 76 65 6c 45 76 |he isHig|hLevelEv|
|000004e0| 65 6e 74 41 77 61 72 65 | 20 62 69 74 20 62 65 20 |entAware| bit be |
|000004f0| 73 65 74 20 69 6e 20 79 | 6f 75 72 20 61 70 70 6c |set in y|our appl|
|00000500| 69 63 61 74 69 6f 6e 27 | 73 0d 53 49 5a 45 20 72 |ication'|s.SIZE r|
|00000510| 65 73 6f 75 72 63 65 2c | 20 6f 74 68 65 72 77 69 |esource,| otherwi|
|00000520| 73 65 20 61 6c 6c 20 79 | 6f 75 72 20 61 74 74 65 |se all y|our atte|
|00000530| 6d 70 74 73 20 74 6f 20 | 65 6d 69 74 20 41 70 70 |mpts to |emit App|
|00000540| 6c 65 45 76 65 6e 74 73 | 20 77 69 6c 6c 20 62 65 |leEvents| will be|
|00000550| 20 69 67 6e 6f 72 65 64 | 2e 0d 49 6e 20 43 6f 64 | ignored|..In Cod|
|00000560| 65 57 61 72 72 69 6f 72 | 2c 20 75 73 65 20 74 68 |eWarrior|, use th|
|00000570| 65 20 45 64 69 74 3a 50 | 72 65 66 65 72 65 6e 63 |e Edit:P|referenc|
|00000580| 65 73 20 6d 65 6e 75 20 | 69 74 65 6d 20 74 6f 20 |es menu |item to |
|00000590| 73 65 74 20 74 68 65 20 | 50 72 6f 6a 65 63 74 3a |set the |Project:|
|000005a0| 53 49 5a 45 20 46 6c 61 | 67 73 2e 0d 49 6e 20 54 |SIZE Fla|gs..In T|
|000005b0| 48 49 4e 4b 20 43 2c 20 | 75 73 65 20 74 68 65 20 |HINK C, |use the |
|000005c0| 6d 65 6e 75 20 69 74 65 | 6d 20 50 72 6f 6a 65 63 |menu ite|m Projec|
|000005d0| 74 3a 53 65 74 50 72 6f | 6a 65 63 74 54 79 70 65 |t:SetPro|jectType|
|000005e0| 3a 53 49 5a 45 20 46 6c | 61 67 73 2e 0d 0d 43 41 |:SIZE Fl|ags...CA|
|000005f0| 55 54 49 4f 4e 3a 0d 54 | 68 69 73 20 72 6f 75 74 |UTION:.T|his rout|
|00000600| 69 6e 65 20 68 61 73 20 | 6e 6f 74 20 62 65 65 6e |ine has |not been|
|00000610| 20 74 65 73 74 65 64 2e | 0d 0d 53 45 45 20 41 4c | tested.|..SEE AL|
|00000620| 53 4f 3a 0d 56 69 64 65 | 6f 54 6f 6f 6c 62 6f 78 |SO:.Vide|oToolbox|
|00000630| 3a 44 65 6d 6f 73 3a 51 | 75 69 74 74 65 72 2e 63 |:Demos:Q|uitter.c|
|00000640| 0d 0d 41 43 4b 4e 4f 57 | 4c 45 44 47 45 4d 45 4e |..ACKNOW|LEDGEMEN|
|00000650| 54 3a 0d 50 65 74 65 72 | 20 4c 65 6e 6e 69 65 20 |T:.Peter| Lennie |
|00000660| 67 61 76 65 20 6d 65 20 | 61 20 73 69 6d 69 6c 61 |gave me |a simila|
|00000670| 72 20 72 6f 75 74 69 6e | 65 2c 20 66 6f 72 20 69 |r routin|e, for i|
|00000680| 6e 63 6c 75 73 69 6f 6e | 20 69 6e 20 74 68 65 20 |nclusion| in the |
|00000690| 56 69 64 65 6f 54 6f 6f | 6c 62 6f 78 2e 0d 0d 48 |VideoToo|lbox...H|
|000006a0| 49 53 54 4f 52 59 3a 0d | 36 2f 36 2f 39 35 20 64 |ISTORY:.|6/6/95 d|
|000006b0| 67 70 20 65 78 74 72 61 | 63 74 65 64 20 66 72 6f |gp extra|cted fro|
|000006c0| 6d 20 41 70 70 6c 65 20 | 64 65 76 65 6c 6f 70 20 |m Apple |develop |
|000006d0| 42 6f 6f 6b 6d 61 72 6b | 20 43 44 20 73 6e 69 70 |Bookmark| CD snip|
|000006e0| 70 65 74 73 20 66 6f 6c | 64 65 72 2c 20 61 6e 64 |pets fol|der, and|
|000006f0| 20 65 64 69 74 65 64 0d | 09 74 6f 20 6d 61 6b 65 | edited.|.to make|
|00000700| 20 69 74 20 6d 6f 72 65 | 20 72 65 61 64 61 62 6c | it more| readabl|
|00000710| 65 20 61 6e 64 20 73 68 | 6f 72 74 65 72 2e 20 43 |e and sh|orter. C|
|00000720| 6f 72 72 65 63 74 65 64 | 20 6d 69 6e 6f 72 20 62 |orrected| minor b|
|00000730| 75 67 73 20 69 6e 20 74 | 68 65 20 64 69 73 70 6f |ugs in t|he dispo|
|00000740| 73 69 6e 67 0d 09 6f 66 | 20 72 65 73 6f 75 72 63 |sing..of| resourc|
|00000750| 65 73 20 69 6e 20 74 68 | 65 20 65 76 65 6e 74 20 |es in th|e event |
|00000760| 6f 66 20 65 72 72 6f 72 | 2e 0d 2a 2f 0d 23 69 6e |of error|..*/.#in|
|00000770| 63 6c 75 64 65 20 22 56 | 69 64 65 6f 54 6f 6f 6c |clude "V|ideoTool|
|00000780| 62 6f 78 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |box.h".#|include |
|00000790| 3c 41 70 70 6c 65 45 76 | 65 6e 74 73 2e 68 3e 0d |<AppleEv|ents.h>.|
|000007a0| 0d 4f 53 45 72 72 20 4b | 69 6c 6c 45 76 65 72 79 |.OSErr K|illEvery|
|000007b0| 6f 6e 65 42 75 74 4d 65 | 28 76 6f 69 64 29 0d 7b |oneButMe|(void).{|
|000007c0| 0d 09 50 72 6f 63 65 73 | 73 53 65 72 69 61 6c 4e |..Proces|sSerialN|
|000007d0| 75 6d 62 65 72 20 70 73 | 6e 3d 7b 6b 4e 6f 50 72 |umber ps|n={kNoPr|
|000007e0| 6f 63 65 73 73 2c 6b 4e | 6f 50 72 6f 63 65 73 73 |ocess,kN|oProcess|
|000007f0| 7d 2c 6f 75 72 50 53 4e | 2c 66 69 6e 64 65 72 50 |},ourPSN|,finderP|
|00000800| 53 4e 3d 7b 6b 4e 6f 50 | 72 6f 63 65 73 73 2c 6b |SN={kNoP|rocess,k|
|00000810| 4e 6f 50 72 6f 63 65 73 | 73 7d 3b 0d 09 50 72 6f |NoProces|s};..Pro|
|00000820| 63 65 73 73 49 6e 66 6f | 52 65 63 20 69 6e 66 6f |cessInfo|Rec info|
|00000830| 52 65 63 3b 0d 09 53 74 | 72 33 31 20 70 72 6f 63 |Rec;..St|r31 proc|
|00000840| 65 73 73 4e 61 6d 65 3b | 0d 09 46 53 53 70 65 63 |essName;|..FSSpec|
|00000850| 20 70 72 6f 63 53 70 65 | 63 3b 0d 09 4f 53 45 72 | procSpe|c;..OSEr|
|00000860| 72 20 65 72 72 6f 72 3b | 0d 09 41 70 70 6c 65 45 |r error;|..AppleE|
|00000870| 76 65 6e 74 20 65 76 65 | 6e 74 3b 0d 09 41 45 44 |vent eve|nt;..AED|
|00000880| 65 73 63 20 61 64 64 72 | 65 73 73 3b 0d 09 42 6f |esc addr|ess;..Bo|
|00000890| 6f 6c 65 61 6e 20 69 73 | 4f 6b 2c 69 73 55 73 2c |olean is|Ok,isUs,|
|000008a0| 69 73 46 69 6e 64 65 72 | 2c 66 6f 75 6e 64 46 69 |isFinder|,foundFi|
|000008b0| 6e 64 65 72 3d 30 3b 0d | 09 6c 6f 6e 67 20 76 61 |nder=0;.|.long va|
|000008c0| 6c 75 65 3b 0d 09 0d 09 | 65 72 72 6f 72 3d 47 65 |lue;....|error=Ge|
|000008d0| 73 74 61 6c 74 28 67 65 | 73 74 61 6c 74 41 70 70 |stalt(ge|staltApp|
|000008e0| 6c 65 45 76 65 6e 74 73 | 41 74 74 72 2c 26 76 61 |leEvents|Attr,&va|
|000008f0| 6c 75 65 29 3b 0d 09 69 | 66 28 65 72 72 6f 72 20 |lue);..i|f(error |
|00000900| 7c 7c 20 21 28 76 61 6c | 75 65 26 28 31 3c 3c 67 ||| !(val|ue&(1<<g|
|00000910| 65 73 74 61 6c 74 41 70 | 70 6c 65 45 76 65 6e 74 |estaltAp|pleEvent|
|00000920| 73 50 72 65 73 65 6e 74 | 29 29 29 72 65 74 75 72 |sPresent|)))retur|
|00000930| 6e 20 31 3b 0d 09 47 65 | 74 43 75 72 72 65 6e 74 |n 1;..Ge|tCurrent|
|00000940| 50 72 6f 63 65 73 73 28 | 26 6f 75 72 50 53 4e 29 |Process(|&ourPSN)|
|00000950| 3b 0d 09 64 6f 7b 0d 09 | 09 65 72 72 6f 72 3d 47 |;..do{..|.error=G|
|00000960| 65 74 4e 65 78 74 50 72 | 6f 63 65 73 73 28 26 70 |etNextPr|ocess(&p|
|00000970| 73 6e 29 3b 0d 09 09 73 | 77 69 74 63 68 28 65 72 |sn);...s|witch(er|
|00000980| 72 6f 72 29 7b 0d 09 09 | 63 61 73 65 20 6e 6f 45 |ror){...|case noE|
|00000990| 72 72 3a 0d 09 09 09 69 | 73 4f 6b 3d 31 3b 0d 09 |rr:....i|sOk=1;..|
|000009a0| 09 09 2f 2a 20 49 73 20 | 69 74 20 75 73 3f 20 2a |../* Is |it us? *|
|000009b0| 2f 0d 09 20 20 20 20 20 | 20 20 20 53 61 6d 65 50 |/.. | SameP|
|000009c0| 72 6f 63 65 73 73 28 26 | 6f 75 72 50 53 4e 2c 26 |rocess(&|ourPSN,&|
|000009d0| 70 73 6e 2c 26 69 73 55 | 73 29 3b 0d 09 20 20 20 |psn,&isU|s);.. |
|000009e0| 20 20 20 20 20 2f 2a 20 | 49 73 20 69 74 20 74 68 | /* |Is it th|
|000009f0| 65 20 46 69 6e 64 65 72 | 3f 20 2a 2f 0d 09 20 20 |e Finder|? */.. |
|00000a00| 20 20 20 20 20 20 69 6e | 66 6f 52 65 63 2e 70 72 | in|foRec.pr|
|00000a10| 6f 63 65 73 73 49 6e 66 | 6f 4c 65 6e 67 74 68 3d |ocessInf|oLength=|
|00000a20| 73 69 7a 65 6f 66 28 50 | 72 6f 63 65 73 73 49 6e |sizeof(P|rocessIn|
|00000a30| 66 6f 52 65 63 29 3b 0d | 09 20 20 20 20 20 20 20 |foRec);.|. |
|00000a40| 20 69 6e 66 6f 52 65 63 | 2e 70 72 6f 63 65 73 73 | infoRec|.process|
|00000a50| 4e 61 6d 65 3d 70 72 6f | 63 65 73 73 4e 61 6d 65 |Name=pro|cessName|
|00000a60| 3b 0d 09 20 20 20 20 20 | 20 20 20 69 6e 66 6f 52 |;.. | infoR|
|00000a70| 65 63 2e 70 72 6f 63 65 | 73 73 41 70 70 53 70 65 |ec.proce|ssAppSpe|
|00000a80| 63 3d 26 70 72 6f 63 53 | 70 65 63 3b 0d 09 20 20 |c=&procS|pec;.. |
|00000a90| 20 20 20 20 20 20 47 65 | 74 50 72 6f 63 65 73 73 | Ge|tProcess|
|00000aa0| 49 6e 66 6f 72 6d 61 74 | 69 6f 6e 28 26 70 73 6e |Informat|ion(&psn|
|00000ab0| 2c 26 69 6e 66 6f 52 65 | 63 29 3b 0d 09 09 09 69 |,&infoRe|c);....i|
|00000ac0| 73 46 69 6e 64 65 72 3d | 69 6e 66 6f 52 65 63 2e |sFinder=|infoRec.|
|00000ad0| 70 72 6f 63 65 73 73 53 | 69 67 6e 61 74 75 72 65 |processS|ignature|
|00000ae0| 3d 3d 27 4d 41 43 53 27 | 20 26 26 20 69 6e 66 6f |=='MACS'| && info|
|00000af0| 52 65 63 2e 70 72 6f 63 | 65 73 73 54 79 70 65 3d |Rec.proc|essType=|
|00000b00| 3d 27 46 4e 44 52 27 3b | 0d 09 09 09 69 66 28 69 |='FNDR';|....if(i|
|00000b10| 73 46 69 6e 64 65 72 29 | 7b 0d 09 09 09 09 66 69 |sFinder)|{.....fi|
|00000b20| 6e 64 65 72 50 53 4e 3d | 70 73 6e 3b 0d 09 09 09 |nderPSN=|psn;....|
|00000b30| 09 66 6f 75 6e 64 46 69 | 6e 64 65 72 3d 31 3b 0d |.foundFi|nder=1;.|
|00000b40| 09 09 09 7d 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |...}....|break;..|
|00000b50| 09 63 61 73 65 20 70 72 | 6f 63 4e 6f 74 46 6f 75 |.case pr|ocNotFou|
|00000b60| 6e 64 3a 0d 09 09 09 69 | 73 4f 6b 3d 30 3b 0d 09 |nd:....i|sOk=0;..|
|00000b70| 09 09 70 73 6e 3d 66 69 | 6e 64 65 72 50 53 4e 3b |..psn=fi|nderPSN;|
|00000b80| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 64 65 66 |....brea|k;...def|
|00000b90| 61 75 6c 74 3a 0d 09 09 | 09 72 65 74 75 72 6e 20 |ault:...|.return |
|00000ba0| 65 72 72 6f 72 3b 0d 09 | 09 7d 0d 09 09 2f 2a 0d |error;..|.}.../*.|
|00000bb0| 09 09 4b 69 6c 6c 20 74 | 68 65 20 46 69 6e 64 65 |..Kill t|he Finde|
|00000bc0| 72 20 6c 61 73 74 20 6f | 66 20 61 6c 6c 2e 0d 09 |r last o|f all...|
|00000bd0| 09 4f 74 68 65 72 77 69 | 73 65 20 6e 6f 6e 2d 41 |.Otherwi|se non-A|
|00000be0| 70 70 6c 65 45 76 65 6e | 74 2d 61 77 61 72 65 20 |ppleEven|t-aware |
|00000bf0| 61 70 70 73 20 77 6f 6e | 27 74 20 67 65 74 20 6b |apps won|'t get k|
|00000c00| 69 6c 6c 65 64 20 62 65 | 63 61 75 73 65 20 74 68 |illed be|cause th|
|00000c10| 65 20 46 69 6e 64 65 72 | 0d 09 09 77 6f 6e 27 74 |e Finder|...won't|
|00000c20| 20 62 65 20 74 68 65 72 | 65 20 74 6f 20 63 6f 6e | be ther|e to con|
|00000c30| 76 65 72 74 20 74 68 65 | 20 41 70 70 6c 65 45 76 |vert the| AppleEv|
|00000c40| 65 6e 74 20 74 6f 20 70 | 75 70 70 65 74 20 73 74 |ent to p|uppet st|
|00000c50| 72 69 6e 67 73 2e 0d 09 | 09 41 6e 64 20 46 69 6c |rings...|.And Fil|
|00000c60| 65 53 68 61 72 65 20 6d | 75 73 74 20 62 65 20 6b |eShare m|ust be k|
|00000c70| 69 6c 6c 65 64 20 62 65 | 66 6f 72 65 20 74 68 65 |illed be|fore the|
|00000c80| 20 46 69 6e 64 65 72 2e | 0d 09 09 2a 2f 0d 09 09 | Finder.|...*/...|
|00000c90| 69 66 28 69 73 4f 6b 20 | 26 26 20 21 69 73 55 73 |if(isOk |&& !isUs|
|00000ca0| 20 26 26 20 21 69 73 46 | 69 6e 64 65 72 20 7c 7c | && !isF|inder |||
|00000cb0| 20 21 69 73 4f 6b 20 26 | 26 20 66 6f 75 6e 64 46 | !isOk &|& foundF|
|00000cc0| 69 6e 64 65 72 29 7b 0d | 09 09 09 65 72 72 6f 72 |inder){.|...error|
|00000cd0| 3d 41 45 43 72 65 61 74 | 65 44 65 73 63 28 74 79 |=AECreat|eDesc(ty|
|00000ce0| 70 65 50 72 6f 63 65 73 | 73 53 65 72 69 61 6c 4e |peProces|sSerialN|
|00000cf0| 75 6d 62 65 72 2c 28 50 | 74 72 29 26 70 73 6e 2c |umber,(P|tr)&psn,|
|00000d00| 73 69 7a 65 6f 66 28 70 | 73 6e 29 2c 26 61 64 64 |sizeof(p|sn),&add|
|00000d10| 72 65 73 73 29 3b 0d 09 | 09 09 69 66 28 21 65 72 |ress);..|..if(!er|
|00000d20| 72 6f 72 29 7b 0d 09 09 | 09 09 65 72 72 6f 72 3d |ror){...|..error=|
|00000d30| 41 45 43 72 65 61 74 65 | 41 70 70 6c 65 45 76 65 |AECreate|AppleEve|
|00000d40| 6e 74 28 6b 43 6f 72 65 | 45 76 65 6e 74 43 6c 61 |nt(kCore|EventCla|
|00000d50| 73 73 2c 6b 41 45 51 75 | 69 74 41 70 70 6c 69 63 |ss,kAEQu|itApplic|
|00000d60| 61 74 69 6f 6e 2c 26 61 | 64 64 72 65 73 73 0d 09 |ation,&a|ddress..|
|00000d70| 09 09 09 09 2c 6b 41 75 | 74 6f 47 65 6e 65 72 61 |....,kAu|toGenera|
|00000d80| 74 65 52 65 74 75 72 6e | 49 44 2c 6b 41 6e 79 54 |teReturn|ID,kAnyT|
|00000d90| 72 61 6e 73 61 63 74 69 | 6f 6e 49 44 2c 26 65 76 |ransacti|onID,&ev|
|00000da0| 65 6e 74 29 3b 0d 09 09 | 09 09 41 45 44 69 73 70 |ent);...|..AEDisp|
|00000db0| 6f 73 65 44 65 73 63 28 | 26 61 64 64 72 65 73 73 |oseDesc(|&address|
|00000dc0| 29 3b 0d 09 09 09 09 2f | 2a 0d 09 09 09 09 54 68 |);...../|*.....Th|
|00000dd0| 65 20 46 69 6e 64 65 72 | 20 77 69 6c 6c 20 63 6f |e Finder| will co|
|00000de0| 6e 76 65 72 74 20 74 68 | 65 20 41 70 70 6c 65 45 |nvert th|e AppleE|
|00000df0| 76 65 6e 74 20 74 6f 20 | 70 75 70 70 65 74 73 74 |vent to |puppetst|
|00000e00| 72 69 6e 67 73 20 69 66 | 0d 09 09 09 09 74 68 65 |rings if|.....the|
|00000e10| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 69 73 20 | applica|tion is |
|00000e20| 6e 6f 74 20 41 70 70 6c | 65 45 76 65 6e 74 2d 61 |not Appl|eEvent-a|
|00000e30| 77 61 72 65 2e 20 42 75 | 74 20 74 68 69 73 20 6f |ware. Bu|t this o|
|00000e40| 6e 6c 79 0d 09 09 09 09 | 68 61 70 70 65 6e 73 20 |nly.....|happens |
|00000e50| 66 6f 72 20 74 68 65 20 | 34 20 72 65 71 75 69 72 |for the |4 requir|
|00000e60| 65 64 20 28 6f 61 70 70 | 2c 6f 64 6f 63 2c 70 64 |ed (oapp|,odoc,pd|
|00000e70| 6f 63 2c 61 6e 64 20 71 | 75 69 74 29 20 41 70 70 |oc,and q|uit) App|
|00000e80| 6c 65 45 76 65 6e 74 73 | 0d 09 09 09 09 61 6e 64 |leEvents|.....and|
|00000e90| 20 6f 6e 6c 79 20 69 66 | 20 79 6f 75 20 75 73 65 | only if| you use|
|00000ea0| 20 74 68 65 20 50 53 4e | 20 66 6f 72 20 74 68 65 | the PSN| for the|
|00000eb0| 20 61 64 64 72 65 73 73 | 2e 0d 09 09 09 09 2a 2f | address|......*/|
|00000ec0| 0d 09 09 09 09 69 66 28 | 21 65 72 72 6f 72 29 7b |.....if(|!error){|
|00000ed0| 0d 09 09 09 09 20 20 20 | 20 41 45 53 65 6e 64 28 |..... | AESend(|
|00000ee0| 26 65 76 65 6e 74 2c 4e | 55 4c 4c 2c 6b 41 45 4e |&event,N|ULL,kAEN|
|00000ef0| 6f 52 65 70 6c 79 2b 6b | 41 45 41 6c 77 61 79 73 |oReply+k|AEAlways|
|00000f00| 49 6e 74 65 72 61 63 74 | 2b 6b 41 45 43 61 6e 53 |Interact|+kAECanS|
|00000f10| 77 69 74 63 68 4c 61 79 | 65 72 0d 09 09 09 09 20 |witchLay|er..... |
|00000f20| 20 20 20 09 2c 6b 41 45 | 4e 6f 72 6d 61 6c 50 72 | .,kAE|NormalPr|
|00000f30| 69 6f 72 69 74 79 2c 6b | 41 45 44 65 66 61 75 6c |iority,k|AEDefaul|
|00000f40| 74 54 69 6d 65 6f 75 74 | 2c 4e 55 4c 4c 2c 4e 55 |tTimeout|,NULL,NU|
|00000f50| 4c 4c 29 3b 0d 09 09 09 | 09 09 41 45 44 69 73 70 |LL);....|..AEDisp|
|00000f60| 6f 73 65 44 65 73 63 28 | 26 65 76 65 6e 74 29 3b |oseDesc(|&event);|
|00000f70| 0d 09 09 09 09 7d 0d 09 | 09 09 7d 0d 09 09 09 69 |.....}..|..}....i|
|00000f80| 66 28 65 72 72 6f 72 29 | 72 65 74 75 72 6e 20 65 |f(error)|return e|
|00000f90| 72 72 6f 72 3b 0d 20 20 | 20 20 20 20 20 20 7d 0d |rror;. | }.|
|00000fa0| 20 20 20 20 7d 77 68 69 | 6c 65 28 69 73 4f 6b 29 | }whi|le(isOk)|
|00000fb0| 3b 0d 20 20 20 20 72 65 | 74 75 72 6e 20 30 3b 0d |;. re|turn 0;.|
|00000fc0| 7d 0d 0d 0d 0d 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 |........|........|
|00001000| 00 00 01 00 00 00 01 8a | 00 00 00 8a 00 00 00 5e |........|.......^|
|00001010| 00 00 4a 6e 00 00 00 00 | 00 00 00 00 00 00 00 00 |..Jn....|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 13 4b 69 6c 6c 45 76 65 | 72 79 6f 6e 65 42 75 74 |.KillEve|ryoneBut|
|00001040| 4d 65 2e 63 02 00 00 00 | 54 45 58 54 43 57 49 45 |Me.c....|TEXTCWIE|
|00001050| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 14 03 00 |..TEXTCW|IE......|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 a4 ac a5 bd 00 00 | 0f 45 00 00 01 e8 00 00 |........|.E......|
|00001080| 00 00 00 00 00 00 00 00 | 00 00 06 59 25 00 00 00 |........|...Y%...|
|00001090| 4c ae 09 53 70 65 6c 6c | 65 72 2e 63 00 00 00 00 |L..Spell|er.c....|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 06 1f 25 00 | 00 00 4c ae 09 53 70 65 |......%.|..L..Spe|
|000010c0| 6c 6c 65 72 2e 63 00 00 | 00 00 00 00 00 00 00 00 |ller.c..|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 06 1f |........|........|
|000010e0| 25 00 00 00 4c ae 09 53 | 70 65 6c 6c 65 72 2e 63 |%...L..S|peller.c|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 10 00 01 00 00 | 0b c9 00 00 0b cd 05 6d |........|.......m|
|00001110| 61 69 6e 00 00 00 00 1e | 00 64 00 1c 01 8d 02 3d |ain.....|.d.....=|
|00001120| 00 64 00 1c 01 8d 02 3d | 00 00 00 00 00 00 00 00 |.d.....=|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 48 00 09 4d 6f 6e 61 |........|.H..Mona|
|00001140| 63 6f 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |co......|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 03 00 04 |........|........|
|00001160| 00 64 00 1c 01 8d 02 3d | 00 64 00 1c 01 8d 02 3d |.d.....=|.d.....=|
|00001170| ac 0e 92 ca 00 00 03 61 | 00 00 03 61 00 00 00 00 |.......a|...a....|
|00001180| 01 00 00 00 00 04 00 01 | 00 01 00 00 01 00 00 00 |........|........|
|00001190| 01 8a 00 00 00 8a 00 00 | 00 5e 00 68 66 98 1f f4 |........|.^.hf...|
|000011a0| 00 00 00 1c 00 5e 00 01 | 4d 50 53 52 00 02 00 12 |.....^..|MPSR....|
|000011b0| 4d 57 42 42 00 00 00 36 | 03 ef ff ff 00 00 00 00 |MWBB...6|........|
|000011c0| 00 00 00 00 03 f0 ff ff | 00 00 00 14 00 00 00 00 |........|........|
|000011d0| 03 ed ff ff 00 00 00 36 | 00 00 00 00 03 f0 ff ff |.......6|........|
|000011e0| 00 00 00 82 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+