|
acmDriverPriority
The acmDriverPriority function modifies the priority and state of an ACM driver.
MMRESULT acmDriverPriority(
HACMDRIVERID hadid,
|
| DWORD dwPriority,
|
| DWORD fdwPriority
|
| );
|
|
Parameters
hadid
Handle of the driver identifier of an installed ACM driver. If the
ACM_DRIVERPRIORITYF_BEGIN and ACM_DRIVERPRIORITYF_END flags are specified, this parameter
must be NULL.
dwPriority
New priority for a global ACM driver identifier. A zero value specifies that
the priority of the driver identifier should remain unchanged. A value of 1
specifies that the driver should be placed as the highest search priority driver. A
value of 1 specifies that the driver should be placed as the lowest search priority
driver. Priorities are used only for global drivers.
fdwPriority
Flags for setting priorities of ACM drivers. The following values are defined:
ACM_DRIVERPRIORITYF_BEGIN
Change notification broadcasts should be deferred. An application must
reenable notification broadcasts as soon as possible with the ACM_DRIVERPRIORITYF_END
flag. Note that hadid must be NULL, dwPriority must be zero, and only the ACM_DRIVERPRIORITYF_BEGIN flag can be set.
ACM_DRIVERPRIORITYF_DISABLE
ACM driver should be disabled if it is currently enabled. Disabling a disabled
driver does nothing.
ACM_DRIVERPRIORITYF_ENABLE
ACM driver should be enabled if it is currently disabled. Enabling an enabled
driver does nothing.
ACM_DRIVERPRIORITYF_END
Calling task wants to reenable change notification broadcasts. An application
must call acmDriverPriority with ACM_DRIVERPRIORITYF_END for each successful call with the
ACM_DRIVERPRIORITYF_BEGIN flag. Note that hadid must be NULL, dwPriority must be zero, and only the ACM_DRIVERPRIORITYF_END flag can be set.
Return Values
Returns zero if successful or an error otherwise. Possible error values
include the following:
MMSYSERR_ALLOCATED
| The deferred broadcast lock is owned by a different task.
| MMSYSERR_INVALFLAG
| At least one flag is invalid.
| MMSYSERR_INVALHANDLE
| The specified handle is invalid.
| MMSYSERR_INVALPARAM
| At least one parameter is invalid.
| MMSYSERR_NOTSUPPORTED
| The requested operation is not supported for the specified driver. For
example, local and notify driver identifiers do not support priorities (but can be
enabled and disabled). If an application specifies a nonzero value for dwPriority for local and notify driver identifiers, this error will be returned.
|
Remarks
All driver identifiers can be enabled and disabled, including global, local
and notification driver identifiers.
If more than one global driver identifier needs to be enabled, disabled or
shifted in priority, an application should defer change notification broadcasts by
using the ACM_DRIVERPRIORITYF_BEGIN flag. A single change notification will be
broadcast when the ACM_DRIVERPRIORITYF_END flag is specified.
An application can use the function with the acmMetrics ACM_METRIC_DRIVER_PRIORITY metric index to retrieve the current priority of a
global driver. Drivers are always enumerated from highest to lowest priority
by the acmDriverEnum function.
All enabled driver identifiers will receive change notifications. An
application can register a notification message by using the acmDriverAdd function in conjunction with the ACM_DRIVERADDF_NOTIFYHWND flag. Changes to
nonglobal driver identifiers will not be broadcast.
Priorities are simply used for the search order when an application does not
specify a driver. Boosting the priority of a driver will have no effect on the
performance of a driver.
See Also
acmMetrics, acmDriverEnum, acmDriverAdd
| 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
|