From cf6085206feb9c661d5f6eb52c07742a5b826aed Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Wed, 25 Jul 2001 08:30:01 +0000 Subject: [PATCH] Remove unusable 'driver'. svn path=/trunk/; revision=2099 --- reactos/drivers/dd/test1/makefile | 1 - reactos/drivers/dd/test1/test.c | 65 ------------------------------- 2 files changed, 66 deletions(-) delete mode 100644 reactos/drivers/dd/test1/makefile delete mode 100644 reactos/drivers/dd/test1/test.c diff --git a/reactos/drivers/dd/test1/makefile b/reactos/drivers/dd/test1/makefile deleted file mode 100644 index 20523bea608..00000000000 --- a/reactos/drivers/dd/test1/makefile +++ /dev/null @@ -1 +0,0 @@ -all: test.o diff --git a/reactos/drivers/dd/test1/test.c b/reactos/drivers/dd/test1/test.c deleted file mode 100644 index b071e2f0d69..00000000000 --- a/reactos/drivers/dd/test1/test.c +++ /dev/null @@ -1,65 +0,0 @@ -/* - * COPYRIGHT: See COPYING in the top level directory - * PROJECT: ReactOS kernel - * FILE: services/test1/test.c - * PURPOSE: Bug demonstration - * PROGRAMMER: David Welch (welch@mcmail.com) - * UPDATE HISTORY: - * ??/??/??: Created - * 18/06/98: Made more NT like - */ - -/* FUNCTIONS **************************************************************/ - -#include -#include -#include -#include -#include -#include - -#define IDE_NT_ROOTDIR_NAME "\\Device\\" -#define IDE_NT_DEVICE_NAME "\\HardDrive" - -NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) -/* - * FUNCTION: Called by the system to initalize the driver - * ARGUMENTS: - * DriverObject = object describing this driver - * RegistryPath = path to our configuration entries - * RETURNS: Success or failure - */ -{ - char DeviceDirName[255]; - UNICODE_STRING UnicodeDeviceDirName; - ANSI_STRING AnsiDeviceDirName; - OBJECT_ATTRIBUTES DeviceDirAttributes; - HANDLE Handle; - NTSTATUS RC; - ULONG HarddiskIdx = 0; - - strcpy(DeviceDirName,IDE_NT_ROOTDIR_NAME); - strcat(DeviceDirName,IDE_NT_DEVICE_NAME); - DeviceDirName[strlen(DeviceDirName)+1]='\0'; - DeviceDirName[strlen(DeviceDirName)]= '0' + HarddiskIdx; - printk("DeviceDirName %s\n",DeviceDirName); - RtlInitAnsiString(&AnsiDeviceDirName,DeviceDirName); - RC = RtlAnsiStringToUnicodeString(&UnicodeDeviceDirName, - &AnsiDeviceDirName, - TRUE); - if (!NT_SUCCESS(RC)) - { - DPRINT("Could not convert ansi to unicode for device dir\n",0); - return(STATUS_UNSUCCESSFUL); - } - InitializeObjectAttributes(&DeviceDirAttributes,&UnicodeDeviceDirName, - 0,NULL,NULL); - RC = ZwCreateDirectoryObject(&Handle,0,&DeviceDirAttributes); - if (!NT_SUCCESS(RC)) - { - DPRINT("Could not create device dir\n",0); - return(STATUS_UNSUCCESSFUL); - } - RtlFreeUnicodeString(&UnicodeDeviceDirName); -} -