Win32-2.13.4.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

sleep :: DWORD -> IO () Source #

Processes pperations

Terminating

Toolhelp32

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

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

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

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

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

Enumerate processes using Process32First and Process32Next

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

Enumerate modules using Module32First and Module32Next