由网友(男神如太阳i)分享简介:有人可以翻译我下面的code从VB到C#?据我的理解是声明的函数的调用由本地库user32.dll中...... Can someone translate me the following code from VB to C#? As far as I understand it is declaration of...
有人可以翻译我下面的code从VB到C#?据我的理解是声明的函数的调用由本地库user32.dll中......
Can someone translate me the following code from VB to C#? As far as I understand it is declaration of a function that calls another function from the native library "user32.dll"...
声明函数SetForegroundWindow库USER32(BYVAL HWND为整数)作为整数
Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Integer) As Integer
推荐答案
查看 PInvoke的< /一>:
Check out PInvoke:
[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool SetForegroundWindow(IntPtr hWnd);
相关推荐
最新文章