3 * Copyright (C) 2002 ReactOS Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 * COPYRIGHT: See COPYING in the top level directory
22 * PROJECT: ReactOS kernel
23 * FILE: drivers/fs/mup/mup.c
24 * PURPOSE: Multi UNC Provider
25 * PROGRAMMER: Eric Kohl
28 /* INCLUDES *****************************************************************/
35 /* GLOBALS *****************************************************************/
38 /* FUNCTIONS ****************************************************************/
41 * FUNCTION: Called by the system to initalize the driver
43 * DriverObject = object describing this driver
44 * RegistryPath = path to our configuration entries
45 * RETURNS: Success or failure
48 DriverEntry(PDRIVER_OBJECT DriverObject
,
49 PUNICODE_STRING RegistryPath
)
51 PDEVICE_OBJECT DeviceObject
;
53 UNICODE_STRING DeviceName
;
55 DPRINT("MUP 0.0.1\n");
57 RtlInitUnicodeString(&DeviceName
,
59 Status
= IoCreateDevice(DriverObject
,
60 sizeof(DEVICE_EXTENSION
),
62 FILE_DEVICE_MULTI_UNC_PROVIDER
,
66 if (!NT_SUCCESS(Status
))
71 /* Initialize driver data */
72 DeviceObject
->Flags
|= DO_DIRECT_IO
;
73 // DriverObject->MajorFunction[IRP_MJ_CLOSE] = NtfsClose;
74 DriverObject
->MajorFunction
[IRP_MJ_CREATE
] = MupCreate
;
75 DriverObject
->MajorFunction
[IRP_MJ_CREATE_NAMED_PIPE
] = MupCreate
;
76 DriverObject
->MajorFunction
[IRP_MJ_CREATE_MAILSLOT
] = MupCreate
;
77 // DriverObject->MajorFunction[IRP_MJ_READ] = NtfsRead;
78 // DriverObject->MajorFunction[IRP_MJ_WRITE] = NtfsWrite;
79 // DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] =
80 // NtfsFileSystemControl;
81 // DriverObject->MajorFunction[IRP_MJ_DIRECTORY_CONTROL] =
82 // NtfsDirectoryControl;
83 // DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] =
84 // NtfsQueryInformation;
85 // DriverObject->MajorFunction[IRP_MJ_QUERY_VOLUME_INFORMATION] =
86 // NtfsQueryVolumeInformation;
87 // DriverObject->MajorFunction[IRP_MJ_SET_VOLUME_INFORMATION] =
88 // NtfsSetVolumeInformation;
90 DriverObject
->DriverUnload
= NULL
;
93 /* Initialize global data */
94 // DeviceExtensionNtfsGlobalData = DeviceObject->DeviceExtension;
95 // RtlZeroMemory(NtfsGlobalData,
96 // sizeof(NTFS_GLOBAL_DATA));
97 // NtfsGlobalData->DriverObject = DriverObject;
98 // NtfsGlobalData->DeviceObject = DeviceObject;
100 return STATUS_SUCCESS
;