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.

71 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. RxInit.c
  5. Abstract:
  6. This module implements the externally visible DRIVER_INITIALIZATION routine for the RDBSS;
  7. actually, it's just a passthru. for nonmonolithic, we need the name to be DriverEntry; for nonmono-
  8. we need the name NOT to be DriverEntry.
  9. Author:
  10. Joe Linn [JoeLinn] 20-jul-1994
  11. Revision History:
  12. --*/
  13. #include "precomp.h"
  14. #pragma hdrstop
  15. NTSTATUS
  16. DriverEntry(
  17. IN PDRIVER_OBJECT DriverObject,
  18. IN PUNICODE_STRING RegistryPath
  19. );
  20. #ifdef ALLOC_PRAGMA
  21. #pragma alloc_text(INIT, DriverEntry)
  22. #endif
  23. NTSTATUS
  24. DriverEntry(
  25. IN PDRIVER_OBJECT DriverObject,
  26. IN PUNICODE_STRING RegistryPath
  27. )
  28. /*++
  29. Routine Description:
  30. This is just a wrapper.
  31. Arguments:
  32. Return Value:
  33. --*/
  34. {
  35. NTSTATUS Status;
  36. //
  37. // Setup Unload Routine
  38. //
  39. Status = RxDriverEntry( DriverObject, RegistryPath );
  40. if (Status == STATUS_SUCCESS) {
  41. DriverObject->DriverUnload = RxUnload;
  42. }
  43. return Status;
  44. }
  45.