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";
6 #include "prototypes.h"
10 #define DEFAULT_MSG_QUEUE_SIZE 8
12 #define USER_HEAP_SIZE 0x10000
15 MDESC
*USER_Heap
= NULL
;
18 /***********************************************************************
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
);
32 /**********************************************************************
35 * Load necessary resources?
38 USER_InitApp(int hInstance
)
40 /* GDI initialisation */
41 if (!GDI_Init()) return 0;
43 /* Create USER heap */
44 if (!USER_HeapInit()) return 0;
49 /* Initialize built-in window classes */
52 /* Create task message queue */
53 if (!SetMessageQueue( DEFAULT_MSG_QUEUE_SIZE
)) return 0;