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

Copyright(c) Alastair Reid 1999-2003
LicenseBSD-style (see the file libraries/base/LICENSE)
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

System.Win32

Description

An FFI binding to the system part of the Win32 API.

Synopsis

Documentation

type LCTYPE = UINT #

type CodePage = UINT #

sUBLANG_ENGLISH_SOUTH_AFRICA :: SubLANGID #

The IO input functions (e.g. getLine) don't automatically convert to Unicode, so this function is provided to make the conversion from a multibyte string in the given code page to a proper Unicode string. To get the code page for the console, use getConsoleCP.

maybePtr :: Maybe (Ptr a) -> Ptr a #

ptrToMaybe :: Ptr a -> Maybe (Ptr a) #

maybeNum :: Num a => Maybe a -> a #

numToMaybe :: (Eq a, Num a) => a -> Maybe a #

try' :: Storable a => String -> (Ptr a -> PDWORD -> IO BOOL) -> DWORD -> IO [a] #

peekMaybe :: Storable a => Ptr a -> IO (Maybe a) #

See also: maybePeek function.

withMaybe :: Storable a => Maybe a -> (Ptr a -> IO b) -> IO b #

See also: maybeWith function.