Win32-2.6.2.1: A binding to Windows Win32 API.
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 #