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.

57 lines
930 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name :
  4. main.cpp
  5. Abstract:
  6. Driver entrypoints for LKRhash: a fast, scalable,
  7. cache- and MP-friendly hash table
  8. Author:
  9. George V. Reilly (GeorgeRe) 25-Oct-2000
  10. Environment:
  11. Win32 - Kernel Mode
  12. Project:
  13. Internet Information Server Http.sys
  14. Revision History:
  15. --*/
  16. #include "precomp.hxx"
  17. ULONG __Pool_Tag__ = 'RKLk'; // default memory tag
  18. extern "C"
  19. VOID
  20. LkrUnload(
  21. IN PDRIVER_OBJECT DriverObject);
  22. extern "C"
  23. NTSTATUS
  24. DriverEntry(
  25. IN PDRIVER_OBJECT DriverObject,
  26. IN PUNICODE_STRING RegistryPath
  27. )
  28. {
  29. // TODO: other driver initialization
  30. DriverObject->DriverUnload = &LkrUnload;
  31. if (!LKR_Initialize(LK_INIT_DEFAULT))
  32. return STATUS_UNSUCCESSFUL;
  33. return STATUS_SUCCESS;
  34. }
  35. VOID
  36. LkrUnload(
  37. IN PDRIVER_OBJECT DriverObject)
  38. {
  39. LKR_Terminate();
  40. }