acmDriverOpen(3mms) — Subroutines
Name
acmDriverOpen --- Open the specified ACM driver and return a driver-instance handle that can be used to communicate with the driver
Syntax
#include <mme/mme_api.h>
MMRESULT acmDriverOpen(LPHACMDRIVER phad,
HACMDRIVERID hadid,
DWORD fdwOpen)
Arguments
LPHACMDRIVER phad
Specifies a pointer to a HACMDRIVER handle that will receive the new driver-instance handle that can be used to communicate with the driver.
HACMDRIVERID hadid
Specifies the handle to the driver identifier of an installed and enabled ACM driver.
DWORD fdwOpen
Is not used and must be set to zero.
Description
The acmDriverOpen function opens the specified Audio Compression Manager (ACM) driver and returns a driver-instance handle that can be used to communicate with the driver.
Extensions
None.
Return Values
Returns zero if the function was successful; otherwise, it returns a nonzero error number or one of the following error codes:
MMSYSERR_INVALHANDLE@T{ Specified handle is invalid. T} MMSYSERR_INVALPARAM@T{ One or more arguments passed is invalid. T} MMSYSERR_INVALFLAG@T{ One or more flags is invalid. T} MMSYSERR_NOTENABLED@T{ The driver is not enabled. T} MMSYSERR_NOMEM@T{ Unable to allocate resources. T}