以前在VB6的时候声明一个API是这样的
Declare
Function FlashWindow()
Function FlashWindow Lib "user32" Alias "FlashWindow" (ByVal hwnd As Long, ByVal bInvert As Long) As Long
你看出来了么?
现在在VB.NET里声明同一个API是这样的
Declare
Function FlashWindow()
Function FlashWindow Lib "user32.dll" ( ByVal hwnd As Int32, ByVal bInvert As Int32) As Int32
其实在VB.NET里应该是这样的
Declare
Function FlashWindow()
Function FlashWindow Lib "user32.dll" (ByVal hwnd As IntPtr,ByVal bInvert As Int32) As Int32
转载请注明原文地址: https://ibbs.8miu.com/read-29902.html