这是来自C#
[DllImport("user32.dll", EntryPoint = "SendMessageA")]
public static extern int SendMessage(IntPtr hwnd, int wMsg, IntPtr wParam, IntPtr lParam)
如何在VB.Net中执行此操作?有人可以帮我谢谢!
修改
<DllImport("user32.dll")> _
Shared Function SendMessage(hwnd As IntPtr, wMsg As Integer, wParam As IntPtr, lParam As IntPtr) As Integer
End Function
我想知道这是否正确?如果没有,我错过了什么?