C#中调用Windows API
2009-03-09 21:46
267 查看
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace BeepTest
{
class Program
{
[DllImport("kernel32.dll")]
public static extern bool Beep(int frequency, int duration);
static void Main(string[] args)
{
Random random = new Random();
for (int i=0; i < 10000; i++)
{
Beep(random.Next(10000), 100);
}
}
}
}
还是不会用,c#调用WindowsAPI,怎样才算会,怎样才算懂
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace BeepTest
{
class Program
{
[DllImport("kernel32.dll")]
public static extern bool Beep(int frequency, int duration);
static void Main(string[] args)
{
Random random = new Random();
for (int i=0; i < 10000; i++)
{
Beep(random.Next(10000), 100);
}
}
}
}
还是不会用,c#调用WindowsAPI,怎样才算会,怎样才算懂
相关文章推荐
- C#调用windows api的要点
- [转贴]C#中调用Windows API的要点
- C#中调用Windows API的要点
- C#中调用Windows API
- 用C#调用Windows API和其它进程通信
- 用C#调用Windows API和其它进程通信
- C#调用Windows API
- C#调用Windows API实现自动登录
- C# 调用windows API
- C# 调用Windows API(存档)
- C#调用Windows API实现自动登录(续)
- 使用Signature Tool自动生成P/Invoke调用Windows API的C#函数声明
- C#中调用Windows API的要点
- 用C#调用Windows API和其它进程通信
- C#中调用Windows API的要点
- 使用C#调用windows API入门(一)
- [转贴]C#中调用Windows API的要点
- 用C#调用Windows API和其它进程通信
- 用C#调用Windows API向指定窗口发送按键消息 z
- C#中调用Windows API的要点