mucking around
This commit is contained in:
parent
35d10f2b06
commit
a2598146d1
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,34 @@
|
|||
#include <Memory.h>
|
||||
#include <Types.h>
|
||||
|
||||
OSErr GetSharedLibrary(
|
||||
unsigned char *libName,
|
||||
long archType,
|
||||
long options,
|
||||
long *connID,
|
||||
Ptr *mainAddr,
|
||||
Str255 errMessage) = {0x3F3C,0x0001,0xAA5A};
|
||||
|
||||
|
||||
void myfunc(void)
|
||||
{
|
||||
THz z, y;
|
||||
Ptr p;
|
||||
Ptr mainAddr;
|
||||
Str255 scratch;
|
||||
OSErr err;
|
||||
|
||||
z = GetZone();
|
||||
y = *(THz *)0x2A6;
|
||||
SetZone(y);
|
||||
|
||||
p = NewPtrSys(8);
|
||||
if(p)
|
||||
{
|
||||
err = GetSharedLibrary("\pUSBFamilyExpertLib", 'pwpc', 1, (long *)(p + 4), &mainAddr, scratch);
|
||||
if(!err)
|
||||
{
|
||||
SetZone(z);
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Loading…
Reference in New Issue