1 #include <intuition/intuition.h>
2 #include <proto/exec.h>
3 #include <proto/intuition.h>
6 extern STRPTR _ProgramName
;
7 struct Library
*MiamiBase
= NULL
;
9 LONG STDARGS CONSTRUCTOR
_STI_200_openMiami(void)
11 struct Library
*IntuitionBase
;
13 MiamiBase
= OpenLibrary("miami.library", 0);
17 IntuitionBase
= OpenLibrary("intuition.library", 36);
19 struct EasyStruct libraryES
;
21 libraryES
.es_StructSize
= sizeof(libraryES
);
22 libraryES
.es_Flags
= 0;
23 libraryES
.es_Title
= _ProgramName
;
24 libraryES
.es_TextFormat
= "Unable to open miami.library";
25 libraryES
.es_GadgetFormat
= "Exit %s";
27 EasyRequestArgs(NULL
, &libraryES
, NULL
, (APTR
)&_ProgramName
);
29 CloseLibrary(IntuitionBase
);
34 void STDARGS DESTRUCTOR
_STD_200_closeMiami(void)
37 CloseLibrary(MiamiBase
);