GetForeGroundWindow

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, when i try to run this code: "Dim hWnd As IntPtr = GetForeGroundWindow()" i get this error message
"Unable to find an entry point named GetForeGroundWindow in DLL user32." The function is declared as this
"Declare Auto Function GetForeGroundWindow Lib "user32" () As System.IntPtr

Can anyone help me? Thanks
 
Hi, when i try to run this code: "Dim hWnd As IntPtr = GetForeGroundWindow()" i get this error message:
"Unable to find an entry point named GetForeGroundWindow in DLL user32." The function is declared as this:
"Declare Auto Function GetForeGroundWindow Lib "user32" () As System.IntPtr"

Can anyone help me? Thanks


Win32 entry points are case sensitive, and the function name in this
case is GetForegroundWindow with a lower case 'g'.



Mattias
 
Back
Top