Release 0.3.0
[wine/multimedia.git] / misc / user.c
bloba75bd424f6ee2767ec3ea774ea31dcd912cc172e
1 static char RCSId[] = "$Id: user.c,v 1.2 1993/07/04 04:04:21 root Exp root $";
2 static char Copyright[] = "Copyright Robert J. Amstadt, 1993";
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include "prototypes.h"
7 #include "windows.h"
8 #include "user.h"
10 #define DEFAULT_MSG_QUEUE_SIZE 8
12 #define USER_HEAP_SIZE 0x10000
15 MDESC *USER_Heap = NULL;
18 /***********************************************************************
19 * USER_HeapInit
21 static BOOL USER_HeapInit()
23 struct segment_descriptor_s * s;
24 s = GetNextSegment( 0, 0x10000 );
25 if (s == NULL) return FALSE;
26 HEAP_Init( &USER_Heap, s->base_addr, USER_HEAP_SIZE );
27 free(s);
28 return TRUE;
32 /**********************************************************************
33 * USER_InitApp
35 * Load necessary resources?
37 int
38 USER_InitApp(int hInstance)
40 /* GDI initialisation */
41 if (!GDI_Init()) return 0;
43 /* Create USER heap */
44 if (!USER_HeapInit()) return 0;
46 /* Create the DCEs */
47 DCE_Init();
49 /* Initialize built-in window classes */
50 WIDGETS_Init();
52 /* Create task message queue */
53 if (!SetMessageQueue( DEFAULT_MSG_QUEUE_SIZE )) return 0;
55 return 1;