The following example shows how to set the frequency for the tuner device using MCI_SETTUNER.
USHORT usDeviceID;
MCI_DGV_TUNER_PARMS settuner;
settuner.usDeviceID = usDeviceID; /* Device ID */
settuner.ulFrequency = 24725; /* Frequency for channel 29 in USA Cable TV */
settuner.pszRegion = NULL; /* Region, Channel and Finetune are not */
settuner.usTVChannel = 0; /* needed since we are inputting the */ */
settuner.lFineTune = 0; /* frequency. */ */
ulError = mciSendCommand ( usDeviceID,
MCI_SETTUNER,
MCI_WAIT | MCI_DGV_FREQUENCY,
&settuner,
0);