Win32-2.2.0.2: A binding to part of the Win32 librarySource codeContentsIndex
System.Win32.Mem
Portabilityportable
Stabilityprovisional
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Description
A collection of FFI declarations for interfacing with Win32.
Documentation
copyMemory :: Ptr a -> Ptr a -> DWORD -> IO ()Source
moveMemory :: Ptr a -> Ptr a -> DWORD -> IO ()Source
fillMemory :: Ptr a -> DWORD -> BYTE -> IO ()Source
zeroMemory :: Ptr a -> DWORD -> IO ()Source
memset :: Ptr a -> CInt -> CSize -> IO ()Source
getProcessHeap :: IO HANDLESource
getProcessHeaps :: DWORD -> Addr -> IO DWORDSource
type HGLOBAL = AddrSource
type GlobalAllocFlags = UINTSource
gMEM_INVALID_HANDLE :: GlobalAllocFlagsSource
gMEM_FIXED :: GlobalAllocFlagsSource
gMEM_MOVEABLE :: GlobalAllocFlagsSource
gPTR :: GlobalAllocFlagsSource
gHND :: GlobalAllocFlagsSource
gMEM_DDESHARE :: GlobalAllocFlagsSource
gMEM_SHARE :: GlobalAllocFlagsSource
gMEM_LOWER :: GlobalAllocFlagsSource
gMEM_NOCOMPACT :: GlobalAllocFlagsSource
globalAlloc :: GlobalAllocFlags -> DWORD -> IO HGLOBALSource
gMEM_NODISCARD :: GlobalAllocFlagsSource
gMEM_NOT_BANKED :: GlobalAllocFlagsSource
c_GlobalAlloc :: GlobalAllocFlags -> DWORD -> IO HGLOBALSource
gMEM_NOTIFY :: GlobalAllocFlagsSource
gMEM_ZEROINIT :: GlobalAllocFlagsSource
globalFlags :: HGLOBAL -> IO GlobalAllocFlagsSource
c_GlobalFlags :: HGLOBAL -> IO GlobalAllocFlagsSource
globalFree :: HGLOBAL -> IO HGLOBALSource
c_GlobalFree :: HGLOBAL -> IO HGLOBALSource
globalHandle :: Addr -> IO HGLOBALSource
c_GlobalHandle :: Addr -> IO HGLOBALSource
globalLock :: HGLOBAL -> IO AddrSource
c_GlobalLock :: HGLOBAL -> IO AddrSource
globalReAlloc :: HGLOBAL -> DWORD -> GlobalAllocFlags -> IO HGLOBALSource
c_GlobalReAlloc :: HGLOBAL -> DWORD -> GlobalAllocFlags -> IO HGLOBALSource
globalSize :: HGLOBAL -> IO DWORDSource
c_GlobalSize :: HGLOBAL -> IO DWORDSource
globalUnlock :: HGLOBAL -> IO ()Source
c_GlobalUnlock :: HGLOBAL -> IO BoolSource
type HeapAllocFlags = DWORDSource
hEAP_GENERATE_EXCEPTIONS :: HeapAllocFlagsSource
hEAP_NO_SERIALIZE :: HeapAllocFlagsSource
hEAP_ZERO_MEMORY :: HeapAllocFlagsSource
heapAlloc :: HANDLE -> HeapAllocFlags -> DWORD -> IO AddrSource
c_HeapAlloc :: HANDLE -> HeapAllocFlags -> DWORD -> IO AddrSource
heapCompact :: HANDLE -> HeapAllocFlags -> IO UINTSource
c_HeapCompact :: HANDLE -> HeapAllocFlags -> IO UINTSource
heapCreate :: HeapAllocFlags -> DWORD -> DWORD -> IO HANDLESource
c_HeapCreate :: HeapAllocFlags -> DWORD -> DWORD -> IO HANDLESource
heapDestroy :: HANDLE -> IO ()Source
c_HeapDestroy :: HANDLE -> IO BoolSource
heapFree :: HANDLE -> HeapAllocFlags -> Addr -> IO ()Source
c_HeapFree :: HANDLE -> HeapAllocFlags -> Addr -> IO BoolSource
heapLock :: HANDLE -> IO ()Source
c_HeapLock :: HANDLE -> IO BoolSource
heapReAlloc :: HANDLE -> HeapAllocFlags -> Addr -> DWORD -> IO AddrSource
c_HeapReAlloc :: HANDLE -> HeapAllocFlags -> Addr -> DWORD -> IO AddrSource
heapSize :: HANDLE -> HeapAllocFlags -> Addr -> IO DWORDSource
c_HeapSize :: HANDLE -> HeapAllocFlags -> Addr -> IO DWORDSource
heapUnlock :: HANDLE -> IO ()Source
c_HeapUnlock :: HANDLE -> IO BoolSource
heapValidate :: HANDLE -> HeapAllocFlags -> Addr -> IO BoolSource
type VirtualAllocFlags = DWORDSource
mEM_COMMIT :: VirtualAllocFlagsSource
mEM_RESERVE :: VirtualAllocFlagsSource
type ProtectFlags = DWORDSource
pAGE_READONLY :: ProtectFlagsSource
pAGE_READWRITE :: ProtectFlagsSource
pAGE_EXECUTE :: ProtectFlagsSource
pAGE_EXECUTE_READ :: ProtectFlagsSource
pAGE_EXECUTE_READWRITE :: ProtectFlagsSource
pAGE_GUARD :: ProtectFlagsSource
type FreeFlags = DWORDSource
pAGE_NOACCESS :: ProtectFlagsSource
mEM_DECOMMIT :: FreeFlagsSource
pAGE_NOCACHE :: ProtectFlagsSource
mEM_RELEASE :: FreeFlagsSource
virtualAlloc :: Addr -> DWORD -> VirtualAllocFlags -> ProtectFlags -> IO AddrSource
c_VirtualAlloc :: Addr -> DWORD -> DWORD -> DWORD -> IO AddrSource
virtualFree :: Addr -> DWORD -> FreeFlags -> IO ()Source
c_VirtualFree :: Addr -> DWORD -> FreeFlags -> IO BoolSource
virtualLock :: Addr -> DWORD -> IO ()Source
c_VirtualLock :: Addr -> DWORD -> IO BoolSource
virtualProtect :: Addr -> DWORD -> ProtectFlags -> IO ProtectFlagsSource
c_VirtualProtect :: Addr -> DWORD -> DWORD -> Ptr DWORD -> IO BoolSource
virtualProtectEx :: HANDLE -> Addr -> DWORD -> ProtectFlags -> IO ProtectFlagsSource
c_VirtualProtectEx :: HANDLE -> Addr -> DWORD -> DWORD -> Ptr DWORD -> IO BoolSource
virtualUnlock :: Addr -> DWORD -> IO ()Source
c_VirtualUnlock :: Addr -> DWORD -> IO BoolSource
Produced by Haddock version 2.6.1