谁能提供我一些"MciSendCommand","MciSendString"API函数的资料,提供者有分。
解决方案 »
- 请教在MDI View双击弹出的对话框时,怎么在对话框中手动更新View ?
- 数组编号只能是常量,有什么办法变通一下。。。。求助,谢谢!
- 在VC开发环境里如何使用CButtonST?谢谢赐教!
- 服务器端如何知道自己这边网络故障?
- 关于WINDOWS程序设计书上的问题!请各位高手指教!
- CRecordset类里面的delete()和edit()问题请教各位——万分着急!!
- 把数据从access导出到文本文件,为什么不可以选择指定的字段呢?
- 关于SOCKET的问题,送100分
- 学习Activex
- 一个调试版本和发行版本的问题
- 这是什么 ZJoSyL.exe D:\WINNT\DOWNLO~1\CnsMin.dll,Rundll32
- MFC和SDK之间的问题
mciSendString
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. MCIERROR mciSendString(
LPCTSTR lpszCommand,
LPTSTR lpszReturnString,
UINT cchReturn,
HANDLE hwndCallback
);
Parameters
lpszCommand
Pointer to a null-terminated string that specifies an MCI command string. For more information about the command strings, see Command Strings.
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.
Return Values
Returns zero if successful or an error otherwise. The low-order word of the returned DWORD value contains the error return value. If the error is device-specific, the high-order word of the return value is the driver identifier; otherwise, the high-order word is zero. For a list of possible error values, see MCIERR Return Values.To retrieve a text description of mciSendString return values, pass the return value to the mciGetErrorString function. Requirements
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Mmsystem.h.
Library: Use Winmm.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.See Also
MCI Overview, MCI Functions, mciGetErrorStringBuilt on Thursday, May 11, 2000Requirements
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Mmsystem.h.
Library: Use Winmm.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.
See Also
MCI Overview, MCI Functions, mciGetErrorString
http://www.impu.edu.cn/learner/aboutvc/vcmidiwavcd.html
http://www.ccw.com.cn/htm/produ/special/VC/neimu/01_9_17_37.asp
http://www.chinaoak.com/download/material/MultiMedia/VCMedia.htm
The mciSendCommand function sends a command message to the specified MCI device. MCIERROR mciSendCommand(
MCIDEVICEID IDDevice,
UINT uMsg,
DWORD fdwCommand,
DWORD_PTR dwParam
);
Parameters
IDDevice
Device identifier of the MCI device that is to receive the command message. This parameter is not used with the MCI_OPEN command message.
uMsg
Command message. For a list, see Multimedia Commands.
fdwCommand
Flags for the command message.
dwParam
Pointer to a structure that contains parameters for the command message.
Return Values
Returns zero if successful or an error otherwise. The low-order word of the returned DWORD value contains the error return value. If the error is device-specific, the high-order word of the return value is the driver identifier; otherwise, the high-order word is zero. For a list of possible return values, see MCIERR Return Values.To retrieve a text description of mciSendCommand return values, pass the return value to the mciGetErrorString function. Res
Error values that are returned when a device is being opened are listed with the MCI_OPEN command message. In addition to the MCI_OPEN error return values, this function can return the values listed in MCIERR Return Values.Use MCI_OPEN to obtain the device identifier specified by the IDDevice parameter. Requirements
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Mmsystem.h.
Library: Use Winmm.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.
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. MCIERROR mciSendString(
LPCTSTR lpszCommand,
LPTSTR lpszReturnString,
UINT cchReturn,
HANDLE hwndCallback
);
Parameters
lpszCommand
Pointer to a null-terminated string that specifies an MCI command string. For a list, see Multimedia Command Strings.
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.
Return Values
Returns zero if successful or an error otherwise. The low-order word of the returned DWORD value contains the error return value. If the error is device-specific, the high-order word of the return value is the driver identifier; otherwise, the high-order word is zero. For a list of possible error values, see MCIERR Return Values.To retrieve a text description of mciSendString return values, pass the return value to the mciGetErrorString function. Requirements
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Mmsystem.h.
Library: Use Winmm.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.See Also