Hi Bill,
>I would like to get Windows paramaters from the currently in-focus Window
in C#. What is the best way to do this?
[DllImport("user32.dll")]
static extern IntPtr GetForegroundWindow();
and is the direct opposite:
[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool SetForegroundWindow(IntPtr hWnd);
Regards
Kerem
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space:
http://kerem-g.spaces.live.com/
Latest Open-Source Projects:
http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
"Bill Fuller" <so*****@nospam.comschrieb im Newsbeitrag
news:Oq**************@TK2MSFTNGP06.phx.gbl...
>I would like to get Windows paramaters from the currently in-focus Window
in C#. What is the best way to do this?