Open source remastering of the Freespace 2 engine
osapi.cpp File Reference
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <winsock.h>
#include <stdarg.h>
#include <direct.h>
#include "globalincs/pstypes.h"
#include "io/key.h"
#include "palman/palman.h"
#include "io/mouse.h"
#include "osapi/outwnd.h"
#include "sound/sound.h"
#include "freespace2/freespaceresource.h"
#include "playerman/managepilot.h"
#include "io/joy.h"
#include "io/joy_ff.h"
#include "gamesequence/gamesequence.h"
#include "freespace2/freespace.h"
#include "osapi/osregistry.h"
#include "cmdline/cmdline.h"
#include "sound/voicerec.h"
#include "graphics/2d.h"
#include "osapi/osapi.h"

Go to the source code of this file.


#define THREADED


DWORD win32_process1 (DWORD lparam)
DWORD win32_process2 (DWORD lparam)
void os_check_debugger ()
void os_deinit ()
BOOL __stdcall os_enum_windows (HWND hwnd, char *search_string)
LRESULT CALLBACK win32_message_handler (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
const char * detect_home (void)
void os_set_process_affinity ()
void os_init (const char *wclass, const char *title, const char *app_name, const char *version_string)
void os_set_title (const char *title)
void gr_opengl_shutdown ()
void os_cleanup ()
int os_foreground ()
uint os_get_window ()
uint os_get_dc ()
void os_set_window (uint new_handle)
void os_sleep (int ms)
void os_suspend ()
void os_resume ()
DWORD win32_process (DWORD lparam)
void change_window_active_state ()
void win32_create_window (int width, int height)
void os_poll ()
void debug_int3 (char *file, int line)


int Os_debugger_running = 0
char Cur_path [MAX_PATH_LEN]
int Got_message = 0
bool Messagebox_active

Macro Definition Documentation

#define THREADED

Definition at line 39 of file osapi.cpp.

Function Documentation

void change_window_active_state ( )

Definition at line 366 of file osapi.cpp.

void debug_int3 ( char *  file,
int  line 

Definition at line 769 of file osapi.cpp.

const char* detect_home ( void  )

Definition at line 101 of file osapi.cpp.

void gr_opengl_shutdown ( )

Definition at line 1316 of file gropengl.cpp.

void os_check_debugger ( )

Definition at line 305 of file osapi.cpp.

void os_cleanup ( )

Definition at line 181 of file osapi.cpp.

void os_deinit ( )

Definition at line 340 of file osapi.cpp.

BOOL __stdcall os_enum_windows ( HWND  hwnd,
char *  search_string 

Definition at line 349 of file osapi.cpp.

int os_foreground ( )

Definition at line 202 of file osapi.cpp.

uint os_get_dc ( )

Definition at line 213 of file osapi.cpp.

uint os_get_window ( )

Definition at line 208 of file osapi.cpp.

void os_init ( const char *  wclass,
const char *  title,
const char *  app_name,
const char *  version_string 

Definition at line 134 of file osapi.cpp.

void os_poll ( )

Definition at line 748 of file osapi.cpp.

void os_resume ( )

Definition at line 244 of file osapi.cpp.

void os_set_process_affinity ( )

Definition at line 114 of file osapi.cpp.

void os_set_title ( const char *  title)

Definition at line 172 of file osapi.cpp.

void os_set_window ( uint  new_handle)

Definition at line 223 of file osapi.cpp.

void os_sleep ( int  ms)

Definition at line 232 of file osapi.cpp.

void os_suspend ( )

Definition at line 238 of file osapi.cpp.

void win32_create_window ( int  width,
int  height 

Definition at line 635 of file osapi.cpp.

LRESULT CALLBACK win32_message_handler ( HWND  hwnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 

Definition at line 427 of file osapi.cpp.

DWORD win32_process ( DWORD  lparam)

Definition at line 291 of file osapi.cpp.

DWORD win32_process1 ( DWORD  lparam)
DWORD win32_process2 ( DWORD  lparam)

Variable Documentation

char Cur_path[MAX_PATH_LEN]

Definition at line 100 of file osapi.cpp.

int Got_message = 0

Definition at line 424 of file osapi.cpp.

bool Messagebox_active

Definition at line 44 of file windebug.cpp.

int Os_debugger_running = 0

Definition at line 68 of file osapi.cpp.