ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

create.c
Go to the documentation of this file.
00001 /*
00002  *  ReactOS kernel
00003  *  Copyright (C) 2002 ReactOS Team
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License along
00016  *  with this program; if not, write to the Free Software Foundation, Inc.,
00017  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00018  */
00019 /* $Id: create.c 53683 2011-09-11 08:52:59Z ekohl $
00020  *
00021  * COPYRIGHT:        See COPYING in the top level directory
00022  * PROJECT:          ReactOS kernel
00023  * FILE:             drivers/fs/mup/create.c
00024  * PURPOSE:          Multi UNC Provider
00025  * PROGRAMMER:       Eric Kohl
00026  */
00027 
00028 /* INCLUDES *****************************************************************/
00029 
00030 #include "mup.h"
00031 
00032 #define NDEBUG
00033 #include <debug.h>
00034 
00035 /* FUNCTIONS ****************************************************************/
00036 
00037 NTSTATUS NTAPI
00038 MupCreate(PDEVICE_OBJECT DeviceObject,
00039           PIRP Irp)
00040 {
00041     PDEVICE_EXTENSION DeviceExt;
00042     PIO_STACK_LOCATION Stack;
00043     PFILE_OBJECT FileObject;
00044     NTSTATUS Status;
00045 
00046     DPRINT("MupCreate() called\n");
00047 
00048     DeviceExt = DeviceObject->DeviceExtension;
00049     ASSERT(DeviceExt);
00050     Stack = IoGetCurrentIrpStackLocation (Irp);
00051     ASSERT(Stack);
00052 
00053     FileObject = Stack->FileObject;
00054 
00055     DPRINT("FileName: '%wZ'\n", &FileObject->FileName);
00056 
00057     Status = STATUS_BAD_NETWORK_PATH;
00058 
00059     Irp->IoStatus.Information = (NT_SUCCESS(Status)) ? FILE_OPENED : 0;
00060     Irp->IoStatus.Status = Status;
00061 
00062     IoCompleteRequest(Irp,
00063                       IO_NO_INCREMENT);
00064 
00065     return Status;
00066 }
00067 
00068 /* EOF */

Generated on Sun May 27 2012 04:16:59 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.