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.

55 lines
892 B

  1. /*++
  2. Copyright (c) 1998, Microsoft Corporation
  3. Module Name:
  4. sort.c
  5. Abstract:
  6. This module contains routines used for efficiently sorting information.
  7. Author:
  8. Abolade Gbadegesin (aboladeg) 18-Feb-1998
  9. Based on version written for user-mode RAS user-interface.
  10. (net\routing\ras\ui\common\nouiutil\noui.c).
  11. Revision History:
  12. --*/
  13. #ifndef _SHELLSORT_H_
  14. #define _SHELLSORT_H_
  15. typedef
  16. LONG
  17. (FASTCALL* PCOMPARE_CALLBACK)(
  18. VOID* ,
  19. VOID*
  20. );
  21. NTSTATUS
  22. ShellSort(
  23. VOID* pItemTable,
  24. ULONG dwItemSize,
  25. ULONG dwItemCount,
  26. PCOMPARE_CALLBACK CompareCallback,
  27. VOID* pDestinationTable OPTIONAL
  28. );
  29. VOID
  30. ShellSortIndirect(
  31. VOID* pItemTable,
  32. VOID** ppItemTable,
  33. ULONG dwItemSize,
  34. ULONG dwItemCount,
  35. PCOMPARE_CALLBACK CompareCallback
  36. );
  37. #endif // _SHELLSORT_H_