Quick Info


The acmDriverAdd function adds a driver to the list of available ACM drivers. The driver type and location are dependent on the flags used to add ACM drivers. After a driver is successfully added, the driver entry function will receive ACM driver messages.

MMRESULT acmDriverAdd(


HINSTANCE hinstModule,

LPARAM lParam,

DWORD dwPriority,

DWORD fdwAdd




Address that is filled with a handle identifying the installed driver. This handle is used to identify the driver in calls to other ACM functions.


Handle of the instance of the module whose executable or dynamic-link library (DLL) contains the driver entry function.


Driver function address or a notification window handle, depending on the fdwAdd flags.


Window message to send for notification broadcasts. This parameter is used only with the ACM_DRIVERADDF_NOTIFYHWND flag. All other flags require this member to be set to zero.


Flags for adding ACM drivers. The following values are defined:


The lParam parameter is a driver function address conforming to the acmDriverProc prototype. The function may reside in either an executable or DLL file.


Provided for compatibility with 16-bit applications. For the Win32 API, ACM drivers added by the acmDriverAdd function can be used only by the application that added the driver. This is true whether or not ACM_DRIVERADDF_GLOBAL is specified. For more information, see Adding Drivers Within an Application.


The ACM automatically gives a local driver higher priority than a global driver when searching for a driver to satisfy a function call. For more information, see Adding Drivers Within an Application.


The lParam parameter is a handle of a notification window that receives messages when changes to global driver priorities and states are made. The window message to receive is defined by the application and must be passed in dwPriority. The wParam and lParam parameters passed with the window message are reserved for future use and should be ignored. ACM_DRIVERADDF_GLOBAL cannot be specified in conjunction with this flag. For more information about driver priorities, see the description for the acmDriverPriority function.

Return Values

Returns zero if successful or an error otherwise. Possible error values include the following:

At least one flag is invalid.
At least one parameter is invalid.
The system is unable to allocate resources.

See Also

, acmDriverPriority

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database