BOOL
DrvLibInit(
HINSTANCE hModule,
ULONG Reason,
PCONTEXT pContext
);
The DrvLibInit function initializes drvlib.lib for use with the calling user-mode audio driver. User-mode audio drivers call this function before they begin calling other functions in drvlib.lib. They call the function again prior to being unloaded.
Returns TRUE if the operation succeeds. Otherwise returns FALSE.
When the driver’s DriverProc function receives a DRV_LOAD message, it should call DrvLibInit with a Reason value of DLL_PROCESS_ATTACH.
When the driver’s DriverProc function receives a DRV_FREE message, it should call DrvLibInit with a Reason value of DLL_PROCESS_DETACH.
For additional information, see Installing and Configuring your Driver, Using drvlib.lib.