{-# LANGUAGE CPP #-} {- | Module : Graphics.Win32.Window.ForegroundWindow Copyright : 2012 shelarcy License : BSD-style Maintainer : shelarcy@gmail.com Stability : Provisional Portability : Non-portable (Win32 API) Get/Set Foreground Window. -} module Graphics.Win32.Window.ForegroundWindow ( getForegroundWindow , setForegroundWindow , c_SetForegroundWindow ) where import Graphics.Win32.GDI.Types ( HWND ) import Graphics.Win32.Window ( getForegroundWindow ) ---------------------------------------------------------------- -- | Setting Window to Foreground. -- See: , -- . ---------------------------------------------------------------- setForegroundWindow :: HWND -> IO Bool setForegroundWindow = c_SetForegroundWindow foreign import WINDOWS_CCONV safe "windows.h SetForegroundWindow" c_SetForegroundWindow :: HWND -> IO Bool ----------------------------------------------------------------