Win32-2.1.1.1: A binding to part of the Win32 librarySource codeContentsIndex
System.Win32.Types
Portabilityportable
Stabilityprovisional
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Description
A collection of FFI declarations for interfacing with Win32.
Documentation
type BOOL = BoolSource
type BYTE = Word8Source
type UCHAR = CUCharSource
type USHORT = Word16Source
type UINT = Word32Source
type INT = Int32Source
type WORD = Word16Source
type DWORD = Word32Source
type LONG = Int32Source
type FLOAT = FloatSource
type LARGE_INTEGER = Int64Source
type DDWORD = Word64Source
type MbString = Maybe StringSource
type MbINT = Maybe INTSource
type ATOM = UINTSource
type WPARAM = UINTSource
type LPARAM = LONGSource
type LRESULT = LONGSource
type SIZE_T = DWORDSource
type MbATOM = Maybe ATOMSource
type Addr = Ptr ()Source
type LPVOID = Ptr ()Source
type LPBOOL = Ptr BOOLSource
type LPBYTE = Ptr BYTESource
type PUCHAR = Ptr UCHARSource
type LPDWORD = Ptr DWORDSource
type LPSTR = Ptr CCharSource
type LPCSTR = LPSTRSource
type LPWSTR = Ptr CWcharSource
type LPCWSTR = LPWSTRSource
type LPTSTR = Ptr TCHARSource
type LPCTSTR = LPTSTRSource
type LPCTSTR_ = LPCTSTRSource
maybePtr :: Maybe (Ptr a) -> Ptr aSource
ptrToMaybe :: Ptr a -> Maybe (Ptr a)Source
maybeNum :: Num a => Maybe a -> aSource
numToMaybe :: Num a => a -> Maybe aSource
type MbLPVOID = Maybe LPVOIDSource
type MbLPCSTR = Maybe LPCSTRSource
type MbLPCTSTR = Maybe LPCTSTRSource
withTString :: String -> (LPTSTR -> IO a) -> IO aSource
withTStringLen :: String -> ((LPTSTR, Int) -> IO a) -> IO aSource
peekTString :: LPCTSTR -> IO StringSource
peekTStringLen :: (LPCTSTR, Int) -> IO StringSource
newTString :: String -> IO LPCTSTRSource
type TCHAR = CWcharSource
type HANDLE = Ptr ()Source
type ForeignHANDLE = ForeignPtr ()Source
newForeignHANDLE :: HANDLE -> IO ForeignHANDLESource
handleToWord :: HANDLE -> UINTSource
type HKEY = ForeignHANDLESource
type PKEY = HANDLESource
nullHANDLE :: HANDLESource
type MbHANDLE = Maybe HANDLESource
type HINSTANCE = Ptr ()Source
type MbHINSTANCE = Maybe HINSTANCESource
type HMODULE = Ptr ()Source
type MbHMODULE = Maybe HMODULESource
nullFinalHANDLE :: ForeignPtr aSource
iNVALID_HANDLE_VALUE :: HANDLESource
type ErrCode = DWORDSource
failIf :: (a -> Bool) -> String -> IO a -> IO aSource
failIf_ :: (a -> Bool) -> String -> IO a -> IO ()Source
failIfNull :: String -> IO (Ptr a) -> IO (Ptr a)Source
failIfZero :: Num a => String -> IO a -> IO aSource
failIfFalse_ :: String -> IO Bool -> IO ()Source
failUnlessSuccess :: String -> IO ErrCode -> IO ()Source
failUnlessSuccessOr :: ErrCode -> String -> IO ErrCode -> IO BoolSource
errorWin :: String -> IO aSource
failWith :: String -> ErrCode -> IO aSource
ddwordToDwords :: DDWORD -> (DWORD, DWORD)Source
dwordsToDdword :: (DWORD, DWORD) -> DDWORDSource
deleteObjectFinaliser :: FunPtr (Ptr a -> IO ())Source
localFree :: Ptr a -> IO (Ptr a)Source
getLastError :: IO ErrCodeSource
getErrorMessage :: DWORD -> IO LPWSTRSource
lOWORD :: DWORD -> WORDSource
hIWORD :: DWORD -> WORDSource
castUINTToPtr :: UINT -> Ptr aSource
castPtrToUINT :: Ptr s -> UINTSource
castFunPtrToLONG :: FunPtr a -> LONGSource
type LCID = DWORDSource
type LANGID = WORDSource
type SortID = WORDSource
mAKELCID :: LANGID -> SortID -> LCIDSource
lANGIDFROMLCID :: LCID -> LANGIDSource
sORTIDFROMLCID :: LCID -> SortIDSource
type SubLANGID = WORDSource
type PrimaryLANGID = WORDSource
mAKELANGID :: PrimaryLANGID -> SubLANGID -> LANGIDSource
pRIMARYLANGID :: LANGID -> PrimaryLANGIDSource
sUBLANGID :: LANGID -> SubLANGIDSource
nullPtr
Produced by Haddock version 0.8