Try this declaration of the API instead -the only difference is that it is using ByRef instead of ByVal and that seems to have got it working on my machine so that it works in both x86 and x64 mode.
vb Code:
''' <summary> ''' Flashes a window to alert the user that it requires attention ''' </summary> ''' <param name="pfwi">A FLASHWINFO structure that specifies parameters for the flash</param> <DllImportAttribute("user32.dll", EntryPoint:="FlashWindowEx")> _ Public Shared Function FlashWindowEx(<InAttribute()> ByRef pfwi As FLASHWINFO) As <MarshalAsAttribute(UnmanagedType.Bool)> Boolean End Function





Reply With Quote