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

Portabilityportable
Stabilityprovisional
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Safe HaskellTrustworthy

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 -> aSource

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

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

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

type HANDLE = Ptr ()Source

type HMODULE = Ptr ()Source

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 :: (Eq a, Num a) => String -> IO a -> IO aSource

nullPtr :: Ptr aSource

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