Win32-2.12.0.1: A binding to Windows Win32 API.
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

enumSystemLocalesEx' Source #

Arguments

:: EnumLocalesFlag 
-> Maybe Bool

Maybe include (or exclude) replacement locales?

-> IO [String] 

getDefaultLocaleName :: String -> (LPWSTR -> CInt -> IO CInt) -> IO String Source #

Helper function for use with c_GetUserDefaultLocaleName or c_GetSystemDefaultLocaleName. See getUserDefaultLocaleName and getSystemUserDefaultLocaleName.

lOCALE_SDATE :: LCTYPE Source #

Type representing locale data

lOCALE_SISO3166CTRYNAME2 :: LCTYPE Source #

Type representing 128-bit Unicode subset bitfields, as the base package does include a module exporting a 128-bit unsigned integer type.

sUBLANG_ENGLISH_SOUTH_AFRICA :: SubLANGID Source #

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.

data GUID Source #

Instances

Instances details
Storable GUID Source # 
Instance details

Defined in System.Win32.NLS

Show GUID Source # 
Instance details

Defined in System.Win32.NLS

Eq GUID Source # 
Instance details

Defined in System.Win32.NLS

Methods

(==) :: GUID -> GUID -> Bool #

(/=) :: GUID -> GUID -> Bool #

data LCData Source #

Constructors

LCTextualData !String

Data in the form of a Unicode string.

LCNumericData !DWORD

Data in the form of a number. See lOCAL_RETURN_NUMBER and LOCAL_I* locate information constants.

LCSignatureData !LOCALESIGNATURE

Data in the fomr of a LOCALESIGNATURE. See lOCAL_FONTSIGNATURE locale information constant.

Instances

Instances details
Show LCData Source # 
Instance details

Defined in System.Win32.NLS

Eq LCData Source # 
Instance details

Defined in System.Win32.NLS

Methods

(==) :: LCData -> LCData -> Bool #

(/=) :: LCData -> LCData -> Bool #

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

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

fromDateFormatPicture :: String -> Maybe String Source #

Translate from a Windows API day, month, year, and era format picture to the closest corresponding format string used by formatTime.

fromTimeFormatPicture :: String -> Maybe String Source #

Translate from a Windows API hours, minute, and second format picture to the closest corresponding format string used by formatTime.

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

See also: maybePeek function.

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

trySized :: String -> (LPTSTR -> CInt -> IO CInt) -> IO String Source #

Support for API calls that return the required size, in characters including a null character, of the buffer when passed a buffer size of zero.

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

See also: maybeWith function.