Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
FOR MPW/Chooser.r
#include "SysTypes.r" |
#include "Types.r" |
/*---------------------------GNRL ¥ NBP retry information ----------------------*/ |
/* This resource holds two values needed for an NBP retry, the retry interval, |
and the retry count. |
*/ |
type 'GNRL' { |
byte; /* NBP retry interval */ |
byte; /* NBP retry count */ |
}; |
/*--------------------------PACK ¥ Chooser Device Package ----------------------*/ |
type 'PACK' { |
unsigned hex integer = $600E; /* BRA.S *+$10 */ |
integer; /* Device ID */ |
unsigned hex longint = $5041434B; /* 'PACK' */ |
unsigned hex integer = $F000; /* -4096 */ |
integer; /* Version */ |
boolean noAppleTalk, usesAppleTalk; |
boolean noPAP, usesPAP; |
boolean noPostScript, usesPostScript; |
boolean noMultiples, usesMultiples; |
boolean noLeftButton, usesLeftButton; |
boolean noRightButton, usesRightButton; |
boolean usesSavedZoneName, noSavedZoneName; |
boolean noActualZoneNames, usesActualZoneNames; |
fill bit[6]; /* Reserved (clear to zero) */ |
boolean ignoresInit, acceptsInit; |
boolean ignoresNewSel, acceptsNewSel; |
boolean ignoresFillList, acceptsFillList; |
boolean ignoresGetSel, acceptsGetSel; |
boolean ignoresSelect, acceptsSelect; |
boolean ignoresDeselect, acceptsDeselect; |
boolean ignoresTerminate, acceptsTerminate; |
fill bit[11]; /* Reserved (clear to zero) */ |
hex string; /* Start of driver code */ |
}; |
/********* |
resource 'GNRL' (-4096) { |
11, |
5 |
}; |
resource 'PACK' (-4096, purgeable) { |
3, |
2, |
usesAppleTalk, |
noMultiples, |
noLeftButton, |
noRightButton, |
usesSavedZoneName, |
noActualZoneNames, |
ignoresNewSel, |
ignoresFillList, |
acceptsGetSel, |
acceptsSelect, |
acceptsDeselect, |
ignoresTerminate, |
$"4E 56 00 00 48 E7 1C 38 24 6E 00 0C 42 6E 00 1C" |
$"30 2E 00 1A 04 40 00 0B D0 40 30 3B 00 06 4E FB" |
$"00 02 00 16 00 12 00 12 00 98 01 90 01 DA 00 12" |
$"00 12 01 EA 60 00 02 2A 61 00 00 FA 24 6E 00 14" |
$"4A 78 02 8E 6B 4C 30 3C A8 8F A1 46 22 08 30 3C" |
$"A8 9F A1 46 B2 88 67 3A 20 38 02 82 67 08 0C 80" |
$"FF FF FF FF 66 2C 20 38 0B 64 67 26 0C 80 FF FF" |
$"FF FF 67 1E 20 40 20 50 4A 28 00 02 6A 14 61 00" |
$"01 B2 2F 2A 00 0A A9 57 2F 2A 00 0E A9 57 60 00" |
$"01 64 20 2A 00 0A 2F 00 2F 00 42 67 A9 63 3F 3C" |
$"00 FF A9 5D 20 2A 00 0E 2F 00 2F 00 3F 3C 00 01" |
$"A9 63 3F 3C 00 FF A9 5D 60 C8 61 00 00 86 76 00" |
$"22 4C 70 00 10 19 D2 C0 10 19 D2 C0 20 6E 00 10" |
$"10 18 48 40 10 19 A0 3C 67 02 50 C3 20 52 38 28" |
$"00 4C 53 44 6B 4A 59 4F 2F 0F 48 6F 00 06 42 67" |
$"3F 04 2F 0A 3F 3C 00 34 A9 E7 34 1F 30 1F 1F 3C" |
$"00 01 4A 43 66 18 22 4C 20 52 20 68 00 50 20 50" |
$"41 F0 20 00 48 40 42 40 10 19 A0 3C 67 02 42 57" |
$"42 67 3F 04 2F 0A 3F 3C 00 5C A9 E7 53 44 60 B4" |
$"60 00 01 2E 20 3C 50 52 45 43 32 3C 00 7F 74 04" |
$"60 0C 20 3C 50 41 50 41 32 3C E0 00 74 67 48 E7" |
$"07 00 2A 00 3C 01 2E 02 59 4F 2F 05 3F 06 4A 78" |
$"02 8E 6B 08 A8 1F 22 1F 67 16 60 28 A9 A0 22 1F" |
$"67 0E 55 4F 2F 01 A9 A4 30 1F B0 78 0A 5A 67 14" |
$"20 07 A3 22 26 48 2F 0B 2F 05 3F 06 48 7A 00 E0" |
$"A9 AB 60 12 26 41 20 4B A0 25 B0 87 67 08 20 07" |
$"A0 24 2F 0B A9 AA 20 4B A0 29 28 53 4C DF 00 E0" |
$"4E 75 61 8E 20 6E 00 14 61 00 00 98 59 4F 3F 3C" |
$"F0 00 A9 BA 20 1F 66 06 41 FA 00 A4 60 04 20 40" |
$"20 50 61 00 00 7E 20 6E 00 10 61 00 00 76 41 EE" |
$"00 08 18 D8 18 D8 18 D8 18 98 2F 0B A9 AA 3F 38" |
$"0A 5A A9 99 20 4B A0 2A 60 00 00 66 61 00 FF 44" |
$"30 3C 00 66 42 1C 51 C8 FF FC 60 DE 61 00 FF 26" |
$"24 6E 00 14 10 2E 00 0B 0C 00 00 03 67 0C 0C 00" |
$"00 04 66 0C 08 D4 00 07 60 04 08 94 00 07 61 02" |
$"60 B8 2F 2A 00 0E 70 01 08 14 00 07 66 02 70 00" |
$"3F 00 2F 2A 00 0A 08 40 00 00 3F 00 A9 63 A9 63" |
$"4E 75 70 00 10 10 52 00 22 4C D8 C0 A0 2E 4E 75" |
$"4C DF 1C 38 4E 5E 20 5F DE FC 00 14 4E D0 00 00" |
}; |
*************/ |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14