Return Values

The DirectXSetup function can return the following values.

typedef enum Return_Values
{
    DSETUPERR_SUCCESS = 0,
    DSETUPERR_SUCCESS_RESTART = 1,
    DSETUPERR_BADWINDOWSVERSION = -1,
    DSETUPERR_SOURCEFILENOTFOUND = -2,
    DSETUPERR_NOCOPY = -5,
    DSETUPERR_OUTOFDISKSPACE = -6,
    DSETUPERR_CANTFINDINF = -7,
    DSETUPERR_CANTFINDDIR = -8,
    DSETUPERR_INTERNAL = -9,
    DSETUPERR_UNKNOWNOS = -11,
    DSETUPERR_NOTADMIN = -15,
    DSETUPERR_UNSUPPORTEDPROCESSOR = -16,
    DSETUPERR_CABDOWNLOADFAIL = -19,
    DSETUPERR_DXCOMPONENTFILEINUSE = -20,
    DSETUPERR_UNTRUSTEDCABINETFILE = -21,
} Return Values;

Constants

DSETUPERR_SUCCESS
Setup was successful, and no restart is required.
DSETUPERR_SUCCESS_RESTART
Setup was successful, and a restart is required.
DSETUPERR_BADWINDOWSVERSION
Microsoft DirectX does not support the Microsoft Windows version on the system.
DSETUPERR_SOURCEFILENOTFOUND
One of the required source files could not be found.
DSETUPERR_NOCOPY
A file's version could not be verified or was incorrect.
DSETUPERR_OUTOFDISKSPACE
The setup program ran out of disk space during installation.
DSETUPERR_CANTFINDINF
A required .inf file could not be found.
DSETUPERR_CANTFINDDIR
The setup program could not find the working directory.
DSETUPERR_INTERNAL
An internal error occurred.
DSETUPERR_UNKNOWNOS
The operating system is unknown.
DSETUPERR_NOTADMIN
The current user does not have administrative privileges. On Windows 2000 systems, the user may need administrative privileges for some setup operations.
DSETUPERR_UNSUPPORTEDPROCESSOR
The processor type is unsupported. DirectX supports only Pentium or K6-compatible or higher processors.
DSETUPERR_CABDOWNLOADFAIL
The cabinet (.cab) file failed to load.
DSETUPERR_DXCOMPONENTFILEINUSE
The cabinet (.cab) file was in use.
DSETUPERR_UNTRUSTEDCABINETFILE
The cabinet (.cab) file is not signed.