Return Values

The DirectXSetup function can return the following values.

DSETUPERR_BADSOURCESIZE

A file's size could not be verified or was incorrect.

DSETUPERR_BADSOURCETIME

A file's date and time could not be verified or were incorrect.

DSETUPERR_BADWINDOWSVERSION

DirectX does not support the Windows version on the system.

DSETUPERR_CANTFINDDIR

The setup program could not find the working directory.

DSETUPERR_CANTFINDINF

A required .inf file could not be found.

DSETUPERR_INTERNAL

An internal error occurred.

DSETUPERR_NOCOPY

A file's version could not be verified or was incorrect.

DSETUPERR_NOTPREINSTALLEDONNT

The version of Windows NT on the system does not have all the DirectX 3 components installed.

DSETUPERR_OUTOFDISKSPACE

The setup program ran out of disk space during installation.

DSETUPERR_SOURCEFILENOTFOUND

One of the required source files could not be found.

DSETUPERR_UNKNOWNOS

The operating system on your system is not currently supported.

DSETUPERR_USERHITCANCEL

The Cancel button was pressed before the application was fully installed.

SUCCESS

A 0 is returned if the setup was successful and no restart is required.

A 1 is returned if the setup was successful and a restart is required.