The DirectXSetup function installs one or more DirectX components.
int WINAPI DirectXSetup(
HWND hWnd,
LPSTR lpszRootPath,
DWORD dwFlags
);
DSETUP_D3D | Obsolete. DirectX 3 programs that use this flag will install all DirectX components. |
DSETUP_DDRAW | Obsolete. DirectX 3 programs that use this flag will install all DirectX components. |
DSETUP_DDRAWDRV | Installs display drivers provided by Microsoft. |
DSETUP_DINPUT | Obsolete. DirectX 3 programs that use this flag will install all DirectX components. |
DSETUP_DIRECTX | Installs DirectX runtime components as well as DirectX-compatible display and audio drivers. |
DSETUP_DIRECTXSETUP | Obsolete. DirectX 3 programs that use this flag will install all DirectX components. |
DSETUP_DPLAY | Obsolete. DirectX 3 programs that use this flag will install all DirectX components. |
DSETUP_DPLAYSP | Obsolete. DirectX 3 programs that use this flag will install all DirectX components. |
DSETUP_DSOUND | Obsolete. DirectX 3 programs that use this flag will install all DirectX components. |
DSETUP_DSOUNDDRV | Installs audio drivers provided by Microsoft. |
DSETUP_DXCORE | Installs DirectX runtime components. Does not install DirectX-compatible display and audio drivers. |
DSETUP_TESTINSTALL | Performs a test installation. Does not actually install new components. |
If this function is successful, it returns SUCCESS.
If it is not successful, it returns an error code. For a list of possible return codes, see Return Values.
Before you use the DirectXSetup function in your setup program, you should ensure that there is at least 15 MB of available disk space on the user's system. This is the maximum space required for DirectX to set up the appropriate files. If the user's system already contains the DirectX files, this space is not needed.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in dsetup.h.
Import Library: Use dsetup.lib.
Using the DirectXSetup Function.