哎,这个怎么一下子可以说完?
mciSendString是一个多媒体API,可以进行很多的操作,比如播放wav,avi,mid等等
mcisendstring('set cdaudio door open',nil,0,handle);的意思是:
set <--指令
cdaudio <--设备标志
door <--根据设备不同而不同
open <--同上
mcisendstring('set cdaudio door closed',nil,0,handle);
同上
其实要查询cd-rom的状态,也可以用mcisendstring来完成。
mciSendString是一个多媒体API,可以进行很多的操作,比如播放wav,avi,mid等等
mcisendstring('set cdaudio door open',nil,0,handle);的意思是:
set <--指令
cdaudio <--设备标志
door <--根据设备不同而不同
open <--同上
mcisendstring('set cdaudio door closed',nil,0,handle);
同上
其实要查询cd-rom的状态,也可以用mcisendstring来完成。
解决方案 »
- 大家帮我看看这段代码,谢谢。
- IDTCPClient.Connect 提示Read TimeOut 问题,请高人指点!
- 怎么获取scktsrvr的IP列表?(有点急)
- 问个弱弱的问题:我通过设置窗体属性使主窗体变成Image图片里不规则的形状,可是我再往上放label就不响应click了,为什么???怎么解决
- 視 圖1
- 初学delphi,请教!
- 有没有谁能够提供一些有关webservices和websnap的相关资料
- 谁知道《分布式多层应用系统篇》第三章的第一个例子,为什么老是提示我“不支持接口”?
- 急,斑竹怎么将图片(最好是JPG文件)的一部分裁剪后存在文件中 一定给分
- *.rar 文件用什么阅读哪儿可download
- reset有问题吗?
- 一个程序员的绝笔-谁知道这段代码的运行结果重重有赏!
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.