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

Copyright(c) Esa Ilari Vuokko, 2006
LicenseBSD-style (see the file LICENSE)
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Stabilityprovisional
Portabilityportable
Safe HaskellTrustworthy
LanguageHaskell98

System.Win32.DebugApi

Description

A collection of FFI declarations for using Windows DebugApi.

Documentation

type PID = DWORD

type TID = DWORD

type DebugEventId = (PID, TID)

type PHANDLE = Ptr ()

type THANDLE = Ptr ()

withProcessMemory :: PHANDLE -> ForeignAddress -> Int -> (Ptr a -> IO b) -> IO b

pokeP :: Storable a => PHANDLE -> ForeignAddress -> a -> IO ()

useAllRegs :: Ptr a -> IO ()

withThreadContext :: THANDLE -> (Ptr a -> IO b) -> IO b

eax :: Int

edx :: Int

ecx :: Int

ebx :: Int

esi :: Int

edi :: Int

ebp :: Int

esp :: Int

eip :: Int

dr :: Int -> Int

setReg :: Ptr a -> Int -> DWORD -> IO ()

getReg :: Ptr a -> Int -> IO DWORD

modReg :: Ptr a -> Int -> (DWORD -> DWORD) -> IO DWORD