当前位置:网站首页>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 .
边栏推荐
- Classes and objects (instantiation of classes and classes, this, static keyword, encapsulation)
- gocv opencv exit status 3221225785
- Sqli labs level 8 (Boolean blind note)
- 双向链表的实现(双向链表与单向链表的简单区别联系和实现)
- sqli-labs第8关(布尔盲注)
- 将一串数字顺序后移
- Openfeign facile à utiliser
- Qt——如何在QWidget中设置阴影效果
- Linux二进制安装Oracle Database 19c
- Viewing JS array through V8
猜你喜欢
![[blackmail virus data recovery] suffix Crylock blackmail virus](/img/b2/8e3a65dd250b9194cfc175138c740c.jpg)
[blackmail virus data recovery] suffix Crylock blackmail virus

Application of kotlin - higher order function

C language replaces spaces in strings with%20

Tcp/ip - transport layer

Openshift deployment application

Minecraft空岛服开服

Minecraft group service opening

Zipkin is easy to use

Chrome debugging

Sqli labs level 8 (Boolean blind note)
随机推荐
Aneng logistics' share price hit a new low: the market value evaporated by nearly 10 billion yuan, and it's useless for chairman Wang Yongjun to increase his holdings
Programmer training, crazy job hunting, overtime ridiculed by colleagues deserve it
Classes and objects (instantiation of classes and classes, this, static keyword, encapsulation)
commands out of sync. did you run multiple statements at once
The best blog to explain the basics of compilation (share)
Finishing the interview essentials of secsha system!!!
Sqli labs level 8 (Boolean blind note)
STM32 new project (refer to punctual atom)
OpenFeign 簡單使用
Minecraft空岛服开服
C# 百度地图,高德地图,Google地图(GPS) 经纬度转换
Comparable,Comparator,Clonable 接口使用剖析
Judge whether it is Sudoku
使用wireshark抓取Tcp三次握手
选择排序和插入排序
实现双向链表(带傀儡节点)
[blackmail virus data recovery] suffix Hydra blackmail virus
IP protocol and IP address
Use the kaggle training model and download your own training model
Dip1000 runaway