1/*==========================================================================
2 *
3 *  Copyright (C) 1995-1996 Microsoft Corporation.  All Rights Reserved.
4 *
5 *  File:       dsetup.h
6 *  Content:    DirectXSetup, error codes and flags
7 ***************************************************************************/
8
9#ifndef __DSETUP_H__
10#define __DSETUP_H__
11
12#ifdef _WIN32
13#define COM_NO_WINDOWS_H
14#include <objbase.h>
15#else
16#define GUID void
17#endif
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#define DSETUPERR_BADWINDOWSVERSION     -1
24#define DSETUPERR_SOURCEFILENOTFOUND    -2
25#define DSETUPERR_BADSOURCESIZE         -3
26#define DSETUPERR_BADSOURCETIME         -4
27#define DSETUPERR_NOCOPY                -5
28#define DSETUPERR_OUTOFDISKSPACE        -6
29#define DSETUPERR_CANTFINDINF           -7
30#define DSETUPERR_CANTFINDDIR           -8
31#define DSETUPERR_INTERNAL              -9
32#define DSETUPERR_NTWITHNO3D            -10
33
34
35#define MAX_INFLINE             (16*1024)
36#define MAX_DESCRIPTION         256
37
38#define DSETUP_DDRAW            0x00000001      /* install DirectDraw           */
39#define DSETUP_DSOUND           0x00000002      /* install DirectSound          */
40#define DSETUP_DPLAY            0x00000004      /* install DirectPlay           */
41#define DSETUP_DDRAWDRV         0x00000008      /* install DirectDraw Drivers   */
42#define DSETUP_DSOUNDDRV        0x00000010      /* install DirectSound Drivers  */
43#define DSETUP_DPLAYSP          0x00000020      /* install DirectPlay Providers */
44#define DSETUP_DVIDEO           0x00000040      /* install DirectVideo          */
45#define DSETUP_REINSTALL        0x00000080      /* install DirectX even if existing components have the same version    */
46#define DSETUP_DRVINFONLY       0x00000100      /* install DirectX inf files but not drivers                            */
47#define DSETUP_D3D              0x00000200      /* install Direct3D                                                     */
48#define DSETUP_REQUIRESD3D      0x00000400 | DSETUP_D3D /* install Direct3D, pop up dialog box on NT, if no D3D present         */
49
50#define DSETUP_DIRECTX          (DSETUP_D3D | DSETUP_DDRAW | DSETUP_DSOUND | DSETUP_DPLAY | DSETUP_DDRAWDRV | DSETUP_DSOUNDDRV | DSETUP_DPLAYSP)
51
52int WINAPI DirectXSetup( HWND hwnd, LPSTR root_path, DWORD flags );
53int WINAPI DirectXDeviceDriverSetup( HWND hwnd, LPSTR driver_class, LPSTR inf_path, LPSTR driver_path, DWORD flags );
54int WINAPI DirectXSetupIsJapan( void );
55int WINAPI DirectXSetupIsJapanNec( void );
56
57typedef int (WINAPI * LPDIRECTXSETUP)( HWND, LPSTR, DWORD );
58typedef int (WINAPI * LPDIRECTXDEVICEDRIVERSETUP)( HWND, LPSTR, LPSTR, LPSTR, DWORD );
59typedef int (WINAPI * LPDIRECTXSETUPISJAPAN)( void );
60typedef int (WINAPI * LPDIRECTXSETUPISJAPANNEC)( void );
61
62#ifdef __cplusplus
63};
64#endif
65
66#endif
67