.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH OpenProcess 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBOpenProcess\fR (KERNEL32.@) .SH SYNOPSIS HANDLE OpenProcess ( DWORD \fIaccess\fR, BOOL \fIinherit\fR, DWORD \fIid\fR ) .SH DESCRIPTION .PP Opens a handle to a process. .SH PARAMS \fIaccess\fR \fB[In]\fR Desired \fIaccess\fR rights assigned to the returned handle. .PP \fIinherit\fR \fB[In]\fR Determines whether or not child processes will \fIinherit\fR the handle. .PP \fIid\fR \fB[In]\fR Process identifier of the process to get a handle to. .PP .SH RETURNS .PP \fBSuccess:\fR Valid handle to the specified process. .PP \fBFailure:\fR \fBNULL\fR, check \fBGetLastError(3w)\fR. .SH IMPLEMENTATION .PP Declared in \fB"winbase.h"\fR. .PP Implemented in \fB"dlls/kernel32/process.c"\fR. .PP Debug channel \fB"process"\fR.