use*_*890 2 .net 64-bit pinvoke x86 winapi
我们选择以下Win API调用作为示例:
BOOL MessageBeep(UINT uType); // from User32.dll
Run Code Online (Sandbox Code Playgroud)
输入参数是UINT来指定蜂鸣声类型,它可以是32位和64位整数,具体取决于我们称之为的Windows版本(或者我错了吗?).
如果我想从C#调用P/Invoke消息,那么我应用DllImport声明:
[DllImport("User32.dll")]
static extern Boolean MessageBeep(UInt32 beepType);
Run Code Online (Sandbox Code Playgroud)
这个代码C#在Windows x64下运行吗?
| 归档时间: |
|
| 查看次数: |
2013 次 |
| 最近记录: |