VB Mania

Text Box: Previous Example
Text Box: Next Example
Text Box: VB-Mania Core

Using mciSendString

Information:

The mciSendString function sends a command string to an MCI device. The device that the command is sent to is specified in the command string.

mciSendString can be used to dictate the computer to do many functions; here-below some of the examples of its use...

VB-Pedia:

· mciSendString sends a command string to an MCI device. The device that the command is sent to is specified in the command string.

Parameters

¨ lpszCommand

Pointer to a null-terminated string that specifies an MCI command string.

¨ lpszReturnString

Pointer to a buffer that receives return information. If no return information is needed, this parameter can be NULL.

¨ cchReturn

Size, in characters, of the return buffer specified by the lpszReturnString parameter.

¨ hwndCallback

Handle to a callback window if the "notify" flag was specified in the command string.

Pentagon: Eject and close the CD-ROM
Pentagon: Play a midi file

Examples of mciSendString uses:

Sponsored Links

Google
 
Web vbmania2006.brinkster.net
planet-source-code.com support.microsoft.com