.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH NtOpenFile 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBNtOpenFile\fR (NTDLL.@) .SH SYNOPSIS NTSTATUS NtOpenFile ( PHANDLE \fIhandle\fR, ACCESS_MASK \fIaccess\fR, POBJECT_ATTRIBUTES \fIattr\fR, PIO_STATUS_BLOCK \fIio\fR, ULONG \fIsharing\fR, ULONG \fIoptions\fR ) .SH DESCRIPTION .PP Open a file. .SH PARAMS \fIhandle\fR \fB[Out]\fR Variable that receives the file \fIhandle\fR on return. .PP \fIaccess\fR \fB[In]\fR Access desired by the caller to the file. .PP \fIattr\fR \fB[In]\fR Structure describing the file to be opened. .PP \fIio\fR \fB[Out]\fR Receives details about the result of the operation. .PP \fIsharing\fR \fB[In]\fR Type of shared \fIaccess\fR the caller requires. .PP \fIoptions\fR \fB[In]\fR Options for the file open. .PP .SH RETURNS .PP \fBSuccess:\fR \fB0.\fR FileHandle and IoStatusBlock are updated. .PP \fBFailure:\fR An \fBNTSTATUS\fR error code describing the error. .SH IMPLEMENTATION .PP Declared in \fB"winternl.h"\fR. .PP Implemented in \fB"dlls/ntdll/file.c"\fR. .PP Debug channel \fB"ntdll"\fR.