Win32-2.14.1.0: A binding to Windows Win32 API.
Copyright(c) Alastair Reid 1997-2003
LicenseBSD-style (see the file libraries/base/LICENSE)
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

System.Win32.Process

Description

A collection of FFI declarations for interfacing with Win32.

Synopsis

Sleeping

iNFINITE :: DWORD Source #

sleep :: DWORD -> IO () Source #

Processes pperations

type ProcessId = DWORD Source #

type ProcessHandle = HANDLE Source #

type ProcessAccessRights = DWORD Source #

pROCESS_ALL_ACCESS :: ProcessAccessRights Source #

pROCESS_CREATE_PROCESS :: ProcessAccessRights Source #

pROCESS_CREATE_THREAD :: ProcessAccessRights Source #

pROCESS_DUP_HANDLE :: ProcessAccessRights Source #

pROCESS_QUERY_INFORMATION :: ProcessAccessRights Source #

pROCESS_SET_QUOTA :: ProcessAccessRights Source #

pROCESS_SET_INFORMATION :: ProcessAccessRights Source #

pROCESS_TERMINATE :: ProcessAccessRights Source #

pROCESS_VM_OPERATION :: ProcessAccessRights Source #

pROCESS_VM_READ :: ProcessAccessRights Source #

pROCESS_VM_WRITE :: ProcessAccessRights Source #

openProcess :: ProcessAccessRights -> BOOL -> ProcessId -> IO ProcessHandle Source #

getProcessId :: ProcessHandle -> IO ProcessId Source #

getCurrentProcessId :: IO ProcessId Source #

getCurrentProcess :: IO ProcessHandle Source #

Terminating

terminateProcessById :: ProcessId -> IO () Source #

Toolhelp32

type Th32SnapHandle = HANDLE Source #

type Th32SnapFlags = DWORD Source #

tH32CS_SNAPALL :: Th32SnapFlags Source #

tH32CS_SNAPHEAPLIST :: Th32SnapFlags Source #

tH32CS_SNAPMODULE :: Th32SnapFlags Source #

tH32CS_SNAPMODULE32 :: Th32SnapFlags Source #

tH32CS_SNAPMODULE64 :: Th32SnapFlags Source #

tH32CS_SNAPPROCESS :: Th32SnapFlags Source #

tH32CS_SNAPTHREAD :: Th32SnapFlags Source #

type ProcessEntry32 = (ProcessId, Int, ProcessId, LONG, String) Source #

ProcessId, number of threads, parent ProcessId, process base priority, path of executable file

type ModuleEntry32 = (ForeignAddress, Int, HMODULE, String, String) Source #

createToolhelp32Snapshot :: Th32SnapFlags -> Maybe ProcessId -> IO Th32SnapHandle Source #

Create a snapshot of specified resources. Call closeHandle to close snapshot.

withTh32Snap :: Th32SnapFlags -> Maybe ProcessId -> (Th32SnapHandle -> IO a) -> IO a Source #

th32SnapEnumProcesses :: Th32SnapHandle -> IO [ProcessEntry32] Source #

Enumerate processes using Process32First and Process32Next

th32SnapEnumModules :: Th32SnapHandle -> IO [ModuleEntry32] Source #

Enumerate modules using Module32First and Module32Next

AltStyle によって変換されたページ (->オリジナル) /