c# win32
yaucyj
...
展开
-
C#播放声音
private void PlaySound() { PlaySound(("声音文件", IntPtr.Zero, 0); //用API播放声音文件 } private void Play() { System.Media.SystemS原创 2010-03-30 15:23:00 · 823 阅读 · 0 评论 -
C#同步本地机时间与服务器时间
#region 修改本地系统时间 [DllImport("Kernel32.dll")] private extern static void GetSystemTime(ref SYSTEMTIME lpSystemTime); [DllImport("Kernel32.dll")] private extern static原创 2010-03-30 15:35:00 · 7757 阅读 · 0 评论