BOOL
DrvConfigureDriver(
PREG_ACCESS RegAccess,
LPTSTR DriverName,
SOUND_KERNEL_MODE_DRIVER_TYPE DriverType,
BOOL (*SetParms)(PVOID),
PVOID Context
);
The DrvConfigureDriver function opens a connection to the service control manager, creates a kernel-mode driver service for the specified driver, and loads the kernel-mode driver.
Value |
Definition |
SoundDriverTypeNormal |
Adds kernel-mode driver to “base” load group. |
SoundDriverTypeSynth |
Adds kernel-mode driver to “Synthesizer Drivers” load group. |
The “Synthesizer Drivers” group is unknown to Windows NT and therefore is guaranteed to be loaded last.
Returns TRUE if the operation succeeds. Otherwise returns FALSE.
The structure pointed to by RegAccess must be a single, globally-defined REG_ACCESS structure that the driver uses with all calls to drvlib.lib functions requiring a RegAccess parameter.
The function performs the following operations, in order:
Typically, a user-mode driver calls DrvConfigureDriver from its DriverProc function when processing a DRV_CONFIGURE or DRV_INSTALL command, after obtaining user-specified configuration parameters from a dialog box.
After DrvConfigureDriver returns, call DrvCloseServiceManager.
For additional information, see Installing and Configuring your Driver, Using drvlib.lib.