Source code of Windows XP (NT5)
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.

71 lines
1.7 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Module: device.c
  4. //
  5. // Description:
  6. //
  7. //
  8. //@@BEGIN_MSINTERNAL
  9. // Development Team:
  10. // S.Mohanraj
  11. // M.McLaughlin
  12. //
  13. // History: Date Author Comment
  14. //
  15. //@@END_MSINTERNAL
  16. //---------------------------------------------------------------------------
  17. //
  18. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  19. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  20. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  21. // PURPOSE.
  22. //
  23. // Copyright (c) 1995 Microsoft Corporation. All Rights Reserved.
  24. //
  25. //---------------------------------------------------------------------------
  26. #define IRPMJFUNCDESC
  27. //#define MAX_DEBUG 1
  28. #include "common.h"
  29. #include "rt.h"
  30. #include "sequence.h"
  31. VOID DriverUnload(
  32. IN PDRIVER_OBJECT DriverObject
  33. )
  34. {
  35. //dprintf((" DriverUnload Enter (DriverObject = %x)", DriverObject));
  36. Trap();
  37. }
  38. extern testmidi;
  39. //---------------------------------------------------------------------------
  40. //---------------------------------------------------------------------------
  41. NTSTATUS DriverEntry
  42. (
  43. IN PDRIVER_OBJECT DriverObject,
  44. IN PUNICODE_STRING usRegistryPathName
  45. )
  46. {
  47. NTSTATUS Status = STATUS_SUCCESS;
  48. DriverObject->DriverUnload = DriverUnload;
  49. // For now, keep the driver loaded always.
  50. ObReferenceObject(DriverObject);
  51. Status=RtCreateThread(1*MSEC,15*USEC,0,2,PlayMidi,(PVOID)testmidi,NULL);
  52. return Status;
  53. }
  54. //---------------------------------------------------------------------------
  55. // End of File: device.c
  56. //---------------------------------------------------------------------------