home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-06-10 | 4.4 KB | [ TEXT/CWIE]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
You can browse this item here: Quitter.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, Sat Jun 10 15:05:37 1995, modified Sat Jun 10 15:05:37 1995, creator 'CWIE', type ASCII, 3608 bytes "Quitter.c" , at 0xe98 550 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 09 51 75 69 74 74 65 | 72 2e 63 00 00 00 00 00 |..Quitte|r.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 0e 18 00 | 00 02 26 ab ff 9d 81 ab |........|..&.....| |00000060| ff 9d 81 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 2c ae 00 00 |........|....,...| |00000080| 2f 2a 0d 51 75 69 74 74 | 65 72 2e 63 0d 0d 4b 69 |/*.Quitt|er.c..Ki| |00000090| 6c 6c 20 61 20 70 72 6f | 67 72 61 6d 20 6f 6e 20 |ll a pro|gram on | |000000a0| 61 20 6c 6f 63 61 6c 20 | 6f 72 20 72 65 6d 6f 74 |a local |or remot| |000000b0| 65 20 63 6f 6d 70 75 74 | 65 72 20 62 79 20 73 65 |e comput|er by se| |000000c0| 6e 64 69 6e 67 20 61 6e | 20 41 70 70 6c 65 45 76 |nding an| AppleEv| |000000d0| 65 6e 74 2e 0d 0d 55 6e | 66 6f 72 74 75 6e 61 74 |ent...Un|fortunat| |000000e0| 65 6c 79 2c 20 69 74 20 | 61 70 70 65 61 72 73 20 |ely, it |appears | |000000f0| 74 68 61 74 20 41 70 70 | 6c 65 20 64 6f 65 73 6e |that App|le doesn| |00000100| 27 74 20 63 6f 6e 73 69 | 64 65 72 20 61 63 74 69 |'t consi|der acti| |00000110| 76 65 20 64 65 73 6b 20 | 61 63 63 65 73 73 6f 72 |ve desk |accessor| |00000120| 69 65 73 20 61 73 0d 22 | 70 72 6f 63 65 73 73 65 |ies as."|processe| |00000130| 73 22 20 74 6f 20 77 68 | 69 63 68 20 6f 6e 65 20 |s" to wh|ich one | |00000140| 63 61 6e 20 73 65 6e 64 | 20 61 6e 20 41 70 70 6c |can send| an Appl| |00000150| 65 45 76 65 6e 74 2e 20 | 54 68 65 20 6e 6f 74 65 |eEvent. |The note| |00000160| 73 20 69 6e 20 4b 69 6c | 6c 45 76 65 72 79 6f 6e |s in Kil|lEveryon| |00000170| 65 42 75 74 4d 65 2e 63 | 0d 69 6e 64 69 63 61 74 |eButMe.c|.indicat| |00000180| 65 20 74 68 61 74 20 74 | 68 65 20 46 69 6e 64 65 |e that t|he Finde| |00000190| 72 20 63 61 6e 20 68 65 | 6c 70 20 6f 75 74 20 74 |r can he|lp out t| |000001a0| 68 65 20 41 70 70 6c 65 | 45 76 65 6e 74 73 20 6d |he Apple|Events m| |000001b0| 65 63 68 61 6e 69 73 6d | 20 66 6f 72 20 61 70 70 |echanism| for app| |000001c0| 6c 69 63 61 74 69 6f 6e | 73 0d 28 61 6e 64 20 64 |lication|s.(and d| |000001d0| 65 73 6b 20 61 63 63 65 | 73 73 6f 72 69 65 73 3f |esk acce|ssories?| |000001e0| 29 20 74 68 61 74 20 61 | 72 65 6e 27 74 20 61 70 |) that a|ren't ap| |000001f0| 70 6c 65 2d 65 76 65 6e | 74 20 61 77 61 72 65 20 |ple-even|t aware | |00000200| 62 79 20 75 73 69 6e 67 | 20 22 70 75 70 70 65 74 |by using| "puppet| |00000210| 20 73 74 72 69 6e 67 73 | 22 2e 0d 48 6f 77 65 76 | strings|"..Howev| |00000220| 65 72 2c 20 74 68 65 20 | 4b 69 6c 6c 45 76 65 72 |er, the |KillEver| |00000230| 79 6f 6e 65 42 75 74 4d | 65 2e 63 20 6e 6f 74 65 |yoneButM|e.c note| |00000240| 73 20 69 6e 64 69 63 61 | 74 65 20 74 68 61 74 20 |s indica|te that | |00000250| 70 75 70 70 65 74 20 73 | 74 72 69 6e 67 73 20 61 |puppet s|trings a| |00000260| 72 65 20 6f 6e 6c 79 0d | 61 76 61 69 6c 61 62 6c |re only.|availabl| |00000270| 65 20 69 66 20 6f 6e 65 | 20 69 64 65 6e 74 69 66 |e if one| identif| |00000280| 69 65 73 20 74 68 65 20 | 74 61 72 67 65 74 20 62 |ies the |target b| |00000290| 79 20 50 72 6f 63 65 73 | 73 20 53 65 72 69 61 6c |y Proces|s Serial| |000002a0| 20 4e 75 6d 62 65 72 20 | 28 50 53 4e 29 2c 20 69 | Number |(PSN), i| |000002b0| 2e 65 2e 20 6f 6e 65 0d | 75 73 65 73 20 74 68 65 |.e. one.|uses the| |000002c0| 20 74 79 70 65 50 72 6f | 63 65 73 73 53 65 72 69 | typePro|cessSeri| |000002d0| 61 6c 4e 75 6d 62 65 72 | 20 64 65 73 63 72 69 70 |alNumber| descrip| |000002e0| 74 6f 72 20 74 79 70 65 | 2c 20 62 75 74 20 74 68 |tor type|, but th| |000002f0| 65 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |e docume|ntation | |00000300| 6f 66 0d 22 53 70 65 63 | 69 66 79 69 6e 67 20 61 |of."Spec|ifying a| |00000310| 20 54 61 72 67 65 74 20 | 41 64 64 72 65 73 73 22 | Target |Address"| |00000320| 20 69 6e 20 54 48 49 4e | 4b 20 52 65 66 65 72 65 | in THIN|K Refere| |00000330| 6e 63 65 20 73 61 79 73 | 20 74 68 61 74 20 22 74 |nce says| that "t| |00000340| 6f 20 61 64 64 72 65 73 | 73 20 61 6e 20 41 70 70 |o addres|s an App| |00000350| 6c 65 0d 65 76 65 6e 74 | 20 74 6f 20 61 20 74 61 |le.event| to a ta| |00000360| 72 67 65 74 20 6f 6e 20 | 61 20 72 65 6d 6f 74 65 |rget on |a remote| |00000370| 20 63 6f 6d 70 75 74 65 | 72 20 6f 6e 20 74 68 65 | compute|r on the| |00000380| 20 6e 65 74 77 6f 72 6b | 20 79 6f 75 20 6d 75 73 | network| you mus| |00000390| 74 20 75 73 65 20 65 69 | 74 68 65 72 20 74 68 65 |t use ei|ther the| |000003a0| 0d 74 79 70 65 53 65 73 | 73 69 6f 6e 49 44 20 6f |.typeSes|sionID o| |000003b0| 72 20 74 68 65 20 74 79 | 70 65 54 61 72 67 65 74 |r the ty|peTarget| |000003c0| 49 44 20 64 65 73 63 72 | 69 70 74 6f 72 20 74 79 |ID descr|iptor ty| |000003d0| 70 65 2e 22 20 54 68 75 | 73 2c 20 74 6f 20 75 73 |pe." Thu|s, to us| |000003e0| 65 20 70 75 70 70 65 74 | 20 73 74 72 69 6e 67 20 |e puppet| string | |000003f0| 77 65 0d 4d 55 53 54 20 | 75 73 65 20 74 68 65 20 |we.MUST |use the | |00000400| 50 53 4e 2c 20 62 75 74 | 20 69 66 20 74 68 65 20 |PSN, but| if the | |00000410| 74 61 72 67 65 74 20 69 | 73 20 6f 6e 20 61 20 72 |target i|s on a r| |00000420| 65 6d 6f 74 65 20 63 6f | 6d 70 75 74 65 72 20 77 |emote co|mputer w| |00000430| 65 20 43 41 4e 27 54 20 | 75 73 65 20 74 68 65 20 |e CAN'T |use the | |00000440| 50 53 4e 2e 0d 53 6f 20 | 61 70 70 61 72 65 6e 74 |PSN..So |apparent| |00000450| 6c 79 20 77 65 20 63 61 | 6e 27 74 20 75 73 65 20 |ly we ca|n't use | |00000460| 70 75 70 70 65 74 20 73 | 74 72 69 6e 67 73 20 6f |puppet s|trings o| |00000470| 6e 20 61 20 72 65 6d 6f | 74 65 20 63 6f 6d 70 75 |n a remo|te compu| |00000480| 74 65 72 2e 0d 0d 41 74 | 20 70 72 65 73 65 6e 74 |ter...At| present| |00000490| 20 74 68 69 73 20 68 61 | 73 20 6e 6f 74 68 69 6e | this ha|s nothin| |000004a0| 67 20 61 74 20 61 6c 6c | 20 74 6f 20 64 6f 20 77 |g at all| to do w| |000004b0| 69 74 68 20 74 68 65 20 | 72 65 73 74 20 6f 66 20 |ith the |rest of | |000004c0| 74 68 65 20 56 69 64 65 | 6f 54 6f 6f 6c 62 6f 78 |the Vide|oToolbox| |000004d0| 2c 20 62 75 74 0d 44 61 | 76 69 64 20 42 72 61 69 |, but.Da|vid Brai| |000004e0| 6e 61 72 64 20 61 6e 64 | 20 49 20 68 61 76 65 20 |nard and| I have | |000004f0| 62 65 65 6e 20 64 69 73 | 63 75 73 73 69 6e 67 20 |been dis|cussing | |00000500| 74 68 65 20 69 64 65 61 | 20 6f 66 20 61 20 73 74 |the idea| of a st| |00000510| 61 6e 64 2d 61 6c 6f 6e | 65 20 56 69 64 65 6f 54 |and-alon|e VideoT| |00000520| 6f 6f 6c 62 6f 78 0d 61 | 70 70 6c 69 63 61 74 69 |oolbox.a|pplicati| |00000530| 6f 6e 20 74 68 61 74 20 | 61 63 63 65 70 74 73 20 |on that |accepts | |00000540| 41 70 70 6c 65 45 76 65 | 6e 74 73 20 63 6f 6d 6d |AppleEve|nts comm| |00000550| 61 6e 64 69 6e 67 20 69 | 74 20 74 6f 20 70 72 6f |anding i|t to pro| |00000560| 64 75 63 65 20 76 69 73 | 75 61 6c 20 73 74 69 6d |duce vis|ual stim| |00000570| 75 6c 69 2e 0d 0d 4e 4f | 54 45 3a 0d 49 74 20 69 |uli...NO|TE:.It i| |00000580| 73 20 65 73 73 65 6e 74 | 69 61 6c 20 74 68 61 74 |s essent|ial that| |00000590| 20 74 68 65 20 69 73 48 | 69 67 68 4c 65 76 65 6c | the isH|ighLevel| |000005a0| 45 76 65 6e 74 41 77 61 | 72 65 20 62 69 74 20 62 |EventAwa|re bit b| |000005b0| 65 20 73 65 74 20 69 6e | 20 79 6f 75 72 20 61 70 |e set in| your ap| |000005c0| 70 6c 69 63 61 74 69 6f | 6e 27 73 20 53 49 5a 45 |plicatio|n's SIZE| |000005d0| 20 72 65 73 6f 75 72 63 | 65 2c 0d 6f 74 68 65 72 | resourc|e,.other| |000005e0| 77 69 73 65 20 61 6c 6c | 20 79 6f 75 72 20 61 74 |wise all| your at| |000005f0| 74 65 6d 70 74 73 20 74 | 6f 20 65 6d 69 74 20 61 |tempts t|o emit a| |00000600| 70 70 6c 65 20 65 76 65 | 6e 74 73 20 77 69 6c 6c |pple eve|nts will| |00000610| 20 62 65 20 69 67 6e 6f | 72 65 64 2e 0d 49 6e 20 | be igno|red..In | |00000620| 43 6f 64 65 57 61 72 72 | 69 6f 72 2c 20 75 73 65 |CodeWarr|ior, use| |00000630| 20 74 68 65 20 45 64 69 | 74 3a 50 72 65 66 65 72 | the Edi|t:Prefer| |00000640| 65 6e 63 65 73 20 6d 65 | 6e 75 20 69 74 65 6d 20 |ences me|nu item | |00000650| 74 6f 20 73 65 74 20 74 | 68 65 20 50 72 6f 6a 65 |to set t|he Proje| |00000660| 63 74 3a 53 49 5a 45 20 | 46 6c 61 67 73 2e 0d 49 |ct:SIZE |Flags..I| |00000670| 6e 20 54 48 49 4e 4b 20 | 43 2c 20 75 73 65 20 74 |n THINK |C, use t| |00000680| 68 65 20 6d 65 6e 75 20 | 69 74 65 6d 20 50 72 6f |he menu |item Pro| |00000690| 6a 65 63 74 3a 53 65 74 | 50 72 6f 6a 65 63 74 54 |ject:Set|ProjectT| |000006a0| 79 70 65 3a 53 49 5a 45 | 20 46 6c 61 67 73 2e 0d |ype:SIZE| Flags..| |000006b0| 0d 53 45 45 20 41 4c 53 | 4f 3a 0d 56 69 64 65 6f |.SEE ALS|O:.Video| |000006c0| 54 6f 6f 6c 62 6f 78 53 | 6f 75 72 63 65 73 3a 4b |ToolboxS|ources:K| |000006d0| 69 6c 6c 45 76 65 72 79 | 6f 6e 65 42 75 74 4d 65 |illEvery|oneButMe| |000006e0| 2e 63 2e 20 0d 0d 48 49 | 53 54 4f 52 59 3a 0d 33 |.c. ..HI|STORY:.3| |000006f0| 2f 35 2f 39 33 20 64 67 | 70 20 77 72 6f 74 65 20 |/5/93 dg|p wrote | |00000700| 69 74 0d 33 2f 39 2f 39 | 33 09 64 67 70 20 67 6f |it.3/9/9|3.dgp go| |00000710| 74 20 69 74 20 74 6f 20 | 77 6f 72 6b 2c 20 62 79 |t it to |work, by| |00000720| 20 73 65 74 74 69 6e 67 | 20 74 68 65 20 48 69 67 | setting| the Hig| |00000730| 68 4c 65 76 65 6c 45 76 | 65 6e 74 2d 41 77 61 72 |hLevelEv|ent-Awar| |00000740| 65 20 62 69 74 2c 20 61 | 73 20 69 6e 73 74 72 75 |e bit, a|s instru| |00000750| 63 74 65 64 0d 62 79 20 | 4c 61 72 72 79 20 48 61 |cted.by |Larry Ha| |00000760| 72 72 69 73 2c 20 37 36 | 31 35 30 2c 31 30 32 37 |rris, 76|150,1027| |00000770| 2c 20 61 20 66 72 69 65 | 6e 64 6c 79 20 66 65 6c |, a frie|ndly fel| |00000780| 6c 6f 77 20 70 72 6f 67 | 72 61 6d 6d 65 72 20 6f |low prog|rammer o| |00000790| 6e 20 43 6f 6d 70 75 53 | 65 72 76 65 2e 0d 34 2f |n CompuS|erve..4/| |000007a0| 31 37 2f 39 33 09 64 67 | 70 09 23 69 6e 63 6c 75 |17/93.dg|p.#inclu| |000007b0| 64 65 20 56 69 64 65 6f | 54 6f 6f 6c 62 6f 78 2e |de Video|Toolbox.| |000007c0| 68 20 66 6f 72 20 50 72 | 69 6e 74 66 45 78 69 74 |h for Pr|intfExit| |000007d0| 28 29 2e 0d 31 32 2f 31 | 35 2f 39 33 20 64 67 70 |()..12/1|5/93 dgp| |000007e0| 20 47 6f 20 61 77 61 79 | 20 71 75 69 65 74 6c 79 | Go away| quietly| |000007f0| 20 69 66 20 75 73 65 72 | 20 68 69 74 73 20 43 61 | if user| hits Ca| |00000800| 6e 63 65 6c 2e 0d 37 2f | 32 39 2f 39 34 20 64 67 |ncel..7/|29/94 dg| |00000810| 70 20 45 6c 69 6d 69 6e | 61 74 65 64 20 75 73 65 |p Elimin|ated use| |00000820| 20 6f 66 20 22 23 73 22 | 20 70 72 69 6e 74 66 20 | of "#s"| printf | |00000830| 66 6f 72 6d 61 74 2c 20 | 73 69 6e 63 65 20 69 74 |format, |since it| |00000840| 27 73 20 6e 6f 74 20 73 | 75 70 70 6f 72 74 65 64 |'s not s|upported| |00000850| 20 62 79 0d 09 09 09 4d | 65 74 72 6f 77 65 72 6b | by....M|etrowerk| |00000860| 73 20 43 6f 64 65 57 61 | 72 72 69 6f 72 20 43 2e |s CodeWa|rrior C.| |00000870| 0d 39 2f 35 2f 39 34 20 | 64 67 70 20 72 65 6d 6f |.9/5/94 |dgp remo| |00000880| 76 65 64 20 61 73 73 75 | 6d 70 74 69 6f 6e 20 69 |ved assu|mption i| |00000890| 6e 20 70 72 69 6e 74 66 | 27 73 20 74 68 61 74 20 |n printf|'s that | |000008a0| 69 6e 74 3d 3d 73 68 6f | 72 74 2e 0d 36 2f 31 30 |int==sho|rt..6/10| |000008b0| 2f 39 35 20 64 67 70 20 | 61 64 64 65 64 20 64 69 |/95 dgp |added di| |000008c0| 73 63 75 73 73 69 6f 6e | 20 6f 66 20 70 75 70 70 |scussion| of pupp| |000008d0| 65 74 73 74 72 69 6e 67 | 73 20 61 62 6f 76 65 2e |etstring|s above.| |000008e0| 0d 2a 2f 0d 23 69 6e 63 | 6c 75 64 65 20 22 56 69 |.*/.#inc|lude "Vi| |000008f0| 64 65 6f 54 6f 6f 6c 62 | 6f 78 2e 68 22 0d 23 69 |deoToolb|ox.h".#i| |00000900| 6e 63 6c 75 64 65 20 3c | 73 74 64 69 6f 2e 68 3e |nclude <|stdio.h>| |00000910| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 41 70 70 6c 65 |.#includ|e <Apple| |00000920| 45 76 65 6e 74 73 2e 68 | 3e 0d 0d 76 6f 69 64 20 |Events.h|>..void | |00000930| 6d 61 69 6e 28 76 6f 69 | 64 29 0d 7b 0d 09 69 6e |main(voi|d).{..in| |00000940| 74 20 65 72 72 6f 72 3b | 0d 09 75 6e 73 69 67 6e |t error;|..unsign| |00000950| 65 64 20 63 68 61 72 20 | 70 72 6f 6d 70 74 5b 5d |ed char |prompt[]| |00000960| 3d 22 5c 70 43 68 6f 6f | 73 65 20 61 20 70 72 6f |="\pChoo|se a pro| |00000970| 67 72 61 6d 20 74 6f 20 | 71 75 69 74 2e 22 3b 0d |gram to |quit.";.| |00000980| 09 50 6f 72 74 49 6e 66 | 6f 52 65 63 20 70 6f 72 |.PortInf|oRec por| |00000990| 74 49 6e 66 6f 3b 0d 09 | 54 61 72 67 65 74 49 44 |tInfo;..|TargetID| |000009a0| 20 74 61 72 67 65 74 49 | 44 3b 0d 09 41 45 41 64 | targetI|D;..AEAd| |000009b0| 64 72 65 73 73 44 65 73 | 63 20 74 61 72 67 65 74 |dressDes|c target| |000009c0| 3b 0d 09 41 70 70 6c 65 | 45 76 65 6e 74 20 61 70 |;..Apple|Event ap| |000009d0| 70 6c 65 45 76 65 6e 74 | 3b 0d 09 41 45 53 65 6e |pleEvent|;..AESen| |000009e0| 64 4d 6f 64 65 20 73 65 | 6e 64 4d 6f 64 65 3b 0d |dMode se|ndMode;.| |000009f0| 09 6c 6f 6e 67 20 76 61 | 6c 75 65 3b 0d 0d 09 4d |.long va|lue;...M| |00000a00| 61 78 69 6d 69 7a 65 43 | 6f 6e 73 6f 6c 65 48 65 |aximizeC|onsoleHe| |00000a10| 69 67 68 74 28 29 3b 0d | 09 70 72 69 6e 74 66 28 |ight();.|.printf(| |00000a20| 22 57 65 6c 63 6f 6d 65 | 20 74 6f 20 51 75 69 74 |"Welcome| to Quit| |00000a30| 74 65 72 2e 5c 6e 22 29 | 3b 0d 09 65 72 72 6f 72 |ter.\n")|;..error| |00000a40| 3d 47 65 73 74 61 6c 74 | 28 67 65 73 74 61 6c 74 |=Gestalt|(gestalt| |00000a50| 41 70 70 6c 65 45 76 65 | 6e 74 73 41 74 74 72 2c |AppleEve|ntsAttr,| |00000a60| 26 76 61 6c 75 65 29 3b | 0d 09 69 66 28 65 72 72 |&value);|..if(err| |00000a70| 6f 72 20 7c 7c 20 21 28 | 76 61 6c 75 65 26 28 31 |or || !(|value&(1| |00000a80| 3c 3c 67 65 73 74 61 6c | 74 41 70 70 6c 65 45 76 |<<gestal|tAppleEv| |00000a90| 65 6e 74 73 50 72 65 73 | 65 6e 74 29 29 29 50 72 |entsPres|ent)))Pr| |00000aa0| 69 6e 74 66 45 78 69 74 | 28 22 53 6f 72 72 79 2c |intfExit|("Sorry,| |00000ab0| 20 49 20 6e 65 65 64 20 | 41 70 70 6c 65 45 76 65 | I need |AppleEve| |00000ac0| 6e 74 73 2e 5c 6e 22 29 | 3b 0d 09 50 50 43 49 6e |nts.\n")|;..PPCIn| |00000ad0| 69 74 28 29 3b 0d 09 2f | 2f 20 53 65 6c 65 63 74 |it();../|/ Select| |00000ae0| 20 74 61 72 67 65 74 20 | 74 68 72 6f 75 67 68 20 | target |through | |00000af0| 64 69 61 6c 6f 67 20 77 | 69 74 68 20 75 73 65 72 |dialog w|ith user| |00000b00| 2e 0d 09 65 72 72 6f 72 | 3d 50 50 43 42 72 6f 77 |...error|=PPCBrow| |00000b10| 73 65 72 28 70 72 6f 6d | 70 74 2c 4e 55 4c 4c 2c |ser(prom|pt,NULL,| |00000b20| 30 2c 26 74 61 72 67 65 | 74 49 44 2e 6c 6f 63 61 |0,&targe|tID.loca| |00000b30| 74 69 6f 6e 2c 26 70 6f | 72 74 49 6e 66 6f 2c 4e |tion,&po|rtInfo,N| |00000b40| 55 4c 4c 2c 4e 55 4c 4c | 29 3b 0d 09 69 66 28 65 |ULL,NULL|);..if(e| |00000b50| 72 72 6f 72 3d 3d 2d 31 | 32 38 29 61 62 6f 72 74 |rror==-1|28)abort| |00000b60| 28 29 3b 09 2f 2f 20 55 | 73 65 72 20 70 72 65 73 |();.// U|ser pres| |00000b70| 73 65 64 20 43 61 6e 63 | 65 6c 2e 0d 09 69 66 28 |sed Canc|el...if(| |00000b80| 65 72 72 6f 72 29 50 72 | 69 6e 74 66 45 78 69 74 |error)Pr|intfExit| |00000b90| 28 22 50 50 43 42 72 6f | 77 73 65 72 20 65 72 72 |("PPCBro|wser err| |00000ba0| 6f 72 20 25 64 5c 6e 22 | 2c 65 72 72 6f 72 29 3b |or %d\n"|,error);| |00000bb0| 0d 09 74 61 72 67 65 74 | 49 44 2e 6e 61 6d 65 3d |..target|ID.name=| |00000bc0| 70 6f 72 74 49 6e 66 6f | 2e 6e 61 6d 65 3b 0d 09 |portInfo|.name;..| |00000bd0| 65 72 72 6f 72 3d 41 45 | 43 72 65 61 74 65 44 65 |error=AE|CreateDe| |00000be0| 73 63 28 74 79 70 65 54 | 61 72 67 65 74 49 44 2c |sc(typeT|argetID,| |00000bf0| 28 50 74 72 29 26 74 61 | 72 67 65 74 49 44 2c 73 |(Ptr)&ta|rgetID,s| |00000c00| 69 7a 65 6f 66 28 74 61 | 72 67 65 74 49 44 29 2c |izeof(ta|rgetID),| |00000c10| 26 74 61 72 67 65 74 29 | 3b 0d 09 69 66 28 65 72 |&target)|;..if(er| |00000c20| 72 6f 72 29 50 72 69 6e | 74 66 45 78 69 74 28 22 |ror)Prin|tfExit("| |00000c30| 41 45 43 72 65 61 74 65 | 44 65 73 63 20 65 72 72 |AECreate|Desc err| |00000c40| 6f 72 20 25 64 5c 6e 22 | 2c 65 72 72 6f 72 29 3b |or %d\n"|,error);| |00000c50| 0d 09 65 72 72 6f 72 3d | 41 45 43 72 65 61 74 65 |..error=|AECreate| |00000c60| 41 70 70 6c 65 45 76 65 | 6e 74 28 6b 43 6f 72 65 |AppleEve|nt(kCore| |00000c70| 45 76 65 6e 74 43 6c 61 | 73 73 2c 6b 41 45 51 75 |EventCla|ss,kAEQu| |00000c80| 69 74 41 70 70 6c 69 63 | 61 74 69 6f 6e 2c 26 74 |itApplic|ation,&t| |00000c90| 61 72 67 65 74 0d 09 09 | 2c 6b 41 75 74 6f 47 65 |arget...|,kAutoGe| |00000ca0| 6e 65 72 61 74 65 52 65 | 74 75 72 6e 49 44 2c 6b |nerateRe|turnID,k| |00000cb0| 41 6e 79 54 72 61 6e 73 | 61 63 74 69 6f 6e 49 44 |AnyTrans|actionID| |00000cc0| 2c 26 61 70 70 6c 65 45 | 76 65 6e 74 29 3b 0d 09 |,&appleE|vent);..| |00000cd0| 69 66 28 65 72 72 6f 72 | 29 50 72 69 6e 74 66 45 |if(error|)PrintfE| |00000ce0| 78 69 74 28 22 41 45 43 | 72 65 61 74 65 41 70 70 |xit("AEC|reateApp| |00000cf0| 6c 65 45 76 65 6e 74 20 | 65 72 72 6f 72 20 25 64 |leEvent |error %d| |00000d00| 5c 6e 22 2c 65 72 72 6f | 72 29 3b 0d 09 65 72 72 |\n",erro|r);..err| |00000d10| 6f 72 3d 41 45 44 69 73 | 70 6f 73 65 44 65 73 63 |or=AEDis|poseDesc| |00000d20| 28 26 74 61 72 67 65 74 | 29 3b 0d 09 73 65 6e 64 |(&target|);..send| |00000d30| 4d 6f 64 65 3d 6b 41 45 | 4e 6f 52 65 70 6c 79 2b |Mode=kAE|NoReply+| |00000d40| 6b 41 45 4e 65 76 65 72 | 49 6e 74 65 72 61 63 74 |kAENever|Interact| |00000d50| 2b 6b 41 45 44 6f 6e 74 | 52 65 63 6f 6e 6e 65 63 |+kAEDont|Reconnec| |00000d60| 74 3b 0d 09 65 72 72 6f | 72 3d 41 45 53 65 6e 64 |t;..erro|r=AESend| |00000d70| 28 26 61 70 70 6c 65 45 | 76 65 6e 74 2c 4e 55 4c |(&appleE|vent,NUL| |00000d80| 4c 2c 73 65 6e 64 4d 6f | 64 65 2c 6b 41 45 4e 6f |L,sendMo|de,kAENo| |00000d90| 72 6d 61 6c 50 72 69 6f | 72 69 74 79 0d 09 09 2c |rmalPrio|rity...,| |00000da0| 6b 41 45 44 65 66 61 75 | 6c 74 54 69 6d 65 6f 75 |kAEDefau|ltTimeou| |00000db0| 74 2c 4e 55 4c 4c 2c 4e | 55 4c 4c 29 3b 0d 09 69 |t,NULL,N|ULL);..i| |00000dc0| 66 28 65 72 72 6f 72 29 | 50 72 69 6e 74 66 45 78 |f(error)|PrintfEx| |00000dd0| 69 74 28 22 41 45 53 65 | 6e 64 20 65 72 72 6f 72 |it("AESe|nd error| |00000de0| 20 25 64 5c 6e 22 2c 65 | 72 72 6f 72 29 3b 0d 09 | %d\n",e|rror);..| |00000df0| 65 72 72 6f 72 3d 41 45 | 44 69 73 70 6f 73 65 44 |error=AE|DisposeD| |00000e00| 65 73 63 28 26 61 70 70 | 6c 65 45 76 65 6e 74 29 |esc(&app|leEvent)| |00000e10| 3b 0d 09 69 66 28 65 72 | 72 6f 72 29 50 72 69 6e |;..if(er|ror)Prin| |00000e20| 74 66 45 78 69 74 28 22 | 41 45 44 69 73 70 6f 73 |tfExit("|AEDispos| |00000e30| 65 44 65 73 63 20 65 72 | 72 6f 72 20 25 64 5c 6e |eDesc er|ror %d\n| |00000e40| 22 2c 65 72 72 6f 72 29 | 3b 0d 09 70 72 69 6e 74 |",error)|;..print| |00000e50| 66 28 22 44 6f 6e 65 2e | 20 d2 25 73 d3 20 68 61 |f("Done.| .%s. ha| |00000e60| 73 20 62 65 65 6e 20 61 | 73 6b 65 64 20 74 6f 20 |s been a|sked to | |00000e70| 71 75 69 74 2e 5c 6e 22 | 2c 70 32 63 73 74 72 28 |quit.\n"|,p2cstr(| |00000e80| 74 61 72 67 65 74 49 44 | 2e 6e 61 6d 65 2e 6e 61 |targetID|.name.na| |00000e90| 6d 65 29 29 3b 0d 7d 0d | 00 00 00 00 00 00 00 00 |me));.}.|........| |00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000f00| 00 00 01 00 00 00 01 c0 | 00 00 00 c0 00 00 00 66 |........|.......f| |00000f10| 65 47 65 74 41 70 70 44 | 69 65 64 4d 73 67 20 3d |eGetAppD|iedMsg =| |00000f20| 20 30 78 30 30 30 30 30 | 31 30 30 2c 0d 20 20 20 | 0x00000|100,. | |00000f30| 09 51 75 69 74 74 65 72 | 2e 63 02 00 00 00 54 45 |.Quitter|.c....TE| |00000f40| 58 54 43 57 49 45 01 00 | 00 00 00 60 00 00 00 00 |XTCWIE..|...`....| |00000f50| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 00 60 |..TEXTCW|IE.....`| |00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000f70| 00 00 a7 bd a9 5e 00 00 | 0e 18 00 00 02 26 20 20 |.....^..|.....& | |00000f80| 20 6d 6f 64 65 4c 6f 63 | 61 6c 41 6e 64 52 65 6d | modeLoc|alAndRem| |00000f90| 6f 74 65 48 4c 45 76 65 | 6e 74 73 20 3d 20 30 78 |oteHLEve|nts = 0x| |00000fa0| 30 30 30 30 30 30 32 30 | 2c 0d 20 20 20 20 6d 6f |00000020|,. mo| |00000fb0| 64 65 53 74 61 74 69 6f | 6e 65 72 79 41 77 61 72 |deStatio|neryAwar| |00000fc0| 65 20 3d 20 30 78 30 30 | 30 30 30 30 31 30 2c 0d |e = 0x00|000010,.| |00000fd0| 20 20 20 20 6d 6f 64 65 | 55 73 65 54 65 78 74 45 | mode|UseTextE| |00000fe0| 64 69 74 53 65 72 76 69 | 63 65 73 20 3d 20 30 78 |ditServi|ces = 0x| |00000ff0| 30 30 30 30 30 30 30 38 | 0d 7d 3b 0d 0d 2f 2a 20 |00000008|.};../* | |00001000| 00 00 00 54 00 02 00 22 | 00 00 09 54 00 3d 00 69 |...T..."|...T.=.i| |00001010| 01 64 10 40 13 74 61 72 | 67 65 74 49 44 2e 6e 61 |.d.@.tar|getID.na| |00001020| 6d 65 2e 6e 61 6d 65 20 | 00 30 00 00 09 54 00 3d |me.name |.0...T.=| |00001030| 00 69 01 54 80 00 00 94 | 01 3c 01 3d 02 7c 94 20 |.i.T....|.<.=.|. | |00001040| 00 00 00 00 00 01 00 01 | 00 40 0d 74 61 72 67 65 |........|.@.targe| |00001050| 74 49 44 2e 6e 61 6d 65 | 00 00 00 10 00 01 00 00 |tID.name|........| |00001060| 04 94 00 00 04 98 05 6d | 61 69 6e 00 00 00 00 48 |.......m|ain....H| |00001070| 00 09 4d 6f 6e 61 63 6f | 00 00 00 00 00 00 00 00 |..Monaco|........| |00001080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001090| 00 00 00 03 00 04 00 41 | 00 b2 02 6f 03 2a 00 41 |.......A|...o.*.A| |000010a0| 00 b2 02 6f 03 2a ab ff | 65 56 00 00 04 fc 00 00 |...o.*..|eV......| |000010b0| 05 9d 00 00 00 0d 00 00 | 00 00 00 04 00 01 00 01 |........|........| |000010c0| 00 00 01 00 00 00 01 c0 | 00 00 00 c0 00 00 00 66 |........|.......f| |000010d0| 00 a7 cd c8 1a 72 00 00 | 00 1c 00 66 00 02 44 54 |.....r..|...f..DT| |000010e0| 56 55 00 00 00 1a 4d 50 | 53 52 00 01 00 26 4d 57 |VU....MP|SR...&MW| |000010f0| 42 42 00 00 00 3e 48 a3 | ff ff 00 00 00 00 00 00 |BB...>H.|........| |00001100| 00 00 03 ef ff ff 00 00 | 00 58 00 00 00 00 03 ed |........|.X......| |00001110| ff ff 00 00 00 6c 00 00 | 00 00 03 f0 ff ff 00 00 |.....l..|........| |00001120| 00 b8 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+