1999-03-15 16:40:27 +01:00
|
|
|
/* -*- tab-width: 8; c-basic-offset: 4 -*- */
|
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
/*
|
|
|
|
* Digital video MCI Wine Driver
|
|
|
|
*
|
|
|
|
* Copyright 1999 Eric POUECH
|
|
|
|
*/
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
#include <string.h>
|
1999-04-22 17:26:11 +02:00
|
|
|
#include "winuser.h"
|
1999-09-05 18:44:38 +02:00
|
|
|
#include "mmddk.h"
|
1999-02-13 13:38:09 +01:00
|
|
|
#include "user.h"
|
|
|
|
#include "driver.h"
|
1999-03-15 16:40:27 +01:00
|
|
|
#include "digitalv.h"
|
1999-07-15 16:43:13 +02:00
|
|
|
#include "debugtools.h"
|
1999-02-13 13:38:09 +01:00
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
DEFAULT_DEBUG_CHANNEL(mciavi)
|
1999-04-19 16:56:29 +02:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
typedef struct {
|
1999-05-02 12:21:49 +02:00
|
|
|
UINT wDevID;
|
1999-02-13 13:38:09 +01:00
|
|
|
int nUseCount; /* Incremented for each shared open */
|
|
|
|
BOOL16 fShareable; /* TRUE if first open was shareable */
|
|
|
|
WORD wNotifyDeviceID; /* MCI device ID with a pending notification */
|
|
|
|
HANDLE16 hCallback; /* Callback handle for pending notification */
|
1999-02-26 12:11:13 +01:00
|
|
|
HMMIO hFile; /* mmio file handle open as Element */
|
1999-03-15 16:40:27 +01:00
|
|
|
WORD wStatus; /* One of MCI_MODE_XXX */
|
1999-02-26 12:11:13 +01:00
|
|
|
MCI_OPEN_PARMSA openParms;
|
1999-02-13 13:38:09 +01:00
|
|
|
DWORD dwTimeFormat;
|
|
|
|
} WINE_MCIAVI;
|
|
|
|
|
|
|
|
/*======================================================================*
|
|
|
|
* MCI AVI implemantation *
|
|
|
|
*======================================================================*/
|
|
|
|
|
1999-05-02 12:21:49 +02:00
|
|
|
/**************************************************************************
|
|
|
|
* AVI_drvOpen [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_drvOpen(LPSTR str, LPMCI_OPEN_DRIVER_PARMSA modp)
|
|
|
|
{
|
1999-07-15 16:43:13 +02:00
|
|
|
WINE_MCIAVI* wma = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(WINE_MCIAVI));
|
1999-05-02 12:21:49 +02:00
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
if (!wma)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
wma->wDevID = modp->wDeviceID;
|
|
|
|
mciSetDriverData(wma->wDevID, (DWORD)wma);
|
1999-07-24 12:45:24 +02:00
|
|
|
modp->wCustomCommandTable = MCI_NO_COMMAND_TABLE;
|
1999-07-15 16:43:13 +02:00
|
|
|
modp->wType = MCI_DEVTYPE_SEQUENCER;
|
|
|
|
return modp->wDeviceID;
|
1999-05-02 12:21:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* MCIAVI_drvClose [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_drvClose(DWORD dwDevID)
|
|
|
|
{
|
1999-07-15 16:43:13 +02:00
|
|
|
WINE_MCIAVI* wma = (WINE_MCIAVI*)mciGetDriverData(dwDevID);
|
1999-05-02 12:21:49 +02:00
|
|
|
|
|
|
|
if (wma) {
|
1999-07-15 16:43:13 +02:00
|
|
|
HeapFree(GetProcessHeap(), 0, wma);
|
|
|
|
mciSetDriverData(dwDevID, 0);
|
1999-05-02 12:21:49 +02:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
/**************************************************************************
|
|
|
|
* AVI_mciGetOpenDev [internal]
|
|
|
|
*/
|
|
|
|
static WINE_MCIAVI* AVI_mciGetOpenDev(UINT16 wDevID)
|
|
|
|
{
|
1999-07-15 16:43:13 +02:00
|
|
|
WINE_MCIAVI* wma = (WINE_MCIAVI*)mciGetDriverData(wDevID);
|
1999-05-02 12:21:49 +02:00
|
|
|
|
|
|
|
if (wma == NULL || wma->nUseCount == 0) {
|
1999-07-15 16:43:13 +02:00
|
|
|
WARN("Invalid wDevID=%u\n", wDevID);
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
1999-05-02 12:21:49 +02:00
|
|
|
return wma;
|
1999-02-13 13:38:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static DWORD AVI_mciStop(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms);
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciOpen [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_OPEN_PARMSA lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-07-15 16:43:13 +02:00
|
|
|
WINE_MCIAVI* wma = (WINE_MCIAVI*)mciGetDriverData(wDevID);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lX, %p) : semi-stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
1999-05-02 12:21:49 +02:00
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
if (wma->nUseCount > 0) {
|
|
|
|
/* The driver is already open on this channel */
|
|
|
|
/* If the driver was opened shareable before and this open specifies */
|
|
|
|
/* shareable then increment the use count */
|
|
|
|
if (wma->fShareable && (dwFlags & MCI_OPEN_SHAREABLE))
|
|
|
|
++wma->nUseCount;
|
|
|
|
else
|
|
|
|
return MCIERR_MUST_USE_SHAREABLE;
|
|
|
|
} else {
|
|
|
|
wma->nUseCount = 1;
|
|
|
|
wma->fShareable = dwFlags & MCI_OPEN_SHAREABLE;
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_OPEN_ELEMENT) {
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_OPEN_ELEMENT !\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
/* return MCIERR_NO_ELEMENT_ALLOWED; */
|
|
|
|
}
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
wma->openParms.dwCallback = lpParms->dwCallback;
|
|
|
|
wma->openParms.wDeviceID = (WORD)lpParms->wDeviceID;
|
|
|
|
wma->openParms.lpstrDeviceType = lpParms->lpstrDeviceType;
|
|
|
|
wma->openParms.lpstrElementName = lpParms->lpstrElementName;
|
|
|
|
wma->openParms.lpstrAlias = lpParms->lpstrAlias;
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
wma->wNotifyDeviceID = lpParms->wDeviceID;
|
|
|
|
/* FIXME: do real open */
|
1999-03-15 16:40:27 +01:00
|
|
|
wma->wStatus = MCI_MODE_STOP;
|
1999-02-13 13:38:09 +01:00
|
|
|
wma->dwTimeFormat = MCI_FORMAT_TMSF;
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciClose [internal]
|
|
|
|
*/
|
1999-02-13 13:38:09 +01:00
|
|
|
static DWORD AVI_mciClose(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lX, %p) : semi-stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
if (wma->nUseCount == 1) {
|
|
|
|
AVI_mciStop(wDevID, 0, NULL);
|
|
|
|
/* FIXME: do real closing */
|
|
|
|
}
|
|
|
|
wma->nUseCount--;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciPlay [internal]
|
|
|
|
*/
|
1999-02-13 13:38:09 +01:00
|
|
|
static DWORD AVI_mciPlay(UINT16 wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms)
|
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
wma->wStatus = MCI_MODE_PLAY;
|
|
|
|
if (lpParms && (dwFlags & MCI_NOTIFY)) {
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
1999-03-15 16:40:27 +01:00
|
|
|
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
|
|
|
wma->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
|
|
|
}
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciRecord [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciRecord(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_RECORD_PARMS lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
wma->wStatus = MCI_MODE_RECORD;
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciStop [internal]
|
|
|
|
*/
|
1999-02-13 13:38:09 +01:00
|
|
|
static DWORD AVI_mciStop(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
wma->wStatus = MCI_MODE_STOP;
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciPause [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciPause(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
wma->wStatus = MCI_MODE_PAUSE;
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciResume [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciResume(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
wma->wStatus = MCI_MODE_PLAY;
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciSeek [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciSeek(UINT16 wDevID, DWORD dwFlags, LPMCI_SEEK_PARMS lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciSet [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciSet(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_SET_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
if (dwFlags & MCI_SET_TIME_FORMAT) {
|
|
|
|
switch (lpParms->dwTimeFormat) {
|
|
|
|
case MCI_FORMAT_MILLISECONDS:
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_FORMAT_MILLISECONDS !\n");
|
1999-03-15 16:40:27 +01:00
|
|
|
wma->dwTimeFormat = MCI_FORMAT_MILLISECONDS;
|
|
|
|
break;
|
|
|
|
case MCI_FORMAT_FRAMES:
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_FORMAT_FRAMES !\n");
|
1999-03-15 16:40:27 +01:00
|
|
|
wma->dwTimeFormat = MCI_FORMAT_FRAMES;
|
|
|
|
break;
|
|
|
|
default:
|
1999-07-15 16:43:13 +02:00
|
|
|
WARN("Bad time format %lu!\n", lpParms->dwTimeFormat);
|
1999-03-15 16:40:27 +01:00
|
|
|
return MCIERR_BAD_TIME_FORMAT;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (dwFlags & MCI_SET_DOOR_OPEN) {
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("No support for door open !\n");
|
1999-03-15 16:40:27 +01:00
|
|
|
return MCIERR_UNSUPPORTED_FUNCTION;
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_SET_DOOR_CLOSED) {
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("No support for door close !\n");
|
1999-03-15 16:40:27 +01:00
|
|
|
return MCIERR_UNSUPPORTED_FUNCTION;
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_SET_ON) {
|
1999-07-15 16:43:13 +02:00
|
|
|
char buffer[256];
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
strcpy(buffer, "MCI_SET_ON:");
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (dwFlags & MCI_SET_VIDEO) {
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, " video", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_SET_AUDIO) {
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, " audio", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
if (lpParms->dwAudio & MCI_SET_AUDIO_ALL)
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, " all", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
if (lpParms->dwAudio & MCI_SET_AUDIO_LEFT)
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, " left", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
if (lpParms->dwAudio & MCI_SET_AUDIO_RIGHT)
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, " right", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_SET_SEEK_EXACTLY) {
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, " seek_exactly", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("%s\n", buffer);
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (dwFlags & MCI_SET_OFF) {
|
1999-07-15 16:43:13 +02:00
|
|
|
char buffer[256];
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
strcpy(buffer, "MCI_SET_OFF:");
|
1999-03-15 16:40:27 +01:00
|
|
|
if (dwFlags & MCI_SET_VIDEO) {
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, " video", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_SET_AUDIO) {
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, " audio", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
if (lpParms->dwAudio & MCI_SET_AUDIO_ALL)
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, " all", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
if (lpParms->dwAudio & MCI_SET_AUDIO_LEFT)
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, " left", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
if (lpParms->dwAudio & MCI_SET_AUDIO_RIGHT)
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, " right", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_SET_SEEK_EXACTLY) {
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, " seek_exactly", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("%s\n", buffer);
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_SET_FILEFORMAT) {
|
|
|
|
LPSTR str = "save";
|
|
|
|
if (dwFlags & MCI_DGV_SET_STILL)
|
|
|
|
str = "capture";
|
|
|
|
|
|
|
|
switch (lpParms->dwFileFormat) {
|
1999-07-15 16:43:13 +02:00
|
|
|
case MCI_DGV_FF_AVI: TRACE("Setting file format (%s) to 'AVI'\n", str); break;
|
|
|
|
case MCI_DGV_FF_AVSS: TRACE("Setting file format (%s) to 'AVSS'\n", str); break;
|
|
|
|
case MCI_DGV_FF_DIB: TRACE("Setting file format (%s) to 'DIB'\n", str); break;
|
|
|
|
case MCI_DGV_FF_JFIF: TRACE("Setting file format (%s) to 'JFIF'\n", str); break;
|
|
|
|
case MCI_DGV_FF_JPEG: TRACE("Setting file format (%s) to 'JPEG'\n", str); break;
|
|
|
|
case MCI_DGV_FF_MPEG: TRACE("Setting file format (%s) to 'MPEG'\n", str); break;
|
|
|
|
case MCI_DGV_FF_RDIB: TRACE("Setting file format (%s) to 'RLE DIB'\n", str); break;
|
|
|
|
case MCI_DGV_FF_RJPEG: TRACE("Setting file format (%s) to 'RJPEG'\n", str); break;
|
|
|
|
default: TRACE("Setting unknown file format (%s): %ld\n", str, lpParms->dwFileFormat);
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (dwFlags & MCI_DGV_SET_SPEED) {
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("Setting speed to %ld\n", lpParms->dwSpeed);
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciStatus [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciStatus(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_STATUS_PARMSA lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
1999-07-24 12:45:24 +02:00
|
|
|
DWORD ret = 0;
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
if (dwFlags & MCI_STATUS_ITEM) {
|
|
|
|
switch (lpParms->dwItem) {
|
|
|
|
case MCI_STATUS_CURRENT_TRACK:
|
|
|
|
lpParms->dwReturn = 1;
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_STATUS_CURRENT_TRACK => %lu\n", lpParms->dwReturn);
|
1999-03-15 16:40:27 +01:00
|
|
|
break;
|
|
|
|
case MCI_STATUS_LENGTH:
|
|
|
|
if (dwFlags & MCI_TRACK) {
|
|
|
|
/* lpParms->dwTrack contains track # */
|
|
|
|
lpParms->dwReturn = 0x1234;
|
|
|
|
} else {
|
|
|
|
lpParms->dwReturn = 0x4321;
|
|
|
|
}
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_STATUS_LENGTH => %lu\n", lpParms->dwReturn);
|
1999-03-15 16:40:27 +01:00
|
|
|
break;
|
|
|
|
case MCI_STATUS_MODE:
|
1999-07-24 12:45:24 +02:00
|
|
|
lpParms->dwReturn = MAKEMCIRESOURCE(wma->wStatus, wma->wStatus);
|
|
|
|
ret = MCI_RESOURCE_RETURNED;
|
|
|
|
TRACE("MCI_STATUS_MODE => %u\n", LOWORD(lpParms->dwReturn));
|
1999-03-15 16:40:27 +01:00
|
|
|
break;
|
|
|
|
case MCI_STATUS_MEDIA_PRESENT:
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_STATUS_MEDIA_PRESENT => TRUE\n");
|
1999-07-24 12:45:24 +02:00
|
|
|
lpParms->dwReturn = MAKEMCIRESOURCE(TRUE, MCI_TRUE);
|
|
|
|
ret = MCI_RESOURCE_RETURNED;
|
1999-03-15 16:40:27 +01:00
|
|
|
break;
|
|
|
|
case MCI_STATUS_NUMBER_OF_TRACKS:
|
|
|
|
lpParms->dwReturn = 3;
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_STATUS_NUMBER_OF_TRACKS => %lu\n", lpParms->dwReturn);
|
1999-03-15 16:40:27 +01:00
|
|
|
break;
|
|
|
|
case MCI_STATUS_POSITION:
|
|
|
|
/* FIXME: do I need to use MCI_TRACK ? */
|
|
|
|
lpParms->dwReturn = 0x0123;
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_STATUS_POSITION %s => %lu\n",
|
1999-03-15 16:40:27 +01:00
|
|
|
(dwFlags & MCI_STATUS_START) ? "start" : "current", lpParms->dwReturn);
|
|
|
|
break;
|
|
|
|
case MCI_STATUS_READY:
|
1999-07-24 12:45:24 +02:00
|
|
|
lpParms->dwReturn = (wma->wStatus == MCI_MODE_NOT_READY) ?
|
|
|
|
MAKEMCIRESOURCE(FALSE, MCI_FALSE) : MAKEMCIRESOURCE(TRUE, MCI_TRUE);
|
|
|
|
ret = MCI_RESOURCE_RETURNED;
|
|
|
|
TRACE("MCI_STATUS_READY = %u\n", LOWORD(lpParms->dwReturn));
|
1999-03-15 16:40:27 +01:00
|
|
|
break;
|
|
|
|
case MCI_STATUS_TIME_FORMAT:
|
1999-07-24 12:45:24 +02:00
|
|
|
lpParms->dwReturn = MAKEMCIRESOURCE(wma->dwTimeFormat, wma->dwTimeFormat);
|
|
|
|
TRACE("MCI_STATUS_TIME_FORMAT => %u\n", LOWORD(lpParms->dwReturn));
|
|
|
|
ret = MCI_RESOURCE_RETURNED;
|
1999-03-15 16:40:27 +01:00
|
|
|
break;
|
|
|
|
default:
|
1999-07-24 12:45:24 +02:00
|
|
|
FIXME("Unknowm command %08lX !\n", lpParms->dwItem);
|
1999-03-15 16:40:27 +01:00
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
|
|
|
}
|
|
|
|
} else {
|
1999-07-15 16:43:13 +02:00
|
|
|
WARN("No Status-Item!\n");
|
1999-03-15 16:40:27 +01:00
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
|
|
|
}
|
|
|
|
if (dwFlags & MCI_NOTIFY) {
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
1999-03-15 16:40:27 +01:00
|
|
|
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
|
|
|
wma->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
|
|
|
}
|
|
|
|
|
1999-07-24 12:45:24 +02:00
|
|
|
return ret;
|
1999-02-13 13:38:09 +01:00
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciGetDevCaps [internal]
|
|
|
|
*/
|
1999-02-13 13:38:09 +01:00
|
|
|
static DWORD AVI_mciGetDevCaps(UINT16 wDevID, DWORD dwFlags, LPMCI_GETDEVCAPS_PARMS lpParms)
|
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
1999-07-24 12:45:24 +02:00
|
|
|
DWORD ret;
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-02-13 13:38:09 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
1999-03-15 16:40:27 +01:00
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
1999-02-13 13:38:09 +01:00
|
|
|
|
|
|
|
if (dwFlags & MCI_GETDEVCAPS_ITEM) {
|
|
|
|
switch (lpParms->dwItem) {
|
|
|
|
case MCI_GETDEVCAPS_DEVICE_TYPE:
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_GETDEVCAPS_DEVICE_TYPE !\n");
|
1999-07-24 12:45:24 +02:00
|
|
|
lpParms->dwReturn = MAKEMCIRESOURCE(MCI_DEVTYPE_DIGITAL_VIDEO, MCI_DEVTYPE_DIGITAL_VIDEO);
|
|
|
|
ret = MCI_RESOURCE_RETURNED;
|
1999-02-13 13:38:09 +01:00
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_HAS_AUDIO:
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_GETDEVCAPS_HAS_AUDIO !\n");
|
1999-07-24 12:45:24 +02:00
|
|
|
lpParms->dwReturn = MAKEMCIRESOURCE(TRUE, MCI_TRUE);
|
|
|
|
ret = MCI_RESOURCE_RETURNED;
|
1999-02-13 13:38:09 +01:00
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_HAS_VIDEO:
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_GETDEVCAPS_HAS_VIDEO !\n");
|
1999-07-24 12:45:24 +02:00
|
|
|
lpParms->dwReturn = MAKEMCIRESOURCE(TRUE, MCI_TRUE);
|
|
|
|
ret = MCI_RESOURCE_RETURNED;
|
1999-02-13 13:38:09 +01:00
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_USES_FILES:
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_GETDEVCAPS_USES_FILES !\n");
|
1999-07-24 12:45:24 +02:00
|
|
|
lpParms->dwReturn = MAKEMCIRESOURCE(TRUE, MCI_TRUE);
|
|
|
|
ret = MCI_RESOURCE_RETURNED;
|
1999-02-13 13:38:09 +01:00
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_COMPOUND_DEVICE:
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_GETDEVCAPS_COMPOUND_DEVICE !\n");
|
1999-07-24 12:45:24 +02:00
|
|
|
lpParms->dwReturn = MAKEMCIRESOURCE(TRUE, MCI_TRUE);
|
|
|
|
ret = MCI_RESOURCE_RETURNED;
|
1999-02-13 13:38:09 +01:00
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_CAN_EJECT:
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_GETDEVCAPS_CAN_EJECT !\n");
|
1999-07-24 12:45:24 +02:00
|
|
|
lpParms->dwReturn = MAKEMCIRESOURCE(FALSE, MCI_FALSE);
|
|
|
|
ret = MCI_RESOURCE_RETURNED;
|
1999-02-13 13:38:09 +01:00
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_CAN_PLAY:
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_GETDEVCAPS_CAN_PLAY !\n");
|
1999-07-24 12:45:24 +02:00
|
|
|
lpParms->dwReturn = MAKEMCIRESOURCE(TRUE, MCI_TRUE);
|
|
|
|
ret = MCI_RESOURCE_RETURNED;
|
1999-02-13 13:38:09 +01:00
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_CAN_RECORD:
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_GETDEVCAPS_CAN_RECORD !\n");
|
1999-07-24 12:45:24 +02:00
|
|
|
lpParms->dwReturn = MAKEMCIRESOURCE(FALSE, MCI_FALSE);
|
|
|
|
ret = MCI_RESOURCE_RETURNED;
|
1999-02-13 13:38:09 +01:00
|
|
|
break;
|
|
|
|
case MCI_GETDEVCAPS_CAN_SAVE:
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("MCI_GETDEVCAPS_CAN_SAVE !\n");
|
1999-07-24 12:45:24 +02:00
|
|
|
lpParms->dwReturn = MAKEMCIRESOURCE(FALSE, MCI_FALSE);
|
|
|
|
ret = MCI_RESOURCE_RETURNED;
|
1999-02-13 13:38:09 +01:00
|
|
|
break;
|
|
|
|
default:
|
1999-07-24 12:45:24 +02:00
|
|
|
FIXME("Unknown capability (%08lx) !\n", lpParms->dwItem);
|
1999-02-13 13:38:09 +01:00
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
|
|
|
}
|
|
|
|
} else {
|
1999-07-24 12:45:24 +02:00
|
|
|
WARN("No GetDevCaps-Item !\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
|
|
|
}
|
1999-07-24 12:45:24 +02:00
|
|
|
return ret;
|
1999-02-13 13:38:09 +01:00
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciInfo [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciInfo(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_INFO_PARMSA lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
|
|
|
LPSTR str = 0;
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04X, %08lX, %p) : stub;\n", wDevID, dwFlags, lpParms);
|
1999-02-13 13:38:09 +01:00
|
|
|
|
1999-07-24 12:45:24 +02:00
|
|
|
if (lpParms == NULL || lpParms->lpstrReturn == NULL)
|
|
|
|
return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
TRACE("buf=%p, len=%lu\n", lpParms->lpstrReturn, lpParms->dwRetSize);
|
|
|
|
|
|
|
|
switch (dwFlags) {
|
|
|
|
case MCI_INFO_PRODUCT:
|
|
|
|
str = "Wine's AVI player";
|
|
|
|
break;
|
|
|
|
case MCI_INFO_FILE:
|
|
|
|
str = "";
|
|
|
|
break;
|
1999-02-13 13:38:09 +01:00
|
|
|
#if 0
|
1999-07-24 12:45:24 +02:00
|
|
|
/* FIXME: the following manifest constants are not defined in <WINE>/include/mmsystem.h */
|
|
|
|
case MCI_INFO_COPYRIGHT:
|
|
|
|
break;
|
|
|
|
case MCI_INFO_NAME:
|
|
|
|
break;
|
1999-02-13 13:38:09 +01:00
|
|
|
#endif
|
1999-07-24 12:45:24 +02:00
|
|
|
default:
|
|
|
|
WARN("Don't know this info command (%lu)\n", dwFlags);
|
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
1999-02-13 13:38:09 +01:00
|
|
|
}
|
1999-07-24 12:45:24 +02:00
|
|
|
return MCI_WriteString(lpParms->lpstrReturn, lpParms->dwRetSize, str);
|
1999-02-13 13:38:09 +01:00
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciPut [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciPut(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_PUT_PARMS lpParms)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
1999-03-15 16:40:27 +01:00
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
RECT rc;
|
1999-07-15 16:43:13 +02:00
|
|
|
char buffer[256];
|
1999-03-15 16:40:27 +01:00
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
if (dwFlags & MCI_DGV_RECT) {
|
|
|
|
rc = lpParms->rc;
|
|
|
|
} else {
|
|
|
|
SetRectEmpty(&rc);
|
|
|
|
}
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
*buffer = 0;
|
1999-03-15 16:40:27 +01:00
|
|
|
if (dwFlags & MCI_DGV_PUT_CLIENT) {
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, "PUT_CLIENT", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_DESTINATION) {
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, "PUT_DESTINATION", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_FRAME) {
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, "PUT_FRAME", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_SOURCE) {
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, "PUT_SOURCE", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_VIDEO) {
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, "PUT_VIDEO", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_PUT_WINDOW) {
|
1999-07-15 16:43:13 +02:00
|
|
|
strncat(buffer, "PUT_WINDOW", sizeof(buffer));
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("%s (%d,%d,%d,%d)\n", buffer, rc.left, rc.top, rc.right, rc.bottom);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* AVI_mciWindow [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciWindow(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_WINDOW_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lX, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
if (dwFlags & MCI_DGV_WINDOW_HWND) {
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("Setting hWnd to %08lx\n", (DWORD)lpParms->hWnd);
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_WINDOW_STATE) {
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("Setting nCmdShow to %d\n", lpParms->nCmdShow);
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
if (dwFlags & MCI_DGV_WINDOW_TEXT) {
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("Setting caption to '%s'\n", lpParms->lpstrText);
|
1999-03-15 16:40:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* AVI_mciLoad [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciLoad(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_LOAD_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciSave [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciSave(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_SAVE_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciFreeze [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciFreeze(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_RECT_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciRealize [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciRealize(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciUnFreeze [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciUnFreeze(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_RECT_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciUpdate [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciUpdate(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_UPDATE_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciWhere [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciWhere(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_RECT_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciStep [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciStep(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_STEP_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciCopy [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciCopy(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_COPY_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciCut [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciCut(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_CUT_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciDelete [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciDelete(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_DELETE_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciPaste [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciPaste(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_PASTE_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciCue [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciCue(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_CUE_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciCapture [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciCapture(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_CAPTURE_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
1999-02-13 13:38:09 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
1999-03-15 16:40:27 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciMonitor [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciMonitor(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_MONITOR_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciReserve [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciReserve(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_RESERVE_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciSetAudio [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciSetAudio(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_SETAUDIO_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciSignal [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciSignal(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_SIGNAL_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciSetVideo [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciSetVideo(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_SETVIDEO_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciQuality [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciQuality(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_QUALITY_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciList [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciList(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_LIST_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciUndo [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciUndo(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciConfigure [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciConfigure(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AVI_mciRestore [internal]
|
|
|
|
*/
|
|
|
|
static DWORD AVI_mciRestore(UINT16 wDevID, DWORD dwFlags, LPMCI_DGV_RESTORE_PARMSA lpParms)
|
|
|
|
{
|
|
|
|
WINE_MCIAVI* wma = AVI_mciGetOpenDev(wDevID);
|
|
|
|
|
1999-07-15 16:43:13 +02:00
|
|
|
TRACE("(%04x, %08lx, %p) : stub\n", wDevID, dwFlags, lpParms);
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
|
|
|
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
1999-02-13 13:38:09 +01:00
|
|
|
|
|
|
|
/*======================================================================*
|
|
|
|
* MCI AVI entry points *
|
|
|
|
*======================================================================*/
|
|
|
|
|
|
|
|
/**************************************************************************
|
1999-03-15 16:40:27 +01:00
|
|
|
* MCIAVI_DriverProc [sample driver]
|
1999-02-13 13:38:09 +01:00
|
|
|
*/
|
1999-07-15 16:43:13 +02:00
|
|
|
LONG CALLBACK MCIAVI_DriverProc(DWORD dwDevID, HDRVR hDriv, DWORD wMsg,
|
|
|
|
DWORD dwParam1, DWORD dwParam2)
|
1999-02-13 13:38:09 +01:00
|
|
|
{
|
|
|
|
switch (wMsg) {
|
|
|
|
case DRV_LOAD: return 1;
|
|
|
|
case DRV_FREE: return 1;
|
1999-05-02 12:21:49 +02:00
|
|
|
case DRV_OPEN: return AVI_drvOpen((LPSTR)dwParam1, (LPMCI_OPEN_DRIVER_PARMSA)dwParam2);
|
|
|
|
case DRV_CLOSE: return AVI_drvClose(dwDevID);
|
1999-02-13 13:38:09 +01:00
|
|
|
case DRV_ENABLE: return 1;
|
|
|
|
case DRV_DISABLE: return 1;
|
|
|
|
case DRV_QUERYCONFIGURE: return 1;
|
1999-02-26 12:11:13 +01:00
|
|
|
case DRV_CONFIGURE: MessageBoxA(0, "Sample AVI Wine Driver !", "MM-Wine Driver", MB_OK); return 1;
|
1999-02-13 13:38:09 +01:00
|
|
|
case DRV_INSTALL: return DRVCNF_RESTART;
|
|
|
|
case DRV_REMOVE: return DRVCNF_RESTART;
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
case MCI_OPEN_DRIVER: return AVI_mciOpen (dwDevID, dwParam1, (LPMCI_DGV_OPEN_PARMSA) dwParam2);
|
|
|
|
case MCI_CLOSE_DRIVER: return AVI_mciClose (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_PLAY: return AVI_mciPlay (dwDevID, dwParam1, (LPMCI_PLAY_PARMS) dwParam2);
|
|
|
|
case MCI_RECORD: return AVI_mciRecord (dwDevID, dwParam1, (LPMCI_DGV_RECORD_PARMS) dwParam2);
|
|
|
|
case MCI_STOP: return AVI_mciStop (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_SET: return AVI_mciSet (dwDevID, dwParam1, (LPMCI_DGV_SET_PARMS) dwParam2);
|
|
|
|
case MCI_PAUSE: return AVI_mciPause (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_RESUME: return AVI_mciResume (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_STATUS: return AVI_mciStatus (dwDevID, dwParam1, (LPMCI_DGV_STATUS_PARMSA) dwParam2);
|
|
|
|
case MCI_GETDEVCAPS: return AVI_mciGetDevCaps(dwDevID, dwParam1, (LPMCI_GETDEVCAPS_PARMS) dwParam2);
|
|
|
|
case MCI_INFO: return AVI_mciInfo (dwDevID, dwParam1, (LPMCI_DGV_INFO_PARMSA) dwParam2);
|
|
|
|
case MCI_SEEK: return AVI_mciSeek (dwDevID, dwParam1, (LPMCI_SEEK_PARMS) dwParam2);
|
|
|
|
case MCI_PUT: return AVI_mciPut (dwDevID, dwParam1, (LPMCI_DGV_PUT_PARMS) dwParam2);
|
|
|
|
case MCI_WINDOW: return AVI_mciWindow (dwDevID, dwParam1, (LPMCI_DGV_WINDOW_PARMSA) dwParam2);
|
|
|
|
case MCI_LOAD: return AVI_mciLoad (dwDevID, dwParam1, (LPMCI_DGV_LOAD_PARMSA) dwParam2);
|
|
|
|
case MCI_SAVE: return AVI_mciSave (dwDevID, dwParam1, (LPMCI_DGV_SAVE_PARMSA) dwParam2);
|
|
|
|
case MCI_FREEZE: return AVI_mciFreeze (dwDevID, dwParam1, (LPMCI_DGV_RECT_PARMS) dwParam2);
|
|
|
|
case MCI_REALIZE: return AVI_mciRealize (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_UNFREEZE: return AVI_mciUnFreeze (dwDevID, dwParam1, (LPMCI_DGV_RECT_PARMS) dwParam2);
|
|
|
|
case MCI_UPDATE: return AVI_mciUpdate (dwDevID, dwParam1, (LPMCI_DGV_UPDATE_PARMS) dwParam2);
|
|
|
|
case MCI_WHERE: return AVI_mciWhere (dwDevID, dwParam1, (LPMCI_DGV_RECT_PARMS) dwParam2);
|
|
|
|
case MCI_STEP: return AVI_mciStep (dwDevID, dwParam1, (LPMCI_DGV_STEP_PARMS) dwParam2);
|
|
|
|
case MCI_COPY: return AVI_mciCopy (dwDevID, dwParam1, (LPMCI_DGV_COPY_PARMS) dwParam2);
|
|
|
|
case MCI_CUT: return AVI_mciCut (dwDevID, dwParam1, (LPMCI_DGV_CUT_PARMS) dwParam2);
|
|
|
|
case MCI_DELETE: return AVI_mciDelete (dwDevID, dwParam1, (LPMCI_DGV_DELETE_PARMS) dwParam2);
|
|
|
|
case MCI_PASTE: return AVI_mciPaste (dwDevID, dwParam1, (LPMCI_DGV_PASTE_PARMS) dwParam2);
|
|
|
|
case MCI_CUE: return AVI_mciCue (dwDevID, dwParam1, (LPMCI_DGV_CUE_PARMS) dwParam2);
|
|
|
|
/* Digital Video specific */
|
|
|
|
case MCI_CAPTURE: return AVI_mciCapture (dwDevID, dwParam1, (LPMCI_DGV_CAPTURE_PARMSA) dwParam2);
|
|
|
|
case MCI_MONITOR: return AVI_mciMonitor (dwDevID, dwParam1, (LPMCI_DGV_MONITOR_PARMS) dwParam2);
|
|
|
|
case MCI_RESERVE: return AVI_mciReserve (dwDevID, dwParam1, (LPMCI_DGV_RESERVE_PARMSA) dwParam2);
|
|
|
|
case MCI_SETAUDIO: return AVI_mciSetAudio (dwDevID, dwParam1, (LPMCI_DGV_SETAUDIO_PARMSA) dwParam2);
|
|
|
|
case MCI_SIGNAL: return AVI_mciSignal (dwDevID, dwParam1, (LPMCI_DGV_SIGNAL_PARMS) dwParam2);
|
|
|
|
case MCI_SETVIDEO: return AVI_mciSetVideo (dwDevID, dwParam1, (LPMCI_DGV_SETVIDEO_PARMSA) dwParam2);
|
|
|
|
case MCI_QUALITY: return AVI_mciQuality (dwDevID, dwParam1, (LPMCI_DGV_QUALITY_PARMSA) dwParam2);
|
|
|
|
case MCI_LIST: return AVI_mciList (dwDevID, dwParam1, (LPMCI_DGV_LIST_PARMSA) dwParam2);
|
|
|
|
case MCI_UNDO: return AVI_mciUndo (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_CONFIGURE: return AVI_mciConfigure (dwDevID, dwParam1, (LPMCI_GENERIC_PARMS) dwParam2);
|
|
|
|
case MCI_RESTORE: return AVI_mciRestore (dwDevID, dwParam1, (LPMCI_DGV_RESTORE_PARMSA) dwParam2);
|
|
|
|
|
|
|
|
case MCI_SPIN:
|
1999-02-13 13:38:09 +01:00
|
|
|
case MCI_ESCAPE:
|
1999-07-24 12:45:24 +02:00
|
|
|
WARN("Unsupported command=%s\n", MCI_MessageToString(wMsg));
|
1999-02-13 13:38:09 +01:00
|
|
|
break;
|
|
|
|
case MCI_OPEN:
|
|
|
|
case MCI_CLOSE:
|
1999-07-15 16:43:13 +02:00
|
|
|
FIXME("Shouldn't receive a MCI_OPEN or CLOSE message\n");
|
1999-02-13 13:38:09 +01:00
|
|
|
break;
|
|
|
|
default:
|
1999-07-24 12:45:24 +02:00
|
|
|
TRACE("Sending msg=%s to default driver proc\n", MCI_MessageToString(wMsg));
|
1999-02-26 12:11:13 +01:00
|
|
|
return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
|
1999-02-13 13:38:09 +01:00
|
|
|
}
|
|
|
|
return MCIERR_UNRECOGNIZED_COMMAND;
|
|
|
|
}
|
1999-03-15 16:40:27 +01:00
|
|
|
|
|
|
|
|