Win32-2.3.1.0: A binding to part of the Win32 library

Copyright | (c) Alastair Reid, 1997-2003
License | BSD-style (see the file libraries/base/LICENSE)
Maintainer | Esa Ilari Vuokko <ei@vuokko.info>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Graphics.Win32.Misc

Description

A collection of FFI declarations for interfacing with Win32.

# Documentation

type Accelerator = LPCTSTR

type Cursor = LPTSTR

type Icon = LPTSTR

loadAccelerators :: Maybe HINSTANCE -> Accelerator -> IO HACCEL

c_LoadAccelerators :: HINSTANCE -> Accelerator -> IO HACCEL

loadCursor :: Maybe HINSTANCE -> Cursor -> IO HCURSOR

c_LoadCursor :: HINSTANCE -> Cursor -> IO HCURSOR

loadIcon :: Maybe HINSTANCE -> Icon -> IO HICON

c_LoadIcon :: HINSTANCE -> Icon -> IO HICON

iDC_ARROW :: Cursor

iDC_IBEAM :: Cursor

iDC_WAIT :: Cursor

iDC_CROSS :: Cursor

iDC_UPARROW :: Cursor

iDC_SIZENWSE :: Cursor

iDI_APPLICATION :: Icon

iDC_SIZENESW :: Cursor

iDI_HAND :: Icon

iDC_SIZEWE :: Cursor

iDI_QUESTION :: Icon

iDC_SIZENS :: Cursor

iDI_EXCLAMATION :: Icon

iDI_ASTERISK :: Icon

type MBStyle = UINT

mB_OK :: MBStyle

mB_OKCANCEL :: MBStyle

mB_ABORTRETRYIGNORE :: MBStyle

mB_YESNOCANCEL :: MBStyle

mB_YESNO :: MBStyle

mB_RETRYCANCEL :: MBStyle

mB_ICONHAND :: MBStyle

mB_ICONQUESTION :: MBStyle

mB_ICONEXCLAMATION :: MBStyle

mB_ICONASTERISK :: MBStyle

mB_ICONINFORMATION :: MBStyle

type MBStatus = UINT

mB_ICONSTOP :: MBStyle

iDABORT :: MBStatus

mB_DEFBUTTON1 :: MBStyle

iDCANCEL :: MBStatus

mB_DEFBUTTON2 :: MBStyle

iDIGNORE :: MBStatus

mB_DEFBUTTON3 :: MBStyle

iDNO :: MBStatus

mB_APPLMODAL :: MBStyle

iDOK :: MBStatus

mB_SYSTEMMODAL :: MBStyle

iDRETRY :: MBStatus

mB_TASKMODAL :: MBStyle

iDYES :: MBStatus

mB_SETFOREGROUND :: MBStyle

messageBox :: HWND -> String -> String -> MBStyle -> IO MBStatus

c_MessageBox :: HWND -> LPCTSTR -> LPCTSTR -> MBStyle -> IO MBStatus

type StdHandleId = DWORD

sTD_INPUT_HANDLE :: StdHandleId

sTD_OUTPUT_HANDLE :: StdHandleId

sTD_ERROR_HANDLE :: StdHandleId

getStdHandle :: StdHandleId -> IO HANDLE

c_GetStdHandle :: StdHandleId -> IO HANDLE

transformedEllipse :: HDC -> POINT -> POINT -> POINT -> IO ()

c_transformedEllipse :: HDC -> LONG -> LONG -> LONG -> LONG -> LONG -> LONG -> IO Bool

getCursorPos :: IO POINT

c_GetCursorPos :: Ptr POINT -> IO Bool

setCursorPos :: POINT -> IO ()

c_SetCursorPos :: LONG -> LONG -> IO Bool

clipCursor :: RECT -> IO ()

c_ClipCursor :: Ptr RECT -> IO Bool

getClipCursor :: IO RECT

c_GetClipCursor :: Ptr RECT -> IO Bool

type ExitOption = UINT

eWX_FORCE :: ExitOption

eWX_LOGOFF :: ExitOption

eWX_POWEROFF :: ExitOption

eWX_REBOOT :: ExitOption

eWX_SHUTDOWN :: ExitOption

exitWindowsEx :: ExitOption -> IO ()

c_ExitWindowsEx :: ExitOption -> DWORD -> IO Bool

exitWindows :: IO ()

type Beep = UINT

type MbBeep = Maybe Beep

maybeBeep :: Maybe Beep -> Beep

type Duration = Int

type MbDuration = Maybe Duration

maybeDuration :: Maybe Duration -> Duration

messageBeep :: Maybe Beep -> IO ()

c_MessageBeep :: Beep -> IO ()

beep :: WORD -> MbDuration -> IO ()

c_Beep :: WORD -> Duration -> IO Bool

type TimerId = UINT

type TIMERPROC = FunPtr (HWND -> UINT -> TimerId -> DWORD -> IO ())

setWinTimer :: HWND -> TimerId -> UINT -> IO TimerId

c_SetTimer :: HWND -> TimerId -> UINT -> TIMERPROC -> IO TimerId

killTimer :: Maybe HWND -> TimerId -> IO ()

c_KillTimer :: HWND -> TimerId -> IO Bool

type MilliSeconds = DWORD

timeGetTime :: IO MilliSeconds