mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 05:52:56 +00:00
Now ZwLoadDriver() uses the registry path instead of a file name to load a driver.
svn path=/trunk/; revision=3059
This commit is contained in:
parent
9d3870ce78
commit
6f7c3842bc
3 changed files with 6 additions and 18 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: cdfs.c,v 1.3 2002/05/28 16:11:17 ekohl Exp $
|
/* $Id: cdfs.c,v 1.4 2002/06/12 23:35:55 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -119,12 +119,8 @@ FsRecCdfsFsControl(IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
case IRP_MN_LOAD_FILE_SYSTEM:
|
case IRP_MN_LOAD_FILE_SYSTEM:
|
||||||
DPRINT("Cdfs: IRP_MN_LOAD_FILE_SYSTEM\n");
|
DPRINT("Cdfs: IRP_MN_LOAD_FILE_SYSTEM\n");
|
||||||
#if 0
|
|
||||||
RtlInitUnicodeString(&RegistryPath,
|
RtlInitUnicodeString(&RegistryPath,
|
||||||
L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Services\\Cdfs");
|
L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Cdfs");
|
||||||
#endif
|
|
||||||
RtlInitUnicodeString(&RegistryPath,
|
|
||||||
L"\\SystemRoot\\system32\\drivers\\cdfs.sys");
|
|
||||||
Status = ZwLoadDriver(&RegistryPath);
|
Status = ZwLoadDriver(&RegistryPath);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: fat.c,v 1.2 2002/05/15 18:02:59 ekohl Exp $
|
/* $Id: fat.c,v 1.3 2002/06/12 23:35:55 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -117,12 +117,8 @@ FsRecVfatFsControl(IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
case IRP_MN_LOAD_FILE_SYSTEM:
|
case IRP_MN_LOAD_FILE_SYSTEM:
|
||||||
DPRINT("FAT: IRP_MN_LOAD_FILE_SYSTEM\n");
|
DPRINT("FAT: IRP_MN_LOAD_FILE_SYSTEM\n");
|
||||||
#if 0
|
|
||||||
RtlInitUnicodeString(&RegistryPath,
|
RtlInitUnicodeString(&RegistryPath,
|
||||||
L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Services\\Vfatfs");
|
L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Vfatfs");
|
||||||
#endif
|
|
||||||
RtlInitUnicodeString(&RegistryPath,
|
|
||||||
L"\\SystemRoot\\system32\\drivers\\vfatfs.sys");
|
|
||||||
Status = ZwLoadDriver(&RegistryPath);
|
Status = ZwLoadDriver(&RegistryPath);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: ntfs.c,v 1.3 2002/05/28 16:11:17 ekohl Exp $
|
/* $Id: ntfs.c,v 1.4 2002/06/12 23:35:55 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -118,12 +118,8 @@ FsRecNtfsFsControl(IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
case IRP_MN_LOAD_FILE_SYSTEM:
|
case IRP_MN_LOAD_FILE_SYSTEM:
|
||||||
DPRINT("NTFS: IRP_MN_LOAD_FILE_SYSTEM\n");
|
DPRINT("NTFS: IRP_MN_LOAD_FILE_SYSTEM\n");
|
||||||
#if 0
|
|
||||||
RtlInitUnicodeString(&RegistryPath,
|
RtlInitUnicodeString(&RegistryPath,
|
||||||
L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Services\\Ntfs");
|
L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Ntfs");
|
||||||
#endif
|
|
||||||
RtlInitUnicodeString(&RegistryPath,
|
|
||||||
L"\\SystemRoot\\system32\\drivers\\ntfs.sys");
|
|
||||||
Status = ZwLoadDriver(&RegistryPath);
|
Status = ZwLoadDriver(&RegistryPath);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue