#include #include #include struct Library *LucyPlayBase = NULL; int main(VOID) { ULONG ModeID; if (LucyPlayBase = (struct Library *)OpenLibrary("lucyplay.library", 2)) { if ((ModeID = lucBestModeID(640, 480, 8)) != INVALID_ID) { printf("ModeID: 0x%x\n", ModeID); } else { printf("No valid screenmode found.\n"); } CloseLibrary(LucyPlayBase); } return(0); }