Commit 403a820e authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard

mciqtz32: Complete MCI GetDevCaps/capability.

parent 6dadd15b
...@@ -354,10 +354,8 @@ static DWORD MCIQTZ_mciGetDevCaps(UINT wDevID, DWORD dwFlags, LPMCI_GETDEVCAPS_P ...@@ -354,10 +354,8 @@ static DWORD MCIQTZ_mciGetDevCaps(UINT wDevID, DWORD dwFlags, LPMCI_GETDEVCAPS_P
if (!wma) if (!wma)
return MCIERR_INVALID_DEVICE_ID; return MCIERR_INVALID_DEVICE_ID;
if (!(dwFlags & MCI_STATUS_ITEM)) { if (!(dwFlags & MCI_GETDEVCAPS_ITEM))
WARN("No capability item specified\n"); return MCIERR_MISSING_PARAMETER;
return MCIERR_UNRECOGNIZED_COMMAND;
}
switch (lpParms->dwItem) { switch (lpParms->dwItem) {
case MCI_GETDEVCAPS_CAN_RECORD: case MCI_GETDEVCAPS_CAN_RECORD:
...@@ -396,9 +394,44 @@ static DWORD MCIQTZ_mciGetDevCaps(UINT wDevID, DWORD dwFlags, LPMCI_GETDEVCAPS_P ...@@ -396,9 +394,44 @@ static DWORD MCIQTZ_mciGetDevCaps(UINT wDevID, DWORD dwFlags, LPMCI_GETDEVCAPS_P
lpParms->dwReturn = MAKEMCIRESOURCE(FALSE, MCI_FALSE); lpParms->dwReturn = MAKEMCIRESOURCE(FALSE, MCI_FALSE);
TRACE("MCI_GETDEVCAPS_CAN_SAVE = %08x\n", lpParms->dwReturn); TRACE("MCI_GETDEVCAPS_CAN_SAVE = %08x\n", lpParms->dwReturn);
break; break;
case MCI_DGV_GETDEVCAPS_CAN_REVERSE:
lpParms->dwReturn = MAKEMCIRESOURCE(FALSE, MCI_FALSE);
TRACE("MCI_DGV_GETDEVCAPS_CAN_REVERSE = %08x\n", lpParms->dwReturn);
break;
case MCI_DGV_GETDEVCAPS_CAN_STRETCH:
lpParms->dwReturn = MAKEMCIRESOURCE(FALSE, MCI_FALSE); /* FIXME */
TRACE("MCI_DGV_GETDEVCAPS_CAN_STRETCH = %08x\n", lpParms->dwReturn);
break;
case MCI_DGV_GETDEVCAPS_CAN_LOCK:
lpParms->dwReturn = MAKEMCIRESOURCE(FALSE, MCI_FALSE);
TRACE("MCI_DGV_GETDEVCAPS_CAN_LOCK = %08x\n", lpParms->dwReturn);
break;
case MCI_DGV_GETDEVCAPS_CAN_FREEZE:
lpParms->dwReturn = MAKEMCIRESOURCE(FALSE, MCI_FALSE);
TRACE("MCI_DGV_GETDEVCAPS_CAN_FREEZE = %08x\n", lpParms->dwReturn);
break;
case MCI_DGV_GETDEVCAPS_CAN_STR_IN:
lpParms->dwReturn = MAKEMCIRESOURCE(FALSE, MCI_FALSE);
TRACE("MCI_DGV_GETDEVCAPS_CAN_STRETCH_INPUT = %08x\n", lpParms->dwReturn);
break;
case MCI_DGV_GETDEVCAPS_HAS_STILL:
lpParms->dwReturn = MAKEMCIRESOURCE(FALSE, MCI_FALSE);
TRACE("MCI_DGV_GETDEVCAPS_HAS_STILL = %08x\n", lpParms->dwReturn);
break;
case MCI_DGV_GETDEVCAPS_CAN_TEST:
lpParms->dwReturn = MAKEMCIRESOURCE(FALSE, MCI_FALSE); /* FIXME */
TRACE("MCI_DGV_GETDEVCAPS_CAN_TEST = %08x\n", lpParms->dwReturn);
break;
case MCI_DGV_GETDEVCAPS_MAX_WINDOWS:
lpParms->dwReturn = 1;
TRACE("MCI_DGV_GETDEVCAPS_MAX_WINDOWS = %u\n", lpParms->dwReturn);
return 0;
default: default:
ERR("Unknown capability %08x\n", lpParms->dwItem); WARN("Unknown capability %08x\n", lpParms->dwItem);
return MCIERR_UNRECOGNIZED_COMMAND; /* Fall through */
case MCI_DGV_GETDEVCAPS_MAXIMUM_RATE: /* unknown to w2k */
case MCI_DGV_GETDEVCAPS_MINIMUM_RATE: /* unknown to w2k */
return MCIERR_UNSUPPORTED_FUNCTION;
} }
return MCI_RESOURCE_RETURNED; return MCI_RESOURCE_RETURNED;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment