Listing 1: Das erste Applikation-Docky /* das Docky erzeugen */ if((DockyBase = CreateDockyLibrary())) { ULONG appID; struct ApplicationIconInfo aii; aii.iconType = APPICONT_Docky; aii.info.dockyBase = DockyBase; /* das eigene Programm registrieren */ if((appID = IApplication->RegisterApplication(NULL, REGAPP_WBStartup, (ULONG)argv, // struct WBStartup * REGAPP_URLIdentifier, "weka.de", // beliebig REGAPP_AppIconInfo, (ULONG)&aii, TAG_DONE))) { /* MsgPort erfragen (AmiDock liefert hier Nachrichten ab) */ IApplication->GetApplicationAttrs(appID, APPATTR_Port, (ULONG)&gb_AppPort, TAG_DONE); ... /* Programm-Registrierung aufheben */ IApplication->UnregisterApplication(appID, NULL); } else IDOS->Printf("Application kann nicht registriert werden !\n"); /* das eigene Docky freigeben */ DeleteDockyLibrary(DockyBase); } else IDOS->Printf("DockyLib kann nicht erstellt werden !\n");