{-# LINE 1 "Graphics\\Win32\\Window\\PostMessage.hsc" #-}{-# LANGUAGE CPP #-}{- | Module : Graphics.Win32.Window.PostMessage Copyright : 2013 shelarcy License : BSD-style Maintainer : shelarcy@gmail.com Stability : Provisional Portability : Non-portable (Win32 API) Provide PostMessage function and friends. -}moduleGraphics.Win32.Window.PostMessagewhereimportForeign.C.Types(CIntPtr(..))importGraphics.Win32.GDI.Types(HWND,MbHWND)importGraphics.Win32.Message(WindowMessage)importSystem.Win32.Types(DWORD,WPARAM,LPARAM,BOOL,maybePtr,castUINTPtrToPtr,failIfFalse_) #include "windows_cconv.h" postMessage::MbHWND->WindowMessage->WPARAM->LPARAM->IO()postMessagemb_wndmsgwl=failIfFalse_(unwords["PostMessage",showmb_wnd,showmsg,showw,showl])$c_PostMessage(maybePtrmb_wnd)msgwlforeignimportWINDOWS_CCONV"windows.h PostMessageW"c_PostMessage::HWND->WindowMessage->WPARAM->LPARAM->IOBOOLforeignimportWINDOWS_CCONV"windows.h PostQuitMessage"postQuitMessage::Int->IO()postThreadMessage::DWORD->WindowMessage->WPARAM->LPARAM->IO()postThreadMessagetIdmsgwl=failIfFalse_(unwords["PostThreadMessage",showtId,showmsg,showw,showl])$c_PostThreadMessagetIdmsgwlforeignimportWINDOWS_CCONV"windows.h PostThreadMessageW"c_PostThreadMessage::DWORD->WindowMessage->WPARAM->LPARAM->IOBOOLhWND_BROADCAST::HWNDhWND_BROADCAST=castUINTPtrToPtr65535{-# LINE 46 "Graphics\\Win32\\Window\\PostMessage.hsc" #-}foreignimportWINDOWS_CCONV"windows.h InSendMessage"inSendMessage::IOBool