On Nov 7, 10:44 am, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
Carlos,
Can you provide an example? The declaration looks fine, so it probably
has something to do with where you are calling it.
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com
"Carlos" <casol...@gmail.comwrote in message
news:11*********************@d55g2000hsg.googlegro ups.com...
I can not get
[ DllImport("user32.dll") ]
public static extern IntPtr GetForegroundWindow();
to work on windows xp, I always get null. It works fine on vista, I
just don't know why xp is failing.
Any ideas?
Thanks,
--Carlos
There is a lot of code involved with this, I'll see if I can make a
small example. I did forget to mention one more thing, I am working on
a taskbar replacement, is there a chance it has to do with that?