Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

open.c File Reference

#include "iop.h"

Go to the source code of this file.

Functions

NTSTATUS NtOpenFile (OUT PHANDLE FileHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, OUT PIO_STATUS_BLOCK IoStatusBlock, IN ULONG ShareAccess, IN ULONG OpenOptions)


Function Documentation

NTSTATUS NtOpenFile OUT PHANDLE  FileHandle,
IN ACCESS_MASK  DesiredAccess,
IN POBJECT_ATTRIBUTES  ObjectAttributes,
OUT PIO_STATUS_BLOCK  IoStatusBlock,
IN ULONG  ShareAccess,
IN ULONG  OpenOptions
 

Definition at line 34 of file open.c.

References CreateFileTypeNone, IoCreateFile(), L, NULL, ObjectAttributes, and PAGED_CODE.

Referenced by LdrpCheckForLoadedDll(), LdrpCreateDllSection(), main(), RegLoadAsciiFileAsUnicode(), RegReadBinaryFile(), RtlpCheckRelativeDrive(), RtlSetCurrentDirectory_U(), SepClientOpenPipe(), and ZwOpenFile().

00045 : 00046 00047 This service opens a file or a device. It is used to establish a file 00048 handle to the open device/file that can then be used in subsequent 00049 operations to perform I/O operations on. 00050 00051 Arguments: 00052 00053 FileHandle - A pointer to a variable to receive the handle to the open file. 00054 00055 DesiredAccess - Supplies the types of access that the caller would like to 00056 the file. 00057 00058 ObjectAttributes - Supplies the attributes to be used for file object (name, 00059 SECURITY_DESCRIPTOR, etc.) 00060 00061 IoStatusBlock - Specifies the address of the caller's I/O status block. 00062 00063 ShareAccess - Supplies the types of share access that the caller would like 00064 to the file. 00065 00066 OpenOptions - Caller options for how to perform the open. 00067 00068 Return Value: 00069 00070 The function value is the final completion status of the open/create 00071 operation. 00072 00073 --*/ 00074 00075 { 00076 // 00077 // Simply invoke the common I/O file creation routine to perform the work. 00078 // 00079 00080 PAGED_CODE(); 00081 00082 return IoCreateFile( FileHandle, 00083 DesiredAccess, 00084 ObjectAttributes, 00085 IoStatusBlock, 00086 (PLARGE_INTEGER) NULL, 00087 0L, 00088 ShareAccess, 00089 FILE_OPEN, 00090 OpenOptions, 00091 (PVOID) NULL, 00092 0L, 00093 CreateFileTypeNone, 00094 (PVOID) NULL, 00095 0 ); 00096 } }


Generated on Sat May 15 19:44:59 2004 for test by doxygen 1.3.7