no need to create a symbolic link in \??
[reactos.git] / reactos / drivers / dd / beep / beep.c
index 7aace6a..939228d 100644 (file)
 #define NDEBUG
 #include <debug.h>
 
+NTSTATUS STDCALL
+DriverEntry(PDRIVER_OBJECT DriverObject,
+            PUNICODE_STRING RegistryPath);
+
 /* TYEPEDEFS ***************************************************************/
 
 typedef struct _BEEP_DEVICE_EXTENSION
@@ -177,9 +181,8 @@ BeepDeviceControl(PDEVICE_OBJECT DeviceObject,
 
   /* do the beep!! */
   DPRINT("Beep:\n  Freq: %lu Hz\n  Dur: %lu ms\n",
-        pbsp->Frequency,
-        pbsp->Duration);
-
+        BeepParam->Frequency,
+        BeepParam->Duration);
   if (BeepParam->Duration >= 0)
     {
       DueTime.QuadPart = (LONGLONG)BeepParam->Duration * -10000;
@@ -240,7 +243,6 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
   PDEVICE_EXTENSION DeviceExtension;
   PDEVICE_OBJECT DeviceObject;
   UNICODE_STRING DeviceName = RTL_CONSTANT_STRING(L"\\Device\\Beep");
-  UNICODE_STRING SymlinkName = RTL_CONSTANT_STRING(L"\\??\\Beep");
   NTSTATUS Status;
 
   DPRINT("Beep Device Driver 0.0.3\n");
@@ -274,10 +276,6 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
                    SynchronizationEvent,
                    FALSE);
 
-  /* Create the dos device link */
-  IoCreateSymbolicLink(&SymlinkName,
-                      &DeviceName);
-
   return(STATUS_SUCCESS);
 }