52 TRACE(
"(%p, %p, %08lx, %08x, %08x)\n",
53 phadid, hinstModule,
lParam, dwPriority, fdwAdd);
56 WARN(
"invalid parameter\n");
64 WARN(
"invalid flag\n");
71 WARN(
"invalid flag\n");
87 resultW =
acmDriverAddW(phadid, hinstModule, lParamW, dwPriority, fdwAdd);
101 TRACE(
"(%p, %p, %08lx, %08x, %08x)\n",
102 phadid, hinstModule,
lParam, dwPriority, fdwAdd);
105 WARN(
"invalid parameter\n");
113 WARN(
"invalid flag\n");
120 WARN(
"invalid flag\n");
133 ERR(
"Unable to register driver via ACM_DRIVERADDF_NAME\n");
143 fdwAdd &= ~ACM_DRIVERADDF_TYPEMASK;
151 ERR(
"Unable to register driver via ACM_DRIVERADDF_FUNCTION\n");
163 ERR(
"Unable to register driver via ACM_DRIVERADDF_NOTIFYHWND\n");
168 ERR(
"invalid flag value 0x%08x for fdwAdd\n", fdwAdd);
185 TRACE(
"(%p, %08x)\n", had, fdwClose);
188 WARN(
"invalid flag\n");
194 WARN(
"invalid handle\n");
201 for (tpad = &(padid->
pACMDriverList); *tpad; tpad = &((*tpad)->pNextACMDriver)) {
228 TRACE(
"(%p, %p, %08x)\n", hadid, padd, fdwDetails);
231 WARN(
"invalid parameter\n");
236 WARN(
"invalid parameter\n");
279 TRACE(
"(%p, %p, %08x)\n", hadid, padd, fdwDetails);
282 WARN(
"invalid parameter\n");
287 WARN(
"invalid parameter\n");
292 WARN(
"invalid flag\n");
321 TRACE(
"(%p, %08lx, %08x)\n", fnCallback, dwInstance, fdwEnum);
324 WARN(
"invalid parameter\n");
329 WARN(
"invalid flag\n");
342 if (!(*fnCallback)((HACMDRIVERID)padid, dwInstance, fdwSupport))
356 TRACE(
"(%p, %p, %08x)\n", hao, phadid, fdwDriverID);
359 WARN(
"invalid flag\n");
365 WARN(
"invalid handle\n");
370 WARN(
"invalid parameter\n");
394 TRACE(
"(%p, %04x, %08lx, %08lx\n", had, uMsg, lParam1, lParam2);
419 if (pAlias ==
NULL) {
420 WARN(
"DRV_CONFIGURE: no alias for this driver, cannot self-supply alias\n");
423 FIXME(
"DRV_CONFIGURE: reverse lookup HACMDRIVER -> HACMDRIVERID not implemented\n");
427 if (pAlias !=
NULL) {
432 const unsigned int iStructSize = 16;
435 ERR(
"OOM while supplying DRVCONFIGINFO for DRV_CONFIGURE, using NULL\n");
437 static const WCHAR drivers32[] = {
'D',
'r',
'i',
'v',
'e',
'r',
's',
'3',
'2',
'\0'};
442 if (section_name)
lstrcpyW(section_name, drivers32);
445 if (alias_name)
lstrcpyW(alias_name, pAlias);
453 ERR(
"OOM while supplying DRVCONFIGINFO for DRV_CONFIGURE, using NULL\n");
458 lParam2 = (
LPARAM)pConfigInfo;
484 WARN(
"invalid parameter\n");
497 TRACE(
"(%p, %p, %08u)\n", phad, hadid, fdwOpen);
500 WARN(
"invalid parameter\n");
505 WARN(
"invalid flag\n");
511 WARN(
"invalid handle\n");
594 *phad = (HACMDRIVER)pad;
599 WARN(
"failed: ret = %08x\n",
ret);
610 TRACE(
"(%p, %08x, %08x)\n", hadid, dwPriority, fdwPriority);
616 WARN(
"invalid flag\n");
623 WARN(
"invalid flag\n");
630 WARN(
"invalid flag\n");
640 WARN(
"ACM_DRIVERPRIORITYF_[BEGIN|END] cannot be used with any other flags\n");
644 WARN(
"priority invalid with ACM_DRIVERPRIORITYF_[BEGIN|END]\n");
648 WARN(
"non-null hadid invalid with ACM_DRIVERPRIORITYF_[BEGIN|END]\n");
672 if (!padid && !panwnd) {
673 WARN(
"invalid handle\n");
683 if (dwPriority != 1 && dwPriority != (
DWORD)-1) {
684 FIXME(
"unexpected priority %d, using sign only\n", dwPriority);
685 if ((
signed)dwPriority < 0) dwPriority = (
DWORD)-1;
686 if (dwPriority > 0) dwPriority = 1;
697 bPerformBroadcast =
TRUE;
705 bPerformBroadcast =
TRUE;
709 padid->
fdwSupport &= ~ACMDRIVERDETAILS_SUPPORTF_DISABLED;
710 bPerformBroadcast =
TRUE;
724 bPerformBroadcast =
TRUE;
728 panwnd->
fdwSupport &= ~ACMDRIVERDETAILS_SUPPORTF_DISABLED;
729 bPerformBroadcast =
TRUE;
735 if (bPerformBroadcast) {
751 TRACE(
"(%p, %08x)\n", hadid, fdwRemove);
755 if (!padid && !panwnd) {
756 WARN(
"invalid handle\n");
761 WARN(
"invalid flag\n");
ACPI_SIZE strlen(const char *String)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define HeapFree(x, y, z)
#define WideCharToMultiByte
#define MultiByteToWideChar
MMRESULT WINAPI acmDriverOpen(PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpen)
MMRESULT WINAPI acmDriverClose(HACMDRIVER had, DWORD fdwClose)
MMRESULT WINAPI acmDriverRemove(HACMDRIVERID hadid, DWORD fdwRemove)
MMRESULT WINAPI acmDriverPriority(HACMDRIVERID hadid, DWORD dwPriority, DWORD fdwPriority)
MMRESULT WINAPI acmDriverDetailsW(HACMDRIVERID hadid, PACMDRIVERDETAILSW padd, DWORD fdwDetails)
MMRESULT WINAPI acmDriverID(HACMOBJ hao, PHACMDRIVERID phadid, DWORD fdwDriverID)
MMRESULT WINAPI acmDriverEnum(ACMDRIVERENUMCB fnCallback, DWORD_PTR dwInstance, DWORD fdwEnum)
MMRESULT WINAPI acmDriverAddW(PHACMDRIVERID phadid, HINSTANCE hinstModule, LPARAM lParam, DWORD dwPriority, DWORD fdwAdd)
MMRESULT WINAPI acmDriverDetailsA(HACMDRIVERID hadid, PACMDRIVERDETAILSA padd, DWORD fdwDetails)
MMRESULT WINAPI acmDriverAddA(PHACMDRIVERID phadid, HINSTANCE hinstModule, LPARAM lParam, DWORD dwPriority, DWORD fdwAdd)
LRESULT WINAPI acmDriverMessage(HACMDRIVER had, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
PWINE_ACMNOTIFYWND MSACM_RegisterNotificationWindow(HWND hNotifyWnd, DWORD dwNotifyMsg)
PWINE_ACMNOTIFYWND MSACM_UnRegisterNotificationWindow(const WINE_ACMNOTIFYWND *panwnd)
void MSACM_WriteCurrentPriorities(void)
PWINE_ACMNOTIFYWND MSACM_GetNotifyWnd(HACMDRIVERID hDriver)
PWINE_ACMDRIVERID MSACM_RegisterDriverFromRegistry(LPCWSTR pszRegEntry)
MMRESULT MSACM_Message(HACMDRIVER had, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
void MSACM_EnableNotifications(void)
void MSACM_BroadcastNotification(void)
void MSACM_RePositionDriver(PWINE_ACMDRIVERID padid, DWORD dwPriority)
PWINE_ACMLOCALDRIVERINST MSACM_OpenLocalDriver(PWINE_ACMLOCALDRIVER paldrv, LPARAM lParam2)
PWINE_ACMDRIVERID MSACM_UnregisterDriver(PWINE_ACMDRIVERID p)
PWINE_ACMDRIVER MSACM_GetDriver(HACMDRIVER hDriver)
PWINE_ACMDRIVERID MSACM_pFirstACMDriverID
void MSACM_DisableNotifications(void)
PWINE_ACMDRIVERID MSACM_RegisterDriver(LPCWSTR pszDriverAlias, LPCWSTR pszFileName, PWINE_ACMLOCALDRIVER pLocalDriver)
PWINE_ACMOBJ MSACM_GetObj(HACMOBJ hObj, DWORD type)
PWINE_ACMLOCALDRIVER MSACM_RegisterLocalDriver(HMODULE hModule, DRIVERPROC lpDriverProc)
PWINE_ACMDRIVERID MSACM_GetDriverID(HACMDRIVERID hDriverID)
LRESULT MSACM_CloseLocalDriver(PWINE_ACMLOCALDRIVERINST paldrv)
HDRVR WINAPI OpenDriver(LPCWSTR lpDriverName, LPCWSTR lpSectionName, LPARAM lParam)
LRESULT WINAPI CloseDriver(HDRVR hDrvr, LPARAM lParam1, LPARAM lParam2)
#define memcpy(s1, s2, n)
#define DRV_QUERYCONFIGURE
#define MMSYSERR_NOTSUPPORTED
#define MMSYSERR_NODRIVER
LRESULT(CALLBACK * DRIVERPROC)(DWORD_PTR, HDRVR, UINT, LPARAM, LPARAM)
#define MMSYSERR_INVALHANDLE
#define MMSYSERR_INVALPARAM
#define MMSYSERR_INVALFLAG
DWORD WINAPI acmGetVersion(void)
#define ACM_DRIVERADDF_FUNCTION
HACMDRIVERID * PHACMDRIVERID
#define ACMDM_DRIVER_ABOUT
#define ACM_DRIVERENUMF_DISABLED
#define ACMDRIVERDETAILS_FCCCOMP_UNDEFINED
#define ACM_DRIVERADDF_GLOBAL
#define ACM_DRIVERADDF_NOTIFYHWND
#define ACM_DRIVERENUMF_NOLOCAL
BOOL(CALLBACK * ACMDRIVERENUMCB)(HACMDRIVERID hadid, DWORD_PTR dwInstance, DWORD fdwSupport)
#define ACM_DRIVERPRIORITYF_END
#define ACM_DRIVERADDF_TYPEMASK
#define ACMDM_RESERVED_LOW
#define ACM_DRIVERPRIORITYF_DISABLE
#define ACMDRIVERDETAILS_SUPPORTF_DISABLED
#define ACM_DRIVERPRIORITYF_ENABLE
#define ACMDRIVERDETAILS_FCCTYPE_AUDIOCODEC
#define ACMDRIVERDETAILS_SUPPORTF_LOCAL
#define ACM_DRIVERPRIORITYF_BEGIN
#define ACM_DRIVERADDF_NAME
#define ACMDM_DRIVER_DETAILS
static const WCHAR driverW[]
CHAR szFeatures[ACMDRIVERDETAILS_FEATURES_CHARS]
CHAR szCopyright[ACMDRIVERDETAILS_COPYRIGHT_CHARS]
CHAR szLicensing[ACMDRIVERDETAILS_LICENSING_CHARS]
CHAR szShortName[ACMDRIVERDETAILS_SHORTNAME_CHARS]
CHAR szLongName[ACMDRIVERDETAILS_LONGNAME_CHARS]
WCHAR szCopyright[ACMDRIVERDETAILS_COPYRIGHT_CHARS]
WCHAR szLongName[ACMDRIVERDETAILS_LONGNAME_CHARS]
WCHAR szShortName[ACMDRIVERDETAILS_SHORTNAME_CHARS]
WCHAR szLicensing[ACMDRIVERDETAILS_LICENSING_CHARS]
WCHAR szFeatures[ACMDRIVERDETAILS_FEATURES_CHARS]
PWINE_ACMLOCALDRIVER pLocalDriver
PWINE_ACMDRIVER pACMDriverList
PWINE_ACMDRIVERID pNextACMDriverID
PWINE_ACMDRIVERID pPrevACMDriverID
PWINE_ACMLOCALDRIVERINST pLocalDrvrInst
PWINE_ACMDRIVER pNextACMDriver
PWINE_ACMDRIVERID pACMDriverID
LPCWSTR lpszDCISectionName
#define WINE_ACMOBJ_DONTCARE
#define WINE_ACMOBJ_DRIVER