W3cubDocs

/Haskell 8

System.Win32.Process

Copyright (c) Alastair Reid, 1997-2003
License BSD-style (see the file libraries/base/LICENSE)
Maintainer Esa Ilari Vuokko <ei@vuokko.info>
Stability provisional
Portability portable
Safe Haskell Safe
Language Haskell98

Description

A collection of FFI declarations for interfacing with Win32.

iNFINITE :: DWORD Source

sleep :: DWORD -> IO () Source

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

c_OpenProcess :: ProcessAccessRights -> BOOL -> ProcessId -> IO ProcessHandle Source

pROCESS_VM_OPERATION :: ProcessAccessRights Source

pROCESS_VM_READ :: ProcessAccessRights Source

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

pROCESS_VM_WRITE :: ProcessAccessRights Source

sYNCHORNIZE :: ProcessAccessRights Source

c_GetProcessId :: ProcessHandle -> IO ProcessId Source

getProcessId :: ProcessHandle -> IO ProcessId Source

type Th32SnapHandle = HANDLE Source

type Th32SnapFlags = DWORD Source

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

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

tH32CS_SNAPALL :: Th32SnapFlags Source

tH32CS_SNAPHEAPLIST :: Th32SnapFlags Source

tH32CS_SNAPMODULE :: Th32SnapFlags Source

tH32CS_SNAPPROCESS :: Th32SnapFlags Source

tH32CS_SNAPTHREAD :: Th32SnapFlags Source

c_CreateToolhelp32Snapshot :: Th32SnapFlags -> ProcessId -> IO Th32SnapHandle Source

c_Process32First :: Th32SnapHandle -> Ptr ProcessEntry32 -> IO BOOL Source

c_Process32Next :: Th32SnapHandle -> Ptr ProcessEntry32 -> IO BOOL 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

peekProcessEntry32 :: Ptr ProcessEntry32 -> IO ProcessEntry32 Source

th32SnapEnumProcesses :: Th32SnapHandle -> IO [ProcessEntry32] Source

Enumerate processes using Process32First and Process32Next

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.0.1/docs/html/libraries/Win32-2.3.1.1/System-Win32-Process.html