2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
16 // --------------------------------------------------------------------------------------------------
20 // set if running under MsDev - done after os_init(...) has returned
21 extern int Os_debugger_running;
27 #define ENTER_CRITICAL_SECTION(csc) do { EnterCriticalSection(csc); } while(0);
28 #define LEAVE_CRITICAL_SECTION(csc) do { LeaveCriticalSection(csc); } while(0);
30 #define ENTER_CRITICAL_SECTION(csc) do { } while(0);
31 #define LEAVE_CRITICAL_SECTION(csc) do { } while(0);
34 // --------------------------------------------------------------------------------------------------
38 // initialization/shutdown functions -----------------------------------------------
41 extern const char *detect_home(void);
44 // If app_name is NULL or ommited, then TITLE is used
45 // for the app name, which is where registry keys are stored.
46 void os_init(char * wclass, char * title, char *app_name=NULL, char *version_string=NULL );
48 // set the main window title
49 void os_set_title( char * title );
51 // call at program end
55 // window management ---------------------------------------------------------------
57 // toggle window size between full screen and windowed
58 void os_toggle_fullscreen();
60 // Returns 1 if app is not the foreground app.
63 // Returns the handle to the main window
67 // process management --------------------------------------------------------------
69 // call to process windows messages. only does something in non THREADED mode
72 // Sleeps for n milliseconds or until app becomes active.
73 void os_sleep(int ms);
75 // Used to stop message processing
78 // resume message processing