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
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 }
}