当前位置:网站首页>C call system sound beep~
C call system sound beep~
2022-07-02 08:46:00 【Qingshan blog】
public class BeepUp
{
/// <param name="iFrequency"> Sound frequency ( from 37Hz To 32767Hz). stay windows95 Ignored in </param>
/// <param name="iDuration"> The duration of the sound , In Milliseconds .</param>
[DllImport("Kernel32.dll")] // Introduce namespace using System.Runtime.InteropServices;
public static extern bool Beep(int frequency, int duration);
}Calling method :
BeepUp.Beep(3200, 100);Sound frequency and The duration of the It can be adjusted by itself .
边栏推荐
猜你喜欢
随机推荐
Makefile基本原理
Installing Oracle database 19C RAC on Linux
Web安全--核心防御机制
Synchronize files using unison
Dip1000 runaway
k8s入门:Helm 构建 MySQL
Service de groupe minecraft
Linux binary installation Oracle database 19C
TCP/IP—传输层
Linked list classic interview questions (reverse the linked list, middle node, penultimate node, merge and split the linked list, and delete duplicate nodes)
路由基础—动态路由
Analysis of the use of comparable, comparator and clonable interfaces
Openfeign is easy to use
C language custom type enumeration, Union (clever use of enumeration, calculation of union size)
IP protocol and IP address
使用wireshark抓取Tcp三次握手
gocv拆分颜色通道
Solid principle: explanation and examples
Web security -- Logical ultra vires
Tensorflow2 keras classification model









