Portability | portable |
---|---|
Stability | provisional |
Maintainer | Esa Ilari Vuokko <ei@vuokko.info> |
Safe Haskell | Trustworthy |
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 DebugEventInfo Source
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