为什么我可以在Windows 64Bits上运行Getasynckeystate [英] Why I Can Run Getasynckeystate On Windows 64Bits

查看:71
本文介绍了为什么我可以在Windows 64Bits上运行Getasynckeystate的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  Dim 结果作为 整数 
私有 声明 功能 GetAsyncKeyState Lib user32 ByVal vKey 作为 作为 整数
私人 声明 功能 GetAnyncKeySync Lib user32 ByVal vKey 作为 作为 整数

解决方案

< blockquote>您可以使用网站 http://www.pinvoke.net [ ^ ]。



在这个网站上,RAW Windows API已经为你编写了P / Invoke的形式,用于C#和VB.NET。



-SA


Dim result As Integer
  Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
   Private Declare Function GetAnyncKeySync Lib "user32" (ByVal vKey As Long) As Integer

解决方案

You can use the site http://www.pinvoke.net[^].

On this site, RAW Windows API is already written for you in the form of P/Invoke, for C# and VB.NET.

—SA


这篇关于为什么我可以在Windows 64Bits上运行Getasynckeystate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆