VOID
CdSetFileObject(
  IN  PIRP_CONTEXT IrpContext,
  IN  PFILE_OBJECT FileObject,
  IN  TYPE_OF_OPEN TypeOfOpen,
  IN  PFCB Fcb OPTIONAL,
  IN  PCCB Ccb OPTIONAL
  );

Routine Description:

    This routine will initialize the FileObject context fields based on the
    input type and data structures.

Arguments:

    FileObject - Supplies the file object pointer being initialized.

    TypeOfOpen - Sets the type of open.

    Fcb - Fcb for this file object.  Ignored for UnopenedFileObject.

    Ccb - Ccb for the handle corresponding to this file object.  Will not
        be present for stream file objects.

Return Value:

    None.