DXUTGetExitCode
Microsoft DirectX 9.0 SDK Update (October 2004)

DXUTGetExitCode Function


Gets the sample framework exit code.

Syntax

INT DXUTGetExitCode(VOID);

Return Value

A sample framework exit code, which will be one of the following possible values. There is no exit code value of 1.

ValueDescription
0Successful execution.
2No IDirect3D9 object could be found.
3No IDirect3DDevice9 device could be found with the specified device settings.
4The Microsoft DirectX software development kit (SDK) media file could not be found.
5The IDirect3DDevice9 device has a non-zero reference count, meaning that some objects were not released.
6An error occurred when attempting to create an IDirect3DDevice9 device.
7An error occurred when attempting to reset an IDirect3DDevice9 device.
8An error occurred in the device creation callback function.
9An error occurred in the device creation callback function.
10The incorrect version of Microsoft Direct3D or D3DX is installed.


Remarks

The return value of this function is typically used as the return code of the application's WinMain function. Command-line tests can be performed on applications using this return code.

The following is an example of command-line usage that returns the sample framework exit code:

start /wait BasicHLSL.exe
echo %errorlevel%

Function Information

Headerdxut.h
Import libraryNone
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.