2012-11-25 04:26:37 +00:00
|
|
|
// Windows layer-independent code
|
|
|
|
|
2017-02-25 08:15:36 +00:00
|
|
|
#include "compat.h"
|
2012-11-25 04:26:37 +00:00
|
|
|
|
2019-08-07 22:44:17 +00:00
|
|
|
#ifdef APPNAME
|
|
|
|
# define WindowClass APPNAME
|
|
|
|
#else
|
|
|
|
# define WindowClass "buildapp"
|
|
|
|
#endif
|
2012-11-25 04:26:37 +00:00
|
|
|
|
|
|
|
extern int32_t backgroundidle; // set to 1 to tell winlayer to go to idle priority when inactive
|
|
|
|
|
|
|
|
extern int64_t win_timerfreq;
|
|
|
|
|
|
|
|
extern char silentvideomodeswitch;
|
|
|
|
|
|
|
|
extern BOOL CheckWinVersion(void);
|
|
|
|
extern void win_allowtaskswitching(int32_t onf);
|
|
|
|
extern int32_t win_checkinstance(void);
|
|
|
|
|
2017-12-09 02:56:12 +00:00
|
|
|
#if defined(RENDERTYPEWIN) || SDL_MAJOR_VERSION==1
|
2012-11-25 04:26:37 +00:00
|
|
|
extern int32_t win_inittimer(void);
|
2013-07-07 20:59:00 +00:00
|
|
|
extern uint64_t win_getu64ticks(void);
|
2017-12-09 02:56:12 +00:00
|
|
|
#endif
|
2012-11-25 04:26:37 +00:00
|
|
|
|
|
|
|
extern void win_open(void);
|
|
|
|
extern void win_init(void);
|
|
|
|
extern void win_setvideomode(int32_t c);
|
|
|
|
extern void win_uninit(void);
|
|
|
|
extern void win_close(void);
|
|
|
|
|
2016-12-26 06:02:45 +00:00
|
|
|
extern void Win_GetOriginalLayoutName(void);
|
|
|
|
extern void Win_SetKeyboardLayoutUS(int);
|
|
|
|
|
2012-11-25 04:26:37 +00:00
|
|
|
extern void ShowErrorBox(const char *m);
|
|
|
|
|
|
|
|
extern LPTSTR GetWindowsErrorMsg(DWORD code);
|
2013-03-21 09:48:21 +00:00
|
|
|
|
|
|
|
extern int32_t addsearchpath_ProgramFiles(const char *p);
|
2014-11-26 04:39:23 +00:00
|
|
|
|
|
|
|
extern int32_t G_GetVersionFromWebsite(char *buffer);
|
2015-02-11 05:21:50 +00:00
|
|
|
extern int32_t win_buildargs(char **argvbuf);
|