Win32-2.3.1.0: 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 HaskellSafe
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

ebx :: Int

ecx :: Int

edx :: Int

esi :: Int

edi :: Int

ebp :: Int

eip :: Int

esp :: Int

dr :: Int -> Int

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

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

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