|
break
The break command specifies a key to abort a command that was invoked using the "wait"
flag. This command is an MCI system command; it is interpreted directly by MCI.
wsprintf(lpstrCommand, "break %s %s %s", lpszDeviceID, lpszVirtKey,
lpszFlags);
Parameters
lpszDeviceID
Identifier of an MCI device. This identifier or alias is assigned when the
device is opened.
lpszVirtKey
One of the following flags:
on virtual key code
| Specifies the key that aborts a command that was started using the "wait" flag.
| off
| Disables the current break key.
|
lpszFlags
Can be "wait", "notify", or both. For digital-video and VCR devices, "test"
can also be specified. For more information about these flags, see The Wait, Notify, and Test Flags.
Return Values
Returns zero if successful or an error otherwise.
Remarks
When the break key is enabled and the user presses the key identified by the
virtual-key code specified in the lpsVirtKey parameter, the device returns control to the application. If possible, the
command continues execution.
The following command sets F2 as the break key for the "mysound" device:
break mysound on 113
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|