Initializing and Configuring Multimedia Device Drivers

To activate an installed driver, the multimedia driver must receive an initialization message, DRV_OPEN. The DRV_OPEN message sets up an initial session in which the instance information is NULL. This session keeps the driver active as long as it is installed. Because this session remains open for a long time, it is important that no critical resources be allocated and left allocated for the life of the session.

If your device driver supports more than one interrupt-level or port assignment, it should allow user configuration through the Multimedia option in the Control Panel. Through the DRV_CONFIGURE message, installable drivers can supply a configuration dialog box for this purpose. The dialog box should display the name and version number of your device driver.

In addition to the DRV_CONFIGURE message, device drivers might support driver-specific messages. For example, video-capture drivers also use the DVM_DIALOG message to display dialog boxes for configuring various channels. For more information about the messages for displaying additional dialog boxes, see the main topics describing specific device drivers.

Installable drivers can supply a configuration dialog box for users to access through the Drivers option in the Control Panel. The Multimedia option sends the DRV_CONFIGURE message to your driver to display the dialog box. The dialog box should display the name and version number of your device driver. If your device driver supports different interrupt-level and port assignments, it should also support user configuration through the Multimedia option in the Control Panel.