Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. init.c
  5. Abstract:
  6. This module contains code for the initialization phase of the
  7. Microsoft Sound System device driver.
  8. Author:
  9. Noel Cross (NoelC) 16-Jul-1996
  10. Environment:
  11. Kernel mode
  12. Revision History:
  13. --*/
  14. #include <ntddk.h>
  15. #include <stdio.h>
  16. #include <stdarg.h>
  17. NTSTATUS
  18. DriverEntry(
  19. IN PDRIVER_OBJECT pDriverObject,
  20. IN PUNICODE_STRING RegistryPathName
  21. )
  22. /*++
  23. Routine Description:
  24. This is the entry point for a kernel mode driver.
  25. Arguments:
  26. pDriverObject - Pointer to a driver object.
  27. RegistryPathName - the path to our driver services node
  28. Return Value:
  29. This dummy driver just returns STATUS_UNSUCCESSFUL.
  30. --*/
  31. {
  32. //
  33. // We don't want to load a service for joyport.sys but we need
  34. // a service associated with the joystick port PnP ID so that
  35. // PNPISA can isolate the resources that we need to be able to
  36. // start the joystick driver later.
  37. //
  38. return STATUS_UNSUCCESSFUL;
  39. }