Win32-2.3.0.0: A binding to part of the Win32 library

Portabilityportable
Stabilityprovisional
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Safe HaskellTrustworthy

System.Win32.Process

Description

A collection of FFI declarations for interfacing with Win32.

Synopsis

Documentation

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 Th32SnapHandleSource

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

th32SnapEnumProcesses :: Th32SnapHandle -> IO [ProcessEntry32]Source

Enumerate processes using Process32First and Process32Next