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

Copyright | (c) Alastair Reid, 1997-2003
License | BSD-style (see the file libraries/base/LICENSE)
Maintainer | Esa Ilari Vuokko <ei@vuokko.info>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Graphics.Win32.Resource

Description

A collection of FFI declarations for interfacing with Win32.

# Documentation

beginUpdateResource :: String -> Bool -> IO HANDLE

c_BeginUpdateResource :: LPCTSTR -> Bool -> IO HANDLE

type ResourceImageType = UINT

type HRSRC = Ptr ()

type HGLOBAL = Ptr ()

iMAGE_BITMAP :: ResourceImageType

iMAGE_ICON :: ResourceImageType

iMAGE_CURSOR :: ResourceImageType

copyImage :: HANDLE -> ResourceImageType -> Int -> Int -> UINT -> IO HANDLE

c_CopyImage :: HANDLE -> ResourceImageType -> Int -> Int -> UINT -> IO HANDLE

endUpdateResource :: HANDLE -> BOOL -> IO ()

c_EndUpdateResource :: HANDLE -> BOOL -> IO Bool

type ResourceType = LPCTSTR

rT_ACCELERATOR :: ResourceType

rT_ANICURSOR :: ResourceType

rT_ANIICON :: ResourceType

rT_BITMAP :: ResourceType

rT_CURSOR :: ResourceType

rT_DIALOG :: ResourceType

rT_FONT :: ResourceType

rT_FONTDIR :: ResourceType

rT_GROUP_CURSOR :: ResourceType

rT_GROUP_ICON :: ResourceType

rT_HTML :: ResourceType

findResource :: HMODULE -> String -> ResourceType -> IO HRSRC

rT_ICON :: ResourceType

rT_MENU :: ResourceType

c_FindResource :: HMODULE -> LPCTSTR -> LPCTSTR -> IO HRSRC

rT_MESSAGETABLE :: ResourceType

rT_RCDATA :: ResourceType

findResourceEx :: HMODULE -> String -> ResourceType -> WORD -> IO HRSRC

rT_STRING :: ResourceType

rT_VERSION :: ResourceType

c_FindResourceEx :: HMODULE -> LPCTSTR -> LPCTSTR -> WORD -> IO HRSRC

type ResourceSize = Int

lR_DEFAULTSIZE :: ResourceSize

type LoadImageFlags = UINT

lR_DEFAULTCOLOR :: LoadImageFlags

lR_CREATEDIBSECTION :: LoadImageFlags

lR_LOADFROMFILE :: LoadImageFlags

lR_LOADMAP3DCOLORS :: LoadImageFlags

lR_LOADTRANSPARENT :: LoadImageFlags

lR_MONOCHROME :: LoadImageFlags

lR_SHARED :: LoadImageFlags

loadImage :: HINSTANCE -> String -> ResourceImageType -> ResourceSize -> ResourceSize -> LoadImageFlags -> IO HANDLE

c_LoadImage :: HINSTANCE -> LPCTSTR -> ResourceImageType -> ResourceSize -> ResourceSize -> LoadImageFlags -> IO HANDLE

loadResource :: HMODULE -> HRSRC -> IO HGLOBAL

c_LoadResource :: HMODULE -> HRSRC -> IO HGLOBAL

lockResource :: HGLOBAL -> IO Addr

c_LockResource :: HGLOBAL -> IO Addr

sizeofResource :: HMODULE -> HRSRC -> IO DWORD

c_SizeofResource :: HMODULE -> HRSRC -> IO DWORD

updateResource :: HANDLE -> ResourceType -> String -> WORD -> Addr -> DWORD -> IO ()

c_UpdateResource :: HANDLE -> LPCTSTR -> LPCTSTR -> WORD -> Addr -> DWORD -> IO Bool