fallout2-ce/src/win32.h

31 lines
585 B
C
Raw Normal View History

2022-05-19 01:51:26 -07:00
#ifndef WIN32_H
#define WIN32_H
2022-05-29 10:07:43 -07:00
#include "dsound_compat.h"
2022-05-29 12:08:13 -07:00
#ifdef _WIN32
2022-05-19 01:51:26 -07:00
#define WIN32_LEAN_AND_MEAN
2022-05-28 04:45:48 -07:00
#define NOMINMAX
2022-05-19 01:51:26 -07:00
#include <windows.h>
2022-05-29 10:07:43 -07:00
#ifdef HAVE_DSOUND
2022-05-19 01:51:26 -07:00
typedef HRESULT(__stdcall DirectSoundCreateProc)(GUID*, LPDIRECTSOUND*, IUnknown*);
2022-05-29 10:07:43 -07:00
#endif
2022-05-19 01:51:26 -07:00
2022-05-29 10:07:43 -07:00
#ifdef HAVE_DSOUND
2022-05-19 01:51:26 -07:00
extern DirectSoundCreateProc* gDirectSoundCreateProc;
2022-05-29 10:07:43 -07:00
#endif
2022-05-19 01:51:26 -07:00
extern HWND gProgramWindow;
extern bool gProgramIsActive;
extern HANDLE _GNW95_mutex;
2022-05-29 10:07:43 -07:00
#ifdef HAVE_DSOUND
2022-05-19 01:51:26 -07:00
extern HMODULE gDSoundDLL;
2022-05-29 10:07:43 -07:00
#endif
2022-05-19 01:51:26 -07:00
bool _LoadDirectX();
void _UnloadDirectX(void);
2022-05-29 12:08:13 -07:00
#else
extern bool gProgramIsActive;
#endif
2022-05-19 01:51:26 -07:00
#endif /* WIN32_H */