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

Copyright2009 Balazs Komuves 2013 shelarcy
LicenseBSD-style
Maintainer[email protected]
StabilityProvisional
PortabilityNon-portable (Win32 API)
Safe HaskellSafe
LanguageHaskell98

System.Win32.Utils

Contents

Description

Utilities for calling Win32 API

Synopsis

Documentation

try :: String -> (LPTSTR -> UINT -> IO UINT) -> UINT -> IO String Source #

Support for API calls that are passed a fixed-size buffer and tell you via the return value if the buffer was too small. In that case, we extend the buffer size and try again.

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

Maybe values

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

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

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

See also: maybePeek function.

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

See also: maybeWith function.