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 = Word32Source
type ThreadInfo = (THANDLE, ForeignAddress, ForeignAddress)Source
type ImageInfo = (HANDLE, ForeignAddress, DWORD, DWORD, ForeignAddress)Source
type ExceptionInfo = (Bool, Bool, ForeignAddress)Source
data DebugEventInfoSource
type DebugEvent = (DebugEventId, DebugEventInfo)Source
peekDebugEvent :: Ptr a -> IO DebugEventSource
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 bSource
suspendThread :: THANDLE -> IO DWORDSource
resumeThread :: THANDLE -> IO DWORDSource
withSuspendedThread :: THANDLE -> IO a -> IO aSource
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 DWORDSource
c_ResumeThread :: THANDLE -> IO DWORDSource
c_OutputDebugString :: LPTSTR -> IO ()Source
debugBreak :: IO ()Source