NtOpenFile(3w)

NtOpenFile3w

Usage

NTSTATUS NtOpenFile
(
PHANDLE handle,
ACCESS_MASK access,
POBJECT_ATTRIBUTES attr,
PIO_STATUS_BLOCK io,
ULONG sharing,
ULONG options
)

Overview

Open a file.

Params

handle [Out] Variable that receives the file handle on return.

access [In] Access desired by the caller to the file.

attr [In] Structure describing the file to be opened.

io [Out] Receives details about the result of the operation.

sharing [In] Type of shared access the caller requires.

options [In] Options for the file open.

Returns

Success: 0. FileHandle and IoStatusBlock are updated.

Failure: An NTSTATUS error code describing the error.

Implementation

Declared in "winternl.h".

Implemented in "dlls/ntdll/file.c".

Debug channel "ntdll".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.