Win32-2.1.1.0: A binding to part of the Win32 librarySource codeContentsIndex
System.Win32.Process
Portabilityportable
Stabilityprovisional
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Description
A collection of FFI declarations for interfacing with Win32.
Synopsis
iNFINITE :: DWORD
sleep :: DWORD -> IO ()
type ProcessId = DWORD
type ProcessHandle = HANDLE
type ProcessAccessRights = DWORD
pROCESS_ALL_ACCESS :: ProcessAccessRights
pROCESS_CREATE_PROCESS :: ProcessAccessRights
pROCESS_CREATE_THREAD :: ProcessAccessRights
pROCESS_DUP_HANDLE :: ProcessAccessRights
pROCESS_QUERY_INFORMATION :: ProcessAccessRights
pROCESS_SET_QUOTA :: ProcessAccessRights
pROCESS_SET_INFORMATION :: ProcessAccessRights
pROCESS_TERMINATE :: ProcessAccessRights
pROCESS_VM_OPERATION :: ProcessAccessRights
pROCESS_VM_READ :: ProcessAccessRights
pROCESS_VM_WRITE :: ProcessAccessRights
sYNCHORNIZE :: ProcessAccessRights
c_OpenProcess :: ProcessAccessRights -> BOOL -> ProcessId -> IO ProcessHandle
openProcess :: ProcessAccessRights -> BOOL -> ProcessId -> IO ProcessHandle
type Th32SnapHandle = HANDLE
type Th32SnapFlags = DWORD
type ProcessEntry32 = (ProcessId, Int, ProcessId, LONG, String)
tH32CS_SNAPALL :: Th32SnapFlags
tH32CS_SNAPHEAPLIST :: Th32SnapFlags
tH32CS_SNAPMODULE :: Th32SnapFlags
tH32CS_SNAPPROCESS :: Th32SnapFlags
tH32CS_SNAPTHREAD :: Th32SnapFlags
c_CreateToolhelp32Snapshot :: Th32SnapFlags -> ProcessId -> IO Th32SnapHandle
c_Process32First :: Th32SnapHandle -> Ptr ProcessEntry32 -> IO BOOL
c_Process32Next :: Th32SnapHandle -> Ptr ProcessEntry32 -> IO BOOL
createToolhelp32Snapshot :: Th32SnapFlags -> Maybe ProcessId -> IO Th32SnapHandle
withTh32Snap :: Th32SnapFlags -> Maybe ProcessId -> (Th32SnapHandle -> IO a) -> IO a
peekProcessEntry32 :: Ptr ProcessEntry32 -> IO ProcessEntry32
th32SnapEnumProcesses :: Th32SnapHandle -> IO [ProcessEntry32]
Documentation
iNFINITE :: DWORDSource
sleep :: DWORD -> IO ()Source
type ProcessId = DWORDSource
type ProcessHandle = HANDLESource
type ProcessAccessRights = DWORDSource
pROCESS_ALL_ACCESS :: ProcessAccessRightsSource
pROCESS_CREATE_PROCESS :: ProcessAccessRightsSource
pROCESS_CREATE_THREAD :: ProcessAccessRightsSource
pROCESS_DUP_HANDLE :: ProcessAccessRightsSource
pROCESS_QUERY_INFORMATION :: ProcessAccessRightsSource
pROCESS_SET_QUOTA :: ProcessAccessRightsSource
pROCESS_SET_INFORMATION :: ProcessAccessRightsSource
pROCESS_TERMINATE :: ProcessAccessRightsSource
pROCESS_VM_OPERATION :: ProcessAccessRightsSource
pROCESS_VM_READ :: ProcessAccessRightsSource
pROCESS_VM_WRITE :: ProcessAccessRightsSource
sYNCHORNIZE :: ProcessAccessRightsSource
c_OpenProcess :: ProcessAccessRights -> BOOL -> ProcessId -> IO ProcessHandleSource
openProcess :: ProcessAccessRights -> BOOL -> ProcessId -> IO ProcessHandleSource
type Th32SnapHandle = HANDLESource
type Th32SnapFlags = DWORDSource
type ProcessEntry32 = (ProcessId, Int, ProcessId, LONG, String)Source
ProcessId, number of threads, parent ProcessId, process base priority, path of executable file
tH32CS_SNAPALL :: Th32SnapFlagsSource
tH32CS_SNAPHEAPLIST :: Th32SnapFlagsSource
tH32CS_SNAPMODULE :: Th32SnapFlagsSource
tH32CS_SNAPPROCESS :: Th32SnapFlagsSource
tH32CS_SNAPTHREAD :: Th32SnapFlagsSource
c_CreateToolhelp32Snapshot :: Th32SnapFlags -> ProcessId -> IO Th32SnapHandleSource
c_Process32First :: Th32SnapHandle -> Ptr ProcessEntry32 -> IO BOOLSource
c_Process32Next :: Th32SnapHandle -> Ptr ProcessEntry32 -> IO BOOLSource
createToolhelp32Snapshot :: Th32SnapFlags -> Maybe ProcessId -> IO Th32SnapHandleSource
Create a snapshot of specified resources. Call closeHandle to close snapshot.
withTh32Snap :: Th32SnapFlags -> Maybe ProcessId -> (Th32SnapHandle -> IO a) -> IO aSource
peekProcessEntry32 :: Ptr ProcessEntry32 -> IO ProcessEntry32Source
th32SnapEnumProcesses :: Th32SnapHandle -> IO [ProcessEntry32]Source
Enumerate processes using Process32First and Process32Next
Produced by Haddock version 0.8