Win32-2.6.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
LanguageHaskell2010

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 #

rax :: Int #

rbx :: Int #

rcx :: Int #

rdx :: Int #

rsi :: Int #

rdi :: Int #

rbp :: Int #

rip :: Int #

rsp :: Int #

dr :: Int -> Int #

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

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

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