This sample uses DirectSetup functions to install the DirectX subsystem. It shows how to use a callback function to present messages and get user input through a custom interface (a modeless dialog box).
Source: | (SDK root)\Samples\C++\Misc\DXInstall |
By default, the program passes DSETUP_TESTINSTALL to the DirectXSetup function. This means that no files are copied and the registry is not modified. To perform a real installation, delete this flag from the call.
Dinstall.exe employs a callback function to monitor the progress of installation and intercept messages. Depending on the user's preferred warning level, as tracked in g_fStatus, messages may be ignored or presented to the user in a modeless dialog box. If user input is required, the appropriate buttons are displayed and the application monitors the message queue until one of the buttons is pressed.
Although DirectX samples include Visual C++ project workspace files, you might need to verify other settings in your development environment to ensure that the samples compile properly.