Microsoft DirectX 8.1 (Visual Basic) |
Installs one or more Microsoft® DirectX® components.
int WINAPI DirectXSetup( HWND hWnd, LPSTR lpszRootPath, DWORD dwFlags );
DSETUP_D3D | Obsolete. DirectX programs that use this flag install all DirectX components. |
DSETUP_DDRAW | Obsolete. DirectX programs that use this flag install all DirectX components. |
DSETUP_DDRAWDRV | Not used in DirectX 8.1. |
DSETUP_DINPUT | Obsolete. DirectX programs that use this flag install all DirectX components. |
DSETUP_DIRECTX | Installs DirectX run-time components, as well as display and audio drivers compatible with DirectX. |
DSETUP_DIRECTXSETUP | Obsolete. DirectX programs that use this flag install all DirectX components. |
DSETUP_DPLAY | Obsolete. DirectX programs that use this flag install all DirectX components. |
DSETUP_DPLAYSP | Obsolete. DirectX programs that use this flag install all DirectX components. |
DSETUP_DSOUND | Obsolete. DirectX programs that use this flag install all DirectX components. |
DSETUP_DSOUNDDRV | Not used in DirectX 8.1. |
DSETUP_DXCORE | Installs DirectX run-time components. Does not install DirectX-compatible display and audio drivers. |
DSETUP_TESTINSTALL | Performs a test installation. Does not install new components. |
DSETUP_USEROLDERFLAG | Enables the return of –14, which means that the installed version of DirectX is newer than the version being installed. |
If this function succeeds, it returns one of the following success codes:
DSETUPERR_SUCCESS | Success. |
DSETUPERR_SUCCESS_RESTART | Success, but the user must restart the system for the changes to take effect. |
If it fails, it returns an error value. For a list of possible return values, see Return Values.
Before using the DirectXSetup function in your setup program, you should first ensure that the system has enough available disk space. The maximum amount of space that you need to set up DirectX 8.1 is 20 MB for Microsoft® Windows® 95, Windows 98, and Windows Millennium Edition (Windows Me) systems, and 25 MB for Windows 2000.
Windows NT/2000/XP: Requires Windows NT 4.0 SP3 or later.
Windows 98/Me: Requires Windows 98 or later. Available as a redistributable for Windows 98.
Header: Declared in Dsetup.h.
Import Library: Use Dsetup.lib.