GetForegroundWindow doesn't work

  • Thread starter Thread starter Carlos
  • Start date Start date
C

Carlos

I am playing around with a taskbar replacement and it works great on
regular windows xp but on XPE I can not get the following function to
work:
[ DllImport("user32.dll") ]
public static extern IntPtr GetForegroundWindow();

For some reason I always get NULL.

Any help would be greatly appreciated.

Thanks,

--Carlos
 
I am playing around with a taskbar replacement and it works great on
regular windows xp but on XPE I can not get the following function to
work:
[ DllImport("user32.dll") ]
public static extern IntPtr GetForegroundWindow();

For some reason I always get NULL.

Any help would be greatly appreciated.

Thanks,

--Carlos

I just noticed it doesn't work on XP either. It only seems to work on
Vista for me.
 
Back
Top