/* termAVI -- gets device ID for "avivideo" from mciGetDeviceID, then closes the device with MCI_CLOSE. */ void termAVI(void) { WORD wID; MCI_GENERIC_PARMS mciClose; wID = mciGetDeviceID("avivideo"); mciSendCommand(wID, MCI_CLOSE, 0L, (DWORD)(LPMCI_GENERIC_PARMS)&mciClose); }
/* termAVI -- gets device ID for "avivideo" from mciGetDeviceID, then closes the device with MCI_CLOSE. */ void termAVI(void) { WORD wID; MCI_GENERIC_PARMS mciClose; // // Get the device ID for the opened device type and then close // the device type. // wID = mciGetDeviceID("avivideo"); mciSendCommand(wID, MCI_CLOSE, 0L, (DWORD)(LPMCI_GENERIC_PARMS)&mciClose); }