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.

72 lines
1.3 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1998 - 1999
  3. Module Name:
  4. device.cpp
  5. Abstract:
  6. This module contains the device implementation for audio.sys.
  7. Author:
  8. Frank Yerrace (FrankYe) 18-Sep-2000
  9. Dale Sather (DaleSat) 31-Jul-1998
  10. --*/
  11. #include "private.h"
  12. //
  13. // Filters table.
  14. //
  15. const KSFILTER_DESCRIPTOR* FilterDescriptors[] =
  16. {
  17. NULL // Placeholder for DRM fitler descriptor
  18. };
  19. const
  20. KSDEVICE_DESCRIPTOR
  21. DeviceDescriptor =
  22. {
  23. NULL,
  24. SIZEOF_ARRAY(FilterDescriptors),
  25. FilterDescriptors
  26. };
  27. NTSTATUS
  28. __stdcall
  29. DriverEntry
  30. (
  31. IN PDRIVER_OBJECT DriverObject,
  32. IN PUNICODE_STRING RegistryPathName
  33. )
  34. /*++
  35. Routine Description:
  36. Sets up the driver object.
  37. Arguments:
  38. DriverObject -
  39. Driver object for this instance.
  40. RegistryPathName -
  41. Contains the registry path which was used to load this instance.
  42. Return Values:
  43. Returns STATUS_SUCCESS if the driver was initialized.
  44. --*/
  45. {
  46. _DbgPrintF(DEBUGLVL_VERBOSE,("[DrmkAud:DriverEntry]"));
  47. const KSFILTER_DESCRIPTOR * pDrmFilterDescriptor;
  48. DrmGetFilterDescriptor(&pDrmFilterDescriptor);
  49. FilterDescriptors[0] = pDrmFilterDescriptor;
  50. return KsInitializeDriver(DriverObject, RegistryPathName, &DeviceDescriptor);
  51. }