Platform SDK: DirectX |
This topic pertains only to application development in C++. See DirectPlay Visual Basic Samples.
The Override sample is a simple demonstration of how to override the DirectPlay service provider dialogs.
Source: (SDK root)\Samples\Multimedia\DPlay\Src\Override
Executable: (SDK root)\Samples\Multimedia\DPlay\Bin\Override.exe
When the program begins, select a service provider. Once you make your selection, the application displays a custom dialog box that it creates to collect the information needed for that service provider. If you select an unknown service provider, then the service provider's dialog cannot be overridden and the Override application simply displays the default dialog box.
Once the service provider information has been collected from the user, it must be formatted into a DirectPlay address. This can be used to initialize the service provider.
The IDirectPlay4::EnumSessions and IDirectPlay4::Open methods must be called with the dwFlags parameter set to the value DPENUMSESSIONS_RETURNSTATUS. This will suppress any status dialogs that may pop up to show to progress of the connection.