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.

50 lines
1.1 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. Paul England (pengland) from a sample source filter by
  9. Dale Sather (DaleSat) 31-Jul-1998
  10. --*/
  11. #define DEFINE_FILTER_DESCRIPTORS_ARRAY
  12. #include "private.h"
  13. #include "../DRMKMain/KGlobs.h"
  14. #include "../DRMKMain/KRMStubs.h"
  15. //-----------------------------------------------------------------------------
  16. extern "C" NTSTATUS DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPathName)
  17. {
  18. return STATUS_SUCCESS;
  19. }
  20. //-----------------------------------------------------------------------------
  21. // DllInitialize and DllUnload
  22. //
  23. EXTERN_C NTSTATUS DllInitialize(PUNICODE_STRING RegistryPath)
  24. {
  25. NTSTATUS ntStatus;
  26. _DbgPrintF(DEBUGLVL_VERBOSE,("DRMK:DllInitialize"));
  27. ntStatus=InitializeDriver();
  28. return ntStatus;
  29. }
  30. EXTERN_C NTSTATUS DllUnload(void)
  31. {
  32. PAGED_CODE();
  33. _DbgPrintF(DEBUGLVL_VERBOSE,("DRMK:DllUnload"));
  34. CleanupDriver();
  35. return STATUS_SUCCESS;
  36. }