Copyright | (c) Alastair Reid, 1997-2003 |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | Esa Ilari Vuokko <[email protected]> |
Stability | provisional |
Portability | portable |
Safe Haskell | Trustworthy |
Language | Haskell98 |
A collection of FFI declarations for interfacing with Win32.
type LARGE_INTEGER = Int64 Source
type MbString = Maybe String Source
type MbATOM = Maybe ATOM Source
type PUCHAR = Ptr UCHAR Source
type LPDWORD = Ptr DWORD Source
type LPWSTR = Ptr CWchar Source
type LPTSTR = Ptr TCHAR Source
type LPCTSTR_ = LPCTSTR Source
maybePtr :: Maybe (Ptr a) -> Ptr a Source
ptrToMaybe :: Ptr a -> Maybe (Ptr a) Source
maybeNum :: Num a => Maybe a -> a Source
numToMaybe :: (Eq a, Num a) => a -> Maybe a Source
type MbLPVOID = Maybe LPVOID Source
type MbLPCSTR = Maybe LPCSTR Source
type MbLPCTSTR = Maybe LPCTSTR Source
withTString :: String -> (LPTSTR -> IO a) -> IO a Source
withTStringLen :: String -> ((LPTSTR, Int) -> IO a) -> IO a Source
peekTString :: LPCTSTR -> IO String Source
peekTStringLen :: (LPCTSTR, Int) -> IO String Source
newTString :: String -> IO LPCTSTR Source
type ForeignHANDLE = ForeignPtr () Source
newForeignHANDLE :: HANDLE -> IO ForeignHANDLE Source
handleToWord :: HANDLE -> UINT_PTR Source
type HKEY = ForeignHANDLE Source
type MbHANDLE = Maybe HANDLE Source
type HINSTANCE = Ptr () Source
type MbHINSTANCE = Maybe HINSTANCE Source
type MbHMODULE = Maybe HMODULE Source
nullFinalHANDLE :: ForeignPtr a Source
iNVALID_HANDLE_VALUE :: HANDLE 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
failIfFalse_ :: String -> IO Bool -> IO () Source
failUnlessSuccess :: String -> IO ErrCode -> IO () Source
failUnlessSuccessOr :: ErrCode -> String -> IO ErrCode -> IO Bool Source
errorWin :: String -> IO a Source
failWith :: String -> ErrCode -> IO a Source
c_maperrno :: IO () Source
ddwordToDwords :: DDWORD -> (DWORD, DWORD) Source
dwordsToDdword :: (DWORD, DWORD) -> DDWORD Source
deleteObjectFinaliser :: FunPtr (Ptr a -> IO ()) Source
localFree :: Ptr a -> IO (Ptr a) Source
getLastError :: IO ErrCode Source
getErrorMessage :: DWORD -> IO LPWSTR Source
lOWORD :: DWORD -> WORD Source
hIWORD :: DWORD -> WORD Source
castUINTPtrToPtr :: UINT_PTR -> Ptr a Source
castPtrToUINTPtr :: Ptr s -> UINT_PTR Source
mAKELCID :: LANGID -> SortID -> LCID Source
lANGIDFROMLCID :: LCID -> LANGID Source
sORTIDFROMLCID :: LCID -> SortID Source
type PrimaryLANGID = WORD Source
mAKELANGID :: PrimaryLANGID -> SubLANGID -> LANGID Source
pRIMARYLANGID :: LANGID -> PrimaryLANGID Source
sUBLANGID :: LANGID -> SubLANGID Source
The constant nullPtr
contains a distinguished value of Ptr
that is not associated with a valid memory location.
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/7.10.3/docs/html/libraries/Win32-2.3.1.0/System-Win32-Types.html