using System.Runtime.InteropServices;
public static uint SND_ASYNC = 0x0001; // play asynchronously
public static uint SND_FILENAME = 0x00020000; // name is file name
[DllImport("winmm.dll")]
public static extern uint mciSendString(string lpstrCommand,
string lpstrReturnString, uint uReturnLength, uint hWndCallback);
mciSendString(@"close temp_alias", null, 0, 0);
mciSendString(@"open ""E:/音乐/完美生活.mp3"" alias temp_alias",
null, 0, 0);
mciSendString("play temp_alias", null, 0, 0); // 重复播放用"play temp_alias repea
相关文章
- Microsoft Visual C++ 2005 Redistributable---win下安装软件“嘭”的一声报错!
- 现在的SQLSERVER数据库监控软件有哪些?
- iTOP-4412 平台基础软件的安装和学习
- window安装软件报“没有找到visual c++ SP1 可再发行文件x86“
- 软件测试学习笔记丨Pytest配置文件
- 删除软件的安装文件时提示“操作无法完成,因为文件已在system中打开”,怎么办?
- 软件质量的8个特性
- 13. 软件包详解,rpm包的查找,安装,升级,卸载,验证等所有操作
- Linux学习-17-rpm查询软件包命令(-q、-qa、-i、-p、-l、-f、-R)
- 软件工程中的维护类型-1. 排错性维护