|
acmDriverAdd
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(
LPHACMDRIVERID phadid,
|
| HINSTANCE hinstModule,
|
| LPARAM lParam,
|
| DWORD dwPriority,
|
| DWORD fdwAdd
|
| );
|
|
Parameters
phadid
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.
hinstModule
Handle of the instance of the module whose executable or dynamic-link library
(DLL) contains the driver entry function.
lParam
Driver function address or a notification window handle, depending on the fdwAdd flags.
dwPriority
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.
fdwAdd
Flags for adding ACM drivers. The following values are defined:
ACM_DRIVERADDF_FUNCTION
The lParam parameter is a driver function address conforming to the acmDriverProc prototype. The function may reside in either an executable or DLL file.
ACM_DRIVERADDF_GLOBAL
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.
ACM_DRIVERADDF_LOCAL
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.
ACM_DRIVERADDF_NOTIFYHWND
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:
MMSYSERR_INVALFLAG
| At least one flag is invalid.
| MMSYSERR_INVALPARAM
| At least one parameter is invalid.
| MMSYSERR_NOMEM
| The system is unable to allocate resources.
|
See Also
acmDriverProc, acmDriverPriority
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|