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

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

System.Win32.Types

Description

A collection of FFI declarations for interfacing with Win32.

Synopsis

Documentation

type Addr = Ptr () Source

type LPVOID = Ptr () Source

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

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

withTString :: String -> (LPTSTR -> IO a) -> IO a Source

withTStringLen :: String -> ((LPTSTR, Int) -> IO a) -> IO a Source

type HANDLE = Ptr () Source

type HINSTANCE = Ptr () Source

type HMODULE = Ptr () Source

failIf :: (a -> Bool) -> String -> IO a -> IO a Source

failIf_ :: (a -> Bool) -> String -> IO a -> IO () Source

failIfNull :: String -> IO (Ptr a) -> IO (Ptr a) Source

failIfZero :: (Eq a, Num a) => String -> IO a -> IO a Source

localFree :: Ptr a -> IO (Ptr a) Source

nullPtr :: Ptr a Source

The constant nullPtr contains a distinguished value of Ptr that is not associated with a valid memory location.