当前位置:网站首页>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 .
边栏推荐
猜你喜欢
Getting started with k8s: building MySQL with Helm
将一串数字顺序后移
Web安全--核心防御机制
C#钉钉开发:取得所有员工通讯录和发送工作通知
Nacos 下载启动、配置 MySQL 数据库
C language replaces spaces in strings with%20
sqli-labs第1关
Minecraft group service opening
HCIA - data link layer
Luogu greedy part of the backpack line segment covers the queue to receive water
随机推荐
Tensorflow2 keras 分类模型
HackTheBox-Gunship
用数字 5,5,5,1 ,进行四则运算,每个数字当且仅当用一次,要求运算结果值为 24
Network security - summary and thinking of easy-to-use fuzzy tester
Pclpy projection filter -- projection of point cloud to cylinder
ARP and ARP Spoofing
Openfeign facile à utiliser
Qt的拖动事件
Gateway is easy to use
Mutex
Classes and objects (instantiation of classes and classes, this, static keyword, encapsulation)
STM32 new project (refer to punctual atom)
Honeypot attack and defense drill landing application scheme
使用递归函数求解字符串的逆置问题
Openshift build image
Web安全--核心防御机制
什么是SQL注入
TCP/IP—传输层
ICMP协议
Solid principle: explanation and examples