Testing a request for BOS descriptor. Device enumeration needs to be quite different...
[AROS.git] / workbench / demos / sysreq.c
blob0a0a4662092645231fd2351d0a3857a5e3feca1d
1 #include <intuition/intuition.h>
2 #include <proto/exec.h>
3 #include <proto/dos.h>
4 #include <proto/intuition.h>
5 #include <proto/alib.h>
7 #include <stdio.h>
9 struct IntuitionBase *IntuitionBase;
11 static struct IntuiText body, body2, pos, neg;
13 int main(void)
15 if ((IntuitionBase = (struct IntuitionBase *)OpenLibrary("intuition.library",39)))
17 pos.IText = "Positive text";
18 neg.IText = "Negative text";
20 body.IText = "Text Line 1";
21 body2.IText = "Text Line 2";
22 body2.TopEdge = 20;
24 AutoRequest(0, &body, &pos, &neg, 0, 0, 0, 0);
26 body.NextText = &body2;
28 AutoRequest(0, &body, &pos, &neg, 0, 0, 0, 0);
30 AutoRequest(0, &body, 0, &neg, 0, 0, 0, 0);
32 body2.LeftEdge = 50;
33 body2.IText = "This is a long text line";
35 AutoRequest(0, &body, 0, &neg, 0, 0, 0, 0);
38 CloseLibrary((struct Library *)IntuitionBase);
40 else
42 fprintf(stderr, "Could not open intuition.library V39 or greater.\n");
43 return 10;
46 return 0;