Mac OS 9
LowMem.h
Go to the documentation of this file.
1 
19 #ifndef __LOWMEM__
20 #define __LOWMEM__
21 
22 #ifndef __MACTYPES__
23 #include <MacTypes.h>
24 #endif
25 
26 #ifndef __FILES__
27 #include <Files.h>
28 #endif
29 
30 #ifndef __MACMEMORY__
31 #include <MacMemory.h>
32 #endif
33 
34 #ifndef __OSUTILS__
35 #include <OSUtils.h>
36 #endif
37 
38 #ifndef __RESOURCES__
39 #include <Resources.h>
40 #endif
41 
42 #ifndef __QUICKDRAW__
43 #include <Quickdraw.h>
44 #endif
45 
46 #ifndef __CONTROLS__
47 #include <Controls.h>
48 #endif
49 
50 #ifndef __EVENTS__
51 #include <Events.h>
52 #endif
53 
54 #ifndef __MENUS__
55 #include <Menus.h>
56 #endif
57 
58 #ifndef __FONTS__
59 #include <Fonts.h>
60 #endif
61 
62 #if !OPAQUE_TOOLBOX_STRUCTS
63 #ifndef __MACWINDOWS__
64 #include <MacWindows.h>
65 #endif
66 
67 #endif
69 #if PRAGMA_ONCE
70 #pragma once
71 #endif
72 
73 #ifdef __cplusplus
74 extern "C"
75 {
76 #endif
77 
78 #if PRAGMA_IMPORT
79 #pragma import on
80 #endif
81 
82 #if PRAGMA_STRUCT_ALIGN
83 #pragma options align = mac68k
84 #elif PRAGMA_STRUCT_PACKPUSH
85 #pragma pack(push, 2)
86 #elif PRAGMA_STRUCT_PACK
87 #pragma pack(2)
88 #endif
89 
90  /***************************************************************************************
91 
92  SIMPLE LOWMEM ACCESSORS
93 
94  **************************************************************************************/
159  Ptr
160  LMGetMemTop(void);
161 
170  void
171  LMSetMemTop(Ptr value);
172 
181  Ptr
182  LMGetBufPtr(void);
183 
192  void
193  LMSetBufPtr(Ptr value);
194 
203  Ptr
205 
214  void
215  LMSetHeapEnd(Ptr value);
216 
217 #if CALL_NOT_IN_CARBON
226  THz
228 
237  void
239 
248  Ptr
250 
259  void
260  LMSetUTableBase(Ptr value);
261 
262 #endif
272  UInt8
274 
283  void
284  LMSetCPUFlag(UInt8 value);
285 
286 #if CALL_NOT_IN_CARBON
295  Ptr
297 
306  void
307  LMSetApplLimit(Ptr value);
308 
317  SInt16
319 
329  void
330  LMSetSysEvtMask(SInt16 value);
331 
332 #endif
342  SInt32
344 
353  void
354  LMSetRndSeed(SInt32 value);
355 
364  UInt8
366 
375  void
376  LMSetSEvtEnb(UInt8 value);
377 
378 #if CALL_NOT_IN_CARBON
387  UInt32
388  LMGetTicks(void);
389 
398  void
399  LMSetTicks(UInt32 value);
400 
409  Ptr
410  LMGetVIA(void);
411 
420  void
421  LMSetVIA(Ptr value);
422 
431  Ptr
432  LMGetSCCRd(void);
433 
442  void
443  LMSetSCCRd(Ptr value);
444 
453  Ptr
454  LMGetSCCWr(void);
455 
464  void
465  LMSetSCCWr(Ptr value);
466 
475  UInt8
477 
486  void
487  LMSetSPValid(UInt8 value);
488 
497  UInt8
499 
508  void
509  LMSetSPATalkA(UInt8 value);
510 
519  UInt8
521 
530  void
531  LMSetSPATalkB(UInt8 value);
532 
541  UInt8
543 
552  void
553  LMSetSPConfig(UInt8 value);
554 
563  SInt16
565 
574  void
575  LMSetSPPortA(SInt16 value);
576 
585  SInt16
587 
596  void
597  LMSetSPPortB(SInt16 value);
598 
607  SInt32
609 
618  void
619  LMSetSPAlarm(SInt32 value);
620 
629  SInt16
630  LMGetSPFont(void);
631 
640  void
641  LMSetSPFont(SInt16 value);
642 
651  UInt8
652  LMGetSPKbd(void);
653 
662  void
663  LMSetSPKbd(UInt8 value);
664 
673  UInt8
675 
684  void
685  LMSetSPPrint(UInt8 value);
686 
695  UInt8
697 
706  void
707  LMSetSPVolCtl(UInt8 value);
708 
717  UInt8
719 
728  void
729  LMSetSPClikCaret(UInt8 value);
730 
739  UInt8
741 
750  void
751  LMSetSPMisc2(UInt8 value);
752 
762  SInt32
763  LMGetTime(void);
764 
774  void
775  LMSetTime(SInt32 value);
776 
777 #endif
787  SInt16
789 
798  void
799  LMSetBootDrive(SInt16 value);
800 
801 #if CALL_NOT_IN_CARBON
810  SInt16
812 
821  void
822  LMSetSFSaveDisk(SInt16 value);
823 
824 #endif
834  SInt16
835  LMGetMemErr(void);
836 
845  void
846  LMSetMemErr(SInt16 value);
847 
856  UInt8
858 
867  void
868  LMSetSdVolume(UInt8 value);
869 
878  Ptr
880 
889  void
890  LMSetSoundPtr(Ptr value);
891 
900  Ptr
902 
911  void
912  LMSetSoundBase(Ptr value);
913 
922  UInt8
924 
933  void
934  LMSetSoundLevel(UInt8 value);
935 
944  SInt16
946 
955  void
956  LMSetCurPitch(SInt16 value);
957 
958 #if CALL_NOT_IN_CARBON
967  SInt16
968  LMGetROM85(void);
969 
978  void
979  LMSetROM85(SInt16 value);
980 
989  UInt8
991 
1000  void
1001  LMSetPortBUse(UInt8 value);
1002 
1011  GetNextEventFilterUPP
1013 
1022  void
1023  LMSetGNEFilter(GetNextEventFilterUPP value);
1024 
1025 #endif
1035  THz
1037 
1046  void
1048 
1057  THz
1059 
1068  void
1070 
1071 #if CALL_NOT_IN_CARBON
1080  Ptr
1082 
1091  void
1092  LMSetROMBase(Ptr value);
1093 
1102  Ptr
1104 
1113  void
1114  LMSetRAMBase(Ptr value);
1115 
1124  Ptr
1126 
1135  void
1136  LMSetDSAlertTab(Ptr value);
1137 
1160  Ptr
1162 
1171  Ptr
1173 
1182  void
1183  LMSetABusGlobals(Ptr value);
1184 
1193  void
1194  LMSetABusDCE(Ptr value);
1195 
1205  UInt32
1207 
1216  void
1217  LMSetDoubleTime(UInt32 value);
1218 
1228  UInt32
1230 
1239  void
1240  LMSetCaretTime(UInt32 value);
1241 
1242 #endif
1252  UInt8
1254 
1263  void
1264  LMSetScrDmpEnb(UInt8 value);
1265 
1274  SInt32
1276 
1285  void
1286  LMSetBufTgFNum(SInt32 value);
1287 
1296  SInt16
1298 
1307  void
1308  LMSetBufTgFFlg(SInt16 value);
1309 
1318  SInt16
1320 
1329  void
1330  LMSetBufTgFBkNum(SInt16 value);
1331 
1340  SInt32
1342 
1351  void
1352  LMSetBufTgDate(SInt32 value);
1353 
1354 #if CALL_NOT_IN_CARBON
1363  SInt32
1365 
1374  void
1375  LMSetLo3Bytes(SInt32 value);
1376 
1377 #endif
1387  SInt32
1389 
1398  void
1399  LMSetMinStack(SInt32 value);
1400 
1409  SInt32
1411 
1420  void
1421  LMSetDefltStack(SInt32 value);
1422 
1431  Handle
1433 
1442  void
1443  LMSetGZRootHnd(Handle value);
1444 
1453  Handle
1455 
1464  void
1465  LMSetGZMoveHnd(Handle value);
1466 
1480 #ifndef ENABLE_FCB_ARRAY_ACCESS
1481 #define ENABLE_FCB_ARRAY_ACCESS 0
1482 #endif
1484 #if ENABLE_FCB_ARRAY_ACCESS
1485 #if CALL_NOT_IN_CARBON
1494  Ptr
1495  LMGetFCBSPtr(void);
1496 
1505  void
1506  LMSetFCBSPtr(Ptr value);
1507 
1516  void
1517  LMSetFSFCBLen(SInt16 value);
1518 
1519 #endif
1521 #endif
1529 #if CALL_NOT_IN_CARBON
1538  SInt16
1540 
1549  Ptr
1551 
1560  void
1561  LMSetDefVCBPtr(Ptr value);
1562 
1571  SInt32
1573 
1582  void
1583  LMSetCurDirStore(SInt32 value);
1584 
1585 #endif
1595  UniversalProcPtr
1597 
1606  void
1607  LMSetToExtFS(UniversalProcPtr value);
1608 
1609 #if CALL_NOT_IN_CARBON
1618  Ptr
1620 
1629  void
1630  LMSetScrnBase(Ptr value);
1631 
1640  UInt8
1642 
1651  void
1652  LMSetCrsrBusy(UInt8 value);
1653 
1662  SInt16
1664 
1673  void
1674  LMSetJournalRef(SInt16 value);
1675 
1684  SInt16
1686 
1695  void
1696  LMSetCrsrThresh(SInt16 value);
1697 
1706  UniversalProcPtr
1708 
1717  void
1718  LMSetJFetch(UniversalProcPtr value);
1719 
1720 #endif
1730  UniversalProcPtr
1732 
1741  void
1742  LMSetJStash(UniversalProcPtr value);
1743 
1744 #if CALL_NOT_IN_CARBON
1753  UniversalProcPtr
1755 
1764  void
1765  LMSetJIODone(UniversalProcPtr value);
1766 
1767 #endif
1777  SInt16
1779 
1788  void
1789  LMSetCurApRefNum(SInt16 value);
1790 
1791 #if CALL_NOT_IN_CARBON
1800  Ptr
1802 
1811  void
1812  LMSetCurrentA5(Ptr value);
1813 
1814 #endif
1824  Ptr
1826 
1835  void
1836  LMSetCurStackBase(Ptr value);
1837 
1838 #if CALL_NOT_IN_CARBON
1847  SInt16
1849 
1858  void
1859  LMSetCurJTOffset(SInt16 value);
1860 
1861 #endif
1871  SInt16
1873 
1882  void
1883  LMSetCurPageOption(SInt16 value);
1884 
1893  SInt16
1895 
1904  void
1905  LMSetPrintErr(SInt16 value);
1906 
1909 #if CALL_NOT_IN_CARBON
1918  SInt32
1920 
1929  void
1930  LMSetScrapSize(SInt32 value);
1931 
1940  Handle
1942 
1951  void
1952  LMSetScrapHandle(Handle value);
1953 
1962  SInt16
1964 
1973  void
1974  LMSetScrapCount(SInt16 value);
1975 
1984  SInt16
1986 
1995  void
1996  LMSetScrapState(SInt16 value);
1997 
2006  StringPtr
2008 
2017  void
2019 
2028  Handle
2030 
2039  void
2040  LMSetROMFont0(Handle value);
2041 
2042 #endif
2052  SInt16
2054 
2063  void
2064  LMSetApFontID(SInt16 value);
2065 
2068 #if CALL_NOT_IN_CARBON
2077  WindowRef
2079 
2088  SInt16
2090 
2099  void
2100  LMSetSaveUpdate(SInt16 value);
2101 
2110  SInt16
2112 
2122  void
2123  LMSetPaintWhite(SInt16 value);
2124 
2133  GrafPtr
2135 
2144  void
2146 
2156  RgnHandle
2158 
2167  DragGrayRgnUPP
2169 
2178  void
2179  LMSetDragHook(DragGrayRgnUPP value);
2180 
2189  void
2191 
2200  WindowRef
2202 
2211  void
2213 
2214 #endif
2216 #if !OPAQUE_TOOLBOX_STRUCTS
2217 #if CALL_NOT_IN_CARBON
2226  AuxWinHandle
2228 
2237  void
2239 
2240 #endif
2242 #endif
2244 #if CALL_NOT_IN_CARBON
2253  WindowRef
2255 
2264  void
2266 
2275  WindowRef
2277 
2286  void
2288 
2297  RgnHandle
2299 
2308  void
2310 
2319  RgnHandle
2321 
2330  void
2332 
2341  void
2343 
2352  RgnHandle
2354 
2363  void
2365 
2366 #endif
2376  SInt32
2378 
2387  void
2388  LMSetOneOne(SInt32 value);
2389 
2398  SInt32
2400 
2409  void
2410  LMSetMinusOne(SInt32 value);
2411 
2413 #if CALL_NOT_IN_CARBON
2422  SInt16
2424 
2434  void
2435  LMSetTopMenuItem(SInt16 value);
2436 
2446  SInt16
2448 
2458  void
2459  LMSetAtMenuBottom(SInt16 value);
2460 
2474  Handle
2476 
2485  void
2486  LMSetMenuList(Handle value);
2487 
2497  SInt16
2499 
2508  void
2509  LMSetMBarEnable(SInt16 value);
2510 
2520  SInt16
2522 
2531  void
2532  LMSetMenuFlash(SInt16 value);
2533 
2543  void
2544  LMSetTheMenu(SInt16 value);
2545 
2554  MBarHookUPP
2556 
2565  void
2566  LMSetMBarHook(MBarHookUPP value);
2567 
2576  MenuHookUPP
2578 
2587  void
2588  LMSetMenuHook(MenuHookUPP value);
2589 
2598  Handle
2600 
2609  void
2610  LMSetTopMapHndl(Handle value);
2611 
2620  Handle
2622 
2631  void
2632  LMSetSysMapHndl(Handle value);
2633 
2634 #endif
2644  SInt16
2646 
2655  void
2656  LMSetSysMap(SInt16 value);
2657 
2658 #if CALL_NOT_IN_CARBON
2667  SInt16
2669 
2678  void
2679  LMSetCurMap(SInt16 value);
2680 
2681 #endif
2691  UInt8
2693 
2702  void
2703  LMSetResLoad(UInt8 value);
2704 
2713  SInt16
2715 
2724  void
2725  LMSetResErr(SInt16 value);
2726 
2727 #if CALL_NOT_IN_CARBON
2736  UInt8
2738 
2747  void
2748  LMSetFScaleDisable(UInt8 value);
2749 
2758  UniversalProcPtr
2760 
2769  void
2770  LMSetDeskHook(UniversalProcPtr value);
2771 
2781  UniversalProcPtr
2783 
2793  void
2794  LMSetTEDoText(UniversalProcPtr value);
2795 
2805  UniversalProcPtr
2807 
2817  void
2818  LMSetTERecal(UniversalProcPtr value);
2819 
2828  UniversalProcPtr
2830 
2839  void
2840  LMSetResumeProc(UniversalProcPtr value);
2841 
2850  SInt16
2852 
2861  void
2862  LMSetANumber(SInt16 value);
2863 
2873  SInt16
2875 
2885  void
2886  LMSetACount(SInt16 value);
2887 
2896  UniversalProcPtr
2898 
2907  void
2908  LMSetDABeeper(UniversalProcPtr value);
2909 
2919  UInt16
2921 
2931  void
2932  LMSetTEScrpLength(UInt16 value);
2933 
2943  Handle
2945 
2955  void
2956  LMSetTEScrpHandle(Handle value);
2957 
2966  Handle
2968 
2977  void
2978  LMSetAppParmHandle(Handle value);
2979 
2988  SInt16
2990 
2999  void
3000  LMSetDSErrCode(SInt16 value);
3001 
3010  ResErrUPP
3012 
3021  void
3022  LMSetResErrProc(ResErrUPP value);
3023 
3032  SInt16
3034 
3044  void
3045  LMSetDlgFont(SInt16 value);
3046 
3055  Ptr
3057 
3066  void
3067  LMSetATalkHk2(Ptr value);
3068 
3077  SInt16
3079 
3088  void
3089  LMSetHWCfgFlags(SInt16 value);
3090 
3100  SInt32
3102 
3112  void
3113  LMSetMenuDisable(SInt32 value);
3114 
3123  UInt8
3125 
3134  void
3135  LMSetROMMapInsert(UInt8 value);
3136 
3137 #endif
3147  UInt8
3149 
3158  void
3159  LMSetTmpResLoad(UInt8 value);
3160 
3169  Ptr
3171 
3180  void
3181  LMSetIntlSpec(Ptr value);
3182 
3192  SInt16
3194 
3203  void
3204  LMSetSysFontFam(SInt16 value);
3205 
3214  SInt16
3216 
3225  void
3226  LMSetSysFontSize(SInt16 value);
3227 
3229 #if CALL_NOT_IN_CARBON
3238  SInt16
3240 
3250  void
3251  LMSetMBarHeight(SInt16 value);
3252 
3261  SInt16
3263 
3272  void
3273  LMSetTESysJust(SInt16 value);
3274 
3283  UInt8
3285 
3294  void
3295  LMSetMMU32Bit(UInt8 value);
3296 
3305  PixPatHandle
3307 
3316  void
3318 
3327  SInt16
3329 
3338  void
3339  LMSetTimeDBRA(SInt16 value);
3340 
3349  SInt16
3351 
3360  void
3361  LMSetTimeSCCDB(SInt16 value);
3362 
3371  UniversalProcPtr
3373 
3382  void
3383  LMSetJVBLTask(UniversalProcPtr value);
3384 
3393  Handle
3395 
3404  void
3405  LMSetSynListHandle(Handle value);
3406 
3417 
3426  void
3428 
3437  UniversalProcPtr
3439 
3448  void
3449  LMSetJDTInstall(UniversalProcPtr value);
3450 
3459  SInt16
3461 
3470  void
3471  LMSetTimeSCSIDB(SInt16 value);
3472 
3473 /***************************************************************************************
3474 
3475  MORE COMPLEX LOWMEM ACCESSORS
3476 
3477 **************************************************************************************/
3478 #endif
3480 #if TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3481 /***************************************************************************************
3482  "BIG DATA"
3483 
3484  These lowmem accessors access big (> 4 bytes) values.
3485 **************************************************************************************/
3486 #define LMGetDSAlertRect(dsAlertRectValue) \
3487  (*(dsAlertRectValue) = *(Rect *)0x03F8)
3488 #define LMSetDSAlertRect(dsAlertRectValue) \
3489  ((*(Rect *)0x03F8) = *(dsAlertRectValue))
3490 #define LMGetDragPattern(dragPatternValue) \
3491  (*(dragPatternValue) = *(Pattern *)0x0A34)
3492 #define LMSetDragPattern(dragPatternValue) \
3493  ((*(Pattern *)0x0A34) = *(dragPatternValue))
3494 #define LMGetDeskPattern(deskPatternValue) \
3495  (*(deskPatternValue) = *(Pattern *)0x0A3C)
3496 #define LMSetDeskPattern(deskPatternValue) \
3497  ((*(Pattern *)0x0A3C) = *(deskPatternValue))
3498 #define LMGetEventQueue() ((QHdrPtr)0x014A)
3499 #define LMSetEventQueue(eventQueueValue) \
3500  ((*(QHdrPtr)0x014A) = *(QHdrPtr)(eventQueueValue))
3501 #define LMGetVBLQueue() ((QHdrPtr)0x0160)
3502 #define LMSetVBLQueue(vblQueueValue) \
3503  ((*(QHdrPtr)0x0160) = *(QHdrPtr)(vblQueueValue))
3504 #define LMGetDrvQHdr() ((QHdrPtr)0x0308)
3505 #define LMSetDrvQHdr(drvQHdrValue) \
3506  ((*(QHdrPtr)0x0308) = *(QHdrPtr)(drvQHdrValue))
3507 #define LMGetVCBQHdr() ((QHdrPtr)0x0356)
3508 #define LMSetVCBQHdr(vcbQHdrValue) \
3509  ((*(QHdrPtr)0x0356) = *(QHdrPtr)(vcbQHdrValue))
3510 #define LMGetDTQueue() ((QHdrPtr)0x0D92)
3511 #define LMSetDTQueue(dtQueueValue) \
3512  ((*(QHdrPtr)0x0D92) = *(QHdrPtr)(dtQueueValue))
3513 #define LMGetFSQHdr() ((QHdrPtr)0x0360)
3514 /***************************************************************************************
3515  "BLOCKMOVE ACCESSORS"
3516 
3517  These lowmem accessors use the BlockMove to set
3518 **************************************************************************************/
3519 #define LMGetCurApName() ((StringPtr)0x0910)
3520 #define LMSetCurApName(curApNameValue) \
3521  (BlockMoveData((Ptr)(curApNameValue), (Ptr)0x0910, sizeof(Str31)))
3522 #define LMGetSysResName() ((StringPtr)0x0AD8)
3523 #define LMSetSysResName(sysResNameValue) \
3524  (BlockMoveData((Ptr)(sysResNameValue), (Ptr)0x0AD8, sizeof(Str15)))
3525 #define LMGetFinderName() ((StringPtr)0x02E0)
3526 #define LMSetFinderName(finderName) \
3527  (BlockMoveData((Ptr)(finderName), (Ptr)0x02E0, sizeof(Str15)))
3528 #define LMGetScratch20() ((Ptr)0x01E4)
3529 #define LMSetScratch20(scratch20Value) \
3530  (BlockMoveData((Ptr)(scratch20Value), (Ptr)0x01E4, 20))
3531 #define LMGetToolScratch() ((Ptr)0x09CE)
3532 #define LMSetToolScratch(toolScratchValue) \
3533  (BlockMoveData((Ptr)(toolScratchValue), (Ptr)0x09CE, 8))
3534 #define LMGetApplScratch() ((Ptr)0x0A78)
3535 #define LMSetApplScratch(applScratchValue) \
3536  (BlockMoveData((Ptr)(applScratchValue), (Ptr)0x0A78, 12))
3537 /***************************************************************************************
3538  "INDEXED ACCESSORS"
3539 
3540  These lowmem accessors take an index parameter to get/set an indexed
3541  lowmem global.
3542 **************************************************************************************/
3543 /**************************************************************************************
3544  The DAString accessors are gone with Carbon. Please use ParamText and
3545  GetParamText instead.
3546 **************************************************************************************/
3547 #define LMGetDAStrings(whichString) (((StringHandle *)0x0AA0)[whichString])
3548 #define LMSetDAStrings(stringsValue, whichString) \
3549  (((StringHandle *)0x0AA0)[whichString] = (stringsValue))
3550 #define LMGetLvl2DT(vectorNumber) (((UniversalProcPtr *)0x01B2)[vectorNumber])
3551 #define LMSetLvl2DT(lvl2DTValue, vectorNumber) \
3552  (((UniversalProcPtr *)0x01B2)[vectorNumber] = (lvl2DTValue))
3553 #define LMGetExtStsDT(vectorNumber) (((UniversalProcPtr *)0x02BE)[vectorNumber])
3554 #define LMSetExtStsDT(extStsDTValue, vectorNumber) \
3555  (((UniversalProcPtr *)0x02BE)[vectorNumber] = (extStsDTValue))
3556 
3557 #else
3558 /***************************************************************************************
3559  "BIG DATA"
3560 
3561  These lowmem accessors access big (> 4 bytes) values.
3562 **************************************************************************************/
3563 
3564 #if CALL_NOT_IN_CARBON
3573 void
3574 LMGetDSAlertRect(Rect *dsAlertRectValue);
3575 
3584 void
3585 LMSetDSAlertRect(const Rect *dsAlertRectValue);
3586 
3595 void
3596 LMGetDragPattern(Pattern *dragPatternValue);
3597 
3606 void
3607 LMSetDragPattern(const Pattern *dragPatternValue);
3608 
3617 void
3618 LMGetDeskPattern(Pattern *deskPatternValue);
3619 
3628 void
3629 LMSetDeskPattern(const Pattern *deskPatternValue);
3630 
3639 QHdrPtr
3641 
3650 void
3651 LMSetEventQueue(QHdrPtr eventQueueValue);
3652 
3661 QHdrPtr
3663 
3672 void
3673 LMSetVBLQueue(QHdrPtr vblQueueValue);
3674 
3683 QHdrPtr
3685 
3694 void
3695 LMSetDrvQHdr(QHdrPtr drvQHdrValue);
3696 
3705 QHdrPtr
3707 
3716 void
3717 LMSetVCBQHdr(QHdrPtr vcbQHdrValue);
3718 
3727 QHdrPtr
3729 
3738 void
3739 LMSetDTQueue(QHdrPtr dtQueueValue);
3740 
3749 QHdrPtr
3751 
3752 /***************************************************************************************
3753  "BLOCKMOVE ACCESSORS"
3754 
3755  These lowmem accessors use the BlockMove to set
3756 **************************************************************************************/
3757 #endif
3767 StringPtr
3769 
3778 void
3779 LMSetCurApName(ConstStr31Param curApNameValue);
3780 
3789 StringPtr
3791 
3800 void
3801 LMSetSysResName(ConstStr15Param sysResNameValue);
3802 
3811 StringPtr
3813 
3822 void
3823 LMSetFinderName(ConstStr15Param finderNameValue);
3824 
3825 #if CALL_NOT_IN_CARBON
3834 Ptr
3836 
3845 void
3846 LMSetScratch20(const void *scratch20Value);
3847 
3848 #endif
3858 Ptr
3860 
3869 void
3870 LMSetToolScratch(const void *toolScratchValue);
3871 
3872 #if CALL_NOT_IN_CARBON
3881 Ptr
3883 
3892 void
3893 LMSetApplScratch(const void *applScratchValue);
3894 
3895 /***************************************************************************************
3896  "INDEXED ACCESSORS"
3897 
3898  These lowmem accessors take an index parameter to get/set an indexed
3899  lowmem global.
3900 **************************************************************************************/
3901 
3911 StringHandle
3912 LMGetDAStrings(short whichString);
3913 
3923 void
3924 LMSetDAStrings(StringHandle stringsValue, short whichString);
3925 
3926 #endif
3936 UniversalProcPtr
3937 LMGetLvl2DT(short vectorNumber);
3938 
3947 void
3948 LMSetLvl2DT(UniversalProcPtr Lvl2DTValue, short vectorNumber);
3949 
3950 #if CALL_NOT_IN_CARBON
3959 UniversalProcPtr
3960 LMGetExtStsDT(short vectorNumber);
3961 
3970 void
3971 LMSetExtStsDT(UniversalProcPtr ExtStsDTValue, short vectorNumber);
3972 
3973 #endif
3975 #endif
3977  /***************************************************************************************
3978  "Missing Accessors"
3979 
3980  These lowmem accessors are not in the original InterfaceLib. They were
3981  added to InterfaceLib in Mac OS 8.5. In Universal Interfaces 3.2 they
3982  were defined via a macro. In you want to use these functions on a
3983  pre-8.5 systems, you must write your own macros to override the function
3984  prototype or write your own implementation.
3985 
3986  **************************************************************************************/
3987 
3988 #if CALL_NOT_IN_CARBON
3997  void
3999 
4009  Point
4011 
4024  UInt8
4026 
4035  void
4037 
4050  Point
4052 
4062  void
4064 
4077  Point
4079 
4088  void
4090 
4100  void
4101  LMGetTheCursor(Cursor *currentCursor);
4102 
4111  void
4112  LMSetTheCursor(const Cursor *newCursor);
4113 
4115 #endif
4125  Ptr
4127 
4136  void
4137  LMSetHighHeapMark(Ptr value);
4138 
4148  Ptr
4150 
4159  void
4161 
4163 #if CALL_NOT_IN_CARBON
4172  Handle
4174 
4183  void
4184  LMSetROMMapHandle(Handle value);
4185 
4195  short
4197 
4206  void
4208 
4210 #endif
4220  Ptr
4222 
4231  void
4233 
4235 #if CALL_NOT_IN_CARBON
4244  UInt8
4246 
4255  void
4256  LMSetPortAInfo(UInt8 value);
4257 
4266  long
4268 
4277  void
4278  LMSetMBTicks(long value);
4279 
4288  long
4290 
4299  void
4300  LMSetKeyTime(long value);
4301 
4302 #endif
4304 #if PRAGMA_STRUCT_ALIGN
4305 #pragma options align = reset
4306 #elif PRAGMA_STRUCT_PACKPUSH
4307 #pragma pack(pop)
4308 #elif PRAGMA_STRUCT_PACK
4309 #pragma pack()
4310 #endif
4311 
4312 #ifdef PRAGMA_IMPORT_OFF
4313 #pragma import off
4314 #elif PRAGMA_IMPORT
4315 #pragma import reset
4316 #endif
4317 
4318 #ifdef __cplusplus
4319 }
4320 #endif
4321 
4322 #endif
Control Manager interfaces.
Event Manager Interfaces.
File Manager (MFS, HFS, and HFS+) Interfaces.
Public interface to the Font Manager.
UInt8 LMGetFScaleDisable(void)
void LMSetMenuList(Handle value)
void LMSetCPUFlag(UInt8 value)
SInt16 LMGetScrapState(void)
SInt16 LMGetBootDrive(void)
UniversalProcPtr LMGetJStash(void)
void LMSetABusGlobals(Ptr value)
SInt16 LMGetTESysJust(void)
void LMSetTERecal(UniversalProcPtr value)
AuxWinHandle LMGetAuxWinHead(void)
void LMSetApFontID(SInt16 value)
void LMSetOldStructure(RgnHandle value)
void LMSetDeskPattern(const Pattern *deskPatternValue)
UInt8 LMGetSPATalkB(void)
void LMSetSdVolume(UInt8 value)
void LMSetStackLowPoint(Ptr value)
void LMSetPortBUse(UInt8 value)
void LMSetJournalRef(SInt16 value)
UniversalProcPtr LMGetJVBLTask(void)
void LMSetTheZone(THz value)
void LMSetToolScratch(const void *toolScratchValue)
void LMSetAuxWinHead(AuxWinHandle value)
void LMGetDSAlertRect(Rect *dsAlertRectValue)
void LMSetCurrentA5(Ptr value)
SInt16 LMGetMBarEnable(void)
UInt8 LMGetROMMapInsert(void)
Ptr LMGetSoundPtr(void)
SInt16 LMGetSPPortB(void)
UInt8 LMGetSdVolume(void)
SInt16 LMGetBufTgFFlg(void)
UInt8 LMGetTmpResLoad(void)
void LMSetCrsrBusy(UInt8 value)
SInt16 LMGetTopMenuItem(void)
Ptr LMGetApplScratch(void)
UInt8 LMGetSPValid(void)
void LMSetDeskCPat(PixPatHandle value)
void LMSetRAMBase(Ptr value)
UInt8 LMGetSoundLevel(void)
void LMSetVCBQHdr(QHdrPtr vcbQHdrValue)
void LMSetResLoad(UInt8 value)
void LMSetExtStsDT(UniversalProcPtr ExtStsDTValue, short vectorNumber)
void LMSetROMMapInsert(UInt8 value)
void LMSetSoundBase(Ptr value)
SInt16 LMGetMemErr(void)
void LMSetSysMap(SInt16 value)
RgnHandle LMGetGrayRgn(void)
UniversalProcPtr LMGetJIODone(void)
void LMSetSPATalkA(UInt8 value)
Point LMGetMouseTemp(void)
Handle LMGetTopMapHndl(void)
Ptr LMGetDSAlertTab(void)
void LMSetSPPrint(UInt8 value)
SInt16 LMGetDSErrCode(void)
void LMSetApplScratch(const void *applScratchValue)
void LMSetSFSaveDisk(SInt16 value)
SInt32 LMGetMinusOne(void)
SInt32 LMGetCurDirStore(void)
UInt8 LMGetPortAInfo(void)
UniversalProcPtr LMGetToExtFS(void)
Handle LMGetGZRootHnd(void)
SInt32 LMGetRndSeed(void)
void LMSetMenuDisable(SInt32 value)
void LMSetANumber(SInt16 value)
void LMSetCurApName(ConstStr31Param curApNameValue)
PixPatHandle LMGetDeskCPat(void)
SInt16 LMGetANumber(void)
void LMSetOldContent(RgnHandle value)
UInt8 LMGetMouseButtonState(void)
void LMSetSysMapHndl(Handle value)
void LMSetMouseButtonState(UInt8 value)
void LMSetMBarEnable(SInt16 value)
SInt16 LMGetTimeDBRA(void)
void LMSetMinusOne(SInt32 value)
Ptr LMGetDefVCBPtr(void)
UInt32 LMGetCaretTime(void)
SInt32 LMGetMinStack(void)
Ptr LMGetCurrentA5(void)
Ptr LMGetStackLowPoint(void)
UInt8 LMGetCPUFlag(void)
void LMSetSynListHandle(Handle value)
void LMSetResErrProc(ResErrUPP value)
void LMSetDTQueue(QHdrPtr dtQueueValue)
void LMSetJDTInstall(UniversalProcPtr value)
void LMSetDABeeper(UniversalProcPtr value)
Ptr LMGetROMBase(void)
void LMSetApplZone(THz value)
void LMSetWindowList(WindowRef value)
QHdrPtr LMGetVCBQHdr(void)
void LMSetSysFontSize(SInt16 value)
void LMSetJVBLTask(UniversalProcPtr value)
UInt8 LMGetSPClikCaret(void)
Ptr LMGetScratch20(void)
void LMSetSPAlarm(SInt32 value)
UniversalProcPtr LMGetTERecal(void)
void LMSetLvl2DT(UniversalProcPtr Lvl2DTValue, short vectorNumber)
void LMSetJFetch(UniversalProcPtr value)
Ptr LMGetMemTop(void)
SInt16 LMGetDlgFont(void)
void LMSetDlgFont(SInt16 value)
QHdrPtr LMGetDrvQHdr(void)
void LMSetSPFont(SInt16 value)
WindowRef LMGetWindowList(void)
void LMSetMBTicks(long value)
void LMSetUTableBase(Ptr value)
UInt8 LMGetPortBUse(void)
THz LMGetSysZone(void)
void LMSetApplLimit(Ptr value)
UInt8 LMGetSPVolCtl(void)
void LMSetCurApRefNum(SInt16 value)
Handle LMGetAppParmHandle(void)
void LMSetGNEFilter(GetNextEventFilterUPP value)
void LMSetMinStack(SInt32 value)
void LMSetTheCursor(const Cursor *newCursor)
void LMSetBufTgFBkNum(SInt16 value)
void LMSetDragHook(DragGrayRgnUPP value)
SInt16 LMGetCurPageOption(void)
Ptr LMGetScrnBase(void)
void LMSetIntlSpec(Ptr value)
long LMGetKeyTime(void)
RgnHandle LMGetOldContent(void)
void LMSetSPPortA(SInt16 value)
void LMSetOneOne(SInt32 value)
void LMSetRndSeed(SInt32 value)
void LMSetSPMisc2(UInt8 value)
void LMSetTEScrpLength(UInt16 value)
void LMSetROM85(SInt16 value)
SInt16 LMGetApFontID(void)
void LMSetSaveUpdate(SInt16 value)
SInt16 LMGetSysMap(void)
void LMSetLo3Bytes(SInt32 value)
void LMSetBufTgDate(SInt32 value)
Point LMGetMouseLocation(void)
UInt16 LMGetTEScrpLength(void)
void LMSetPaintWhite(SInt16 value)
WindowRef LMGetCurDeactive(void)
Handle LMGetSysMapHndl(void)
void LMSetScrapHandle(Handle value)
SInt16 LMGetACount(void)
void LMSetSysZone(THz value)
Ptr LMGetSCCWr(void)
void LMSetDefVCBPtr(Ptr value)
void LMSetWMgrPort(GrafPtr value)
SInt16 LMGetSysFontSize(void)
UInt8 LMGetMMU32Bit(void)
void LMGetTheCursor(Cursor *currentCursor)
void LMSetScratch20(const void *scratch20Value)
void LMSetDragPattern(const Pattern *dragPatternValue)
SInt32 LMGetBufTgDate(void)
void LMSetBufTgFNum(SInt32 value)
void LMSetDoubleTime(UInt32 value)
UInt8 LMGetSPPrint(void)
MBarHookUPP LMGetMBarHook(void)
void LMSetMBarHeight(SInt16 value)
UInt32 LMGetDoubleTime(void)
SInt16 LMGetHWCfgFlags(void)
void LMSetGZMoveHnd(Handle value)
Handle LMGetScrapHandle(void)
void LMSetSoundPtr(Ptr value)
StringPtr LMGetFinderName(void)
void LMSetDiskFormatingHFSDefaults(Ptr value)
void LMSetROMBase(Ptr value)
void LMSetTopMenuItem(SInt16 value)
void LMSetTheMenu(SInt16 value)
void LMSetFinderName(ConstStr15Param finderNameValue)
SInt32 LMGetSPAlarm(void)
GrafPtr LMGetWMgrPort(void)
UniversalProcPtr LMGetJDTInstall(void)
void LMSetSPKbd(UInt8 value)
SInt32 LMGetTime(void)
void LMSetSEvtEnb(UInt8 value)
SInt16 LMGetCurMap(void)
void LMSetCurActivate(WindowRef value)
SInt32 LMGetMenuDisable(void)
UniversalProcPtr LMGetDeskHook(void)
void LMSetPortAInfo(UInt8 value)
void LMSetGrayRgn(RgnHandle value)
void LMSetMemTop(Ptr value)
WindowRef LMGetCurActivate(void)
SInt16 LMGetSPFont(void)
void LMSetTEScrpHandle(Handle value)
Ptr LMGetVIA(void)
void LMSetDAStrings(StringHandle stringsValue, short whichString)
void LMSetJIODone(UniversalProcPtr value)
QHdrPtr LMGetFSQHdr(void)
SInt16 LMGetBufTgFBkNum(void)
void LMSetAppParmHandle(Handle value)
Handle LMGetROMMapHandle(void)
void LMSetCurDeactive(WindowRef value)
Ptr LMGetDiskFormatingHFSDefaults(void)
StringHandle LMGetDAStrings(short whichString)
void LMSetScrnBase(Ptr value)
void LMSetVBLQueue(QHdrPtr vblQueueValue)
Handle LMGetROMFont0(void)
void LMSetScrDmpEnb(UInt8 value)
long LMGetMBTicks(void)
UInt8 LMGetSPConfig(void)
void LMSetCurPageOption(SInt16 value)
void LMSetKeyTime(long value)
void LMSetJStash(UniversalProcPtr value)
DragGrayRgnUPP LMGetDragHook(void)
Ptr LMGetRAMBase(void)
SInt16 LMGetSPPortA(void)
void LMSetSPVolCtl(UInt8 value)
SInt16 LMGetSysFontFam(void)
void LMSetABusDCE(Ptr value)
void LMSetUnitTableEntryCount(short value)
GetNextEventFilterUPP LMGetGNEFilter(void)
void LMSetSPConfig(UInt8 value)
UInt32 LMGetTicks(void)
void LMSetTEDoText(UniversalProcPtr value)
SInt32 LMGetBufTgFNum(void)
void LMSetDSErrCode(SInt16 value)
void LMSetDrvQHdr(QHdrPtr drvQHdrValue)
void LMSetSPClikCaret(UInt8 value)
void LMSetDeskHook(UniversalProcPtr value)
void LMSetGZRootHnd(Handle value)
void LMSetSysEvtMask(SInt16 value)
void LMSetACount(SInt16 value)
ResErrUPP LMGetResErrProc(void)
UniversalProcPtr LMGetExtStsDT(short vectorNumber)
void LMSetTmpResLoad(UInt8 value)
void LMSetSPValid(UInt8 value)
void LMSetResumeProc(UniversalProcPtr value)
QHdrPtr LMGetEventQueue(void)
void LMSetBootDrive(SInt16 value)
SInt16 LMGetCrsrThresh(void)
void LMSetScrapState(SInt16 value)
Ptr LMGetABusDCE(void)
UniversalProcPtr LMGetJFetch(void)
void LMSetAtMenuBottom(SInt16 value)
void LMSetROMMapHandle(Handle value)
void LMSetMenuHook(MenuHookUPP value)
void LMSetSoundLevel(UInt8 value)
void LMSetCurDirStore(SInt32 value)
void LMSetMenuCInfo(MCTableHandle value)
SInt16 LMGetTimeSCSIDB(void)
void LMSetMBarHook(MBarHookUPP value)
void LMSetScrapSize(SInt32 value)
void LMSetVIA(Ptr value)
SInt16 LMGetResErr(void)
SInt32 LMGetOneOne(void)
SInt32 LMGetLo3Bytes(void)
Handle LMGetSynListHandle(void)
Point LMGetRawMouseLocation(void)
Handle LMGetTEScrpHandle(void)
void LMSetTimeDBRA(SInt16 value)
void LMSetCurMap(SInt16 value)
SInt16 LMGetROM85(void)
void LMSetSCCRd(Ptr value)
Ptr LMGetCurStackBase(void)
UniversalProcPtr LMGetResumeProc(void)
void LMSetScrapName(StringPtr value)
void LMSetCrsrThresh(SInt16 value)
void LMSetTopMapHndl(Handle value)
SInt16 LMGetPrintErr(void)
void LMSetCurJTOffset(SInt16 value)
THz LMGetApplZone(void)
MCTableHandle LMGetMenuCInfo(void)
RgnHandle LMGetOldStructure(void)
Ptr LMGetATalkHk2(void)
void LMSetGhostWindow(WindowRef value)
StringPtr LMGetCurApName(void)
void LMSetCurStackBase(Ptr value)
Ptr LMGetABusGlobals(void)
void LMSetSysResName(ConstStr15Param sysResNameValue)
void LMSetBufTgFFlg(SInt16 value)
void LMSetDSAlertTab(Ptr value)
QHdrPtr LMGetDTQueue(void)
UniversalProcPtr LMGetDABeeper(void)
void LMSetTimeSCSIDB(SInt16 value)
void LMSetTimeSCCDB(SInt16 value)
void LMSetRawMouseLocation(Point value)
SInt16 LMGetSaveUpdate(void)
SInt16 LMGetCurJTOffset(void)
StringPtr LMGetSysResName(void)
SInt16 LMGetFSFCBLen(void)
SInt16 LMGetSFSaveDisk(void)
void LMSetMouseTemp(Point value)
SInt16 LMGetCurPitch(void)
Handle LMGetMenuList(void)
void LMSetATalkHk2(Ptr value)
void LMSetEventQueue(QHdrPtr eventQueueValue)
void LMSetSPATalkB(UInt8 value)
UInt8 LMGetSPMisc2(void)
THz LMGetTheZone(void)
void LMSetToExtFS(UniversalProcPtr value)
UInt8 LMGetSPKbd(void)
StringPtr LMGetScrapName(void)
SInt16 LMGetMenuFlash(void)
void LMSetROMFont0(Handle value)
void LMSetSPPortB(SInt16 value)
Handle LMGetGZMoveHnd(void)
SInt16 LMGetAtMenuBottom(void)
void LMSetDefltStack(SInt32 value)
SInt16 LMGetJournalRef(void)
void LMSetSCCWr(Ptr value)
SInt16 LMGetTimeSCCDB(void)
UInt8 LMGetSEvtEnb(void)
void LMSetSaveVisRgn(RgnHandle value)
Ptr LMGetToolScratch(void)
void LMSetTicks(UInt32 value)
void LMSetHighHeapMark(Ptr value)
void LMSetCaretTime(UInt32 value)
UInt8 LMGetCrsrBusy(void)
void LMSetBufPtr(Ptr value)
WindowRef LMGetGhostWindow(void)
SInt16 LMGetCurApRefNum(void)
SInt16 LMGetScrapCount(void)
void LMSetTESysJust(SInt16 value)
void LMSetScrapCount(SInt16 value)
UInt8 LMGetResLoad(void)
MenuHookUPP LMGetMenuHook(void)
void LMSetMemErr(SInt16 value)
SInt32 LMGetScrapSize(void)
void LMSetMouseLocation(Point value)
Ptr LMGetHighHeapMark(void)
Ptr LMGetUTableBase(void)
void LMSetHeapEnd(Ptr value)
Ptr LMGetSCCRd(void)
void LMSetSysFontFam(SInt16 value)
short LMGetUnitTableEntryCount(void)
void LMGetDeskPattern(Pattern *deskPatternValue)
SInt32 LMGetDefltStack(void)
void LMSetMMU32Bit(UInt8 value)
Ptr LMGetBufPtr(void)
Ptr LMGetApplLimit(void)
UniversalProcPtr LMGetTEDoText(void)
UInt8 LMGetSPATalkA(void)
void LMSetResErr(SInt16 value)
void LMSetTime(SInt32 value)
Ptr LMGetSoundBase(void)
Ptr LMGetHeapEnd(void)
void LMSetCurPitch(SInt16 value)
void LMSetMenuFlash(SInt16 value)
void LMSetFScaleDisable(UInt8 value)
SInt16 LMGetMBarHeight(void)
void LMSetDSAlertRect(const Rect *dsAlertRectValue)
UniversalProcPtr LMGetLvl2DT(short vectorNumber)
void LMSetHWCfgFlags(SInt16 value)
void LMGetDragPattern(Pattern *dragPatternValue)
UInt8 LMGetScrDmpEnb(void)
RgnHandle LMGetSaveVisRgn(void)
SInt16 LMGetPaintWhite(void)
QHdrPtr LMGetVBLQueue(void)
SInt16 LMGetSysEvtMask(void)
void LMSetPrintErr(SInt16 value)
Ptr LMGetIntlSpec(void)
Memory Manager Interfaces.
Basic Macintosh data types.
unsigned char * StringPtr
Definition: MacTypes.h:477
Window Manager Interfaces.
Menu Manager Interfaces.
OS Utilities Interfaces.
Interface to Quickdraw Graphics.
Resource Manager Interfaces.
Definition: MacWindows.h:809
Definition: Quickdraw.h:288
Definition: Quickdraw.h:1648
Definition: Menus.h:772
Definition: Quickdraw.h:306
Definition: Quickdraw.h:223
Definition: Quickdraw.h:2091
Definition: MacTypes.h:520
Definition: OSUtils.h:154
Definition: MacTypes.h:527
Definition: MacMemory.h:101