Copyright | (c) Esa Ilari Vuokko, 2006 |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Esa Ilari Vuokko <ei@vuokko.info> |
Stability | provisional |
Portability | portable |
Safe Haskell | Trustworthy |
Language | Haskell98 |
A collection of FFI declarations for using Windows DebugApi.
Documentation
type DebugEventId = (PID, TID) Source
type ForeignAddress = Word32 Source
type ThreadInfo = (THANDLE, ForeignAddress, ForeignAddress) Source
type ImageInfo = (HANDLE, ForeignAddress, DWORD, DWORD, ForeignAddress) Source
type ExceptionInfo = (Bool, Bool, ForeignAddress) Source
data DebugEventInfo Source
type DebugEvent = (DebugEventId, DebugEventInfo) Source
peekDebugEvent :: Ptr a -> IO DebugEvent Source
waitForDebugEvent :: Maybe Int -> IO (Maybe DebugEvent) Source
getDebugEvents :: Int -> IO [DebugEvent] Source
continueDebugEvent :: DebugEventId -> Bool -> IO () Source
debugActiveProcess :: PID -> IO () Source
peekProcessMemory :: PHANDLE -> ForeignAddress -> Int -> Ptr a -> IO () Source
readProcessMemory :: PHANDLE -> ForeignAddress -> Int -> IO (ForeignPtr a) Source
pokeProcessMemory :: PHANDLE -> ForeignAddress -> Int -> Ptr a -> IO () Source
withProcessMemory :: PHANDLE -> ForeignAddress -> Int -> (Ptr a -> IO b) -> IO b Source
suspendThread :: THANDLE -> IO DWORD Source
resumeThread :: THANDLE -> IO DWORD Source
withSuspendedThread :: THANDLE -> IO a -> IO a Source
getThreadContext :: THANDLE -> Ptr a -> IO () Source
setThreadContext :: THANDLE -> Ptr a -> IO () Source
useAllRegs :: Ptr a -> IO () Source
outputDebugString :: String -> IO () Source
c_SuspendThread :: THANDLE -> IO DWORD Source
c_ResumeThread :: THANDLE -> IO DWORD Source
c_DebugActiveProcess :: DWORD -> IO Bool Source
c_OutputDebugString :: LPTSTR -> IO () Source
debugBreak :: IO () Source