From 0023db327bc1db00068284b70e1db45857aeee35 Mon Sep 17 00:00:00 2001 From: Travis Bradshaw Date: Tue, 31 Jan 2012 14:32:09 -0600 Subject: The Quake sources as originally release under the GPL license on December 21, 1999 --- QW/dxsdk/sdk/inc/dsetup.h | 66 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 QW/dxsdk/sdk/inc/dsetup.h (limited to 'QW/dxsdk/sdk/inc/dsetup.h') diff --git a/QW/dxsdk/sdk/inc/dsetup.h b/QW/dxsdk/sdk/inc/dsetup.h new file mode 100644 index 0000000..b9075ef --- /dev/null +++ b/QW/dxsdk/sdk/inc/dsetup.h @@ -0,0 +1,66 @@ +/*========================================================================== + * + * Copyright (C) 1995-1996 Microsoft Corporation. All Rights Reserved. + * + * File: dsetup.h + * Content: DirectXSetup, error codes and flags + ***************************************************************************/ + +#ifndef __DSETUP_H__ +#define __DSETUP_H__ + +#ifdef _WIN32 +#define COM_NO_WINDOWS_H +#include +#else +#define GUID void +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#define DSETUPERR_BADWINDOWSVERSION -1 +#define DSETUPERR_SOURCEFILENOTFOUND -2 +#define DSETUPERR_BADSOURCESIZE -3 +#define DSETUPERR_BADSOURCETIME -4 +#define DSETUPERR_NOCOPY -5 +#define DSETUPERR_OUTOFDISKSPACE -6 +#define DSETUPERR_CANTFINDINF -7 +#define DSETUPERR_CANTFINDDIR -8 +#define DSETUPERR_INTERNAL -9 +#define DSETUPERR_NTWITHNO3D -10 + + +#define MAX_INFLINE (16*1024) +#define MAX_DESCRIPTION 256 + +#define DSETUP_DDRAW 0x00000001 /* install DirectDraw */ +#define DSETUP_DSOUND 0x00000002 /* install DirectSound */ +#define DSETUP_DPLAY 0x00000004 /* install DirectPlay */ +#define DSETUP_DDRAWDRV 0x00000008 /* install DirectDraw Drivers */ +#define DSETUP_DSOUNDDRV 0x00000010 /* install DirectSound Drivers */ +#define DSETUP_DPLAYSP 0x00000020 /* install DirectPlay Providers */ +#define DSETUP_DVIDEO 0x00000040 /* install DirectVideo */ +#define DSETUP_REINSTALL 0x00000080 /* install DirectX even if existing components have the same version */ +#define DSETUP_DRVINFONLY 0x00000100 /* install DirectX inf files but not drivers */ +#define DSETUP_D3D 0x00000200 /* install Direct3D */ +#define DSETUP_REQUIRESD3D 0x00000400 | DSETUP_D3D /* install Direct3D, pop up dialog box on NT, if no D3D present */ + +#define DSETUP_DIRECTX (DSETUP_D3D | DSETUP_DDRAW | DSETUP_DSOUND | DSETUP_DPLAY | DSETUP_DDRAWDRV | DSETUP_DSOUNDDRV | DSETUP_DPLAYSP) + +int WINAPI DirectXSetup( HWND hwnd, LPSTR root_path, DWORD flags ); +int WINAPI DirectXDeviceDriverSetup( HWND hwnd, LPSTR driver_class, LPSTR inf_path, LPSTR driver_path, DWORD flags ); +int WINAPI DirectXSetupIsJapan( void ); +int WINAPI DirectXSetupIsJapanNec( void ); + +typedef int (WINAPI * LPDIRECTXSETUP)( HWND, LPSTR, DWORD ); +typedef int (WINAPI * LPDIRECTXDEVICEDRIVERSETUP)( HWND, LPSTR, LPSTR, LPSTR, DWORD ); +typedef int (WINAPI * LPDIRECTXSETUPISJAPAN)( void ); +typedef int (WINAPI * LPDIRECTXSETUPISJAPANNEC)( void ); + +#ifdef __cplusplus +}; +#endif + +#endif -- cgit v1.2.3