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.

76 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. routing\monitor2\common\alias.h
  5. Abstract:
  6. Hash Table implementation include.
  7. Revision History:
  8. Anand Mahalingam 7/6/98 Created
  9. --*/
  10. #define ALIAS_TABLE_SIZE 211
  11. //
  12. // Type definitions for Alias Table
  13. //
  14. typedef struct _ALIAS_TABLE_ENTRY
  15. {
  16. LPWSTR pszAlias; // Alias Name
  17. LPWSTR pszString; // Corresponding string
  18. LIST_ENTRY le; // list pointers
  19. }ALIAS_TABLE_ENTRY,*PALIAS_TABLE_ENTRY;
  20. //
  21. // Prototypes of functions to manipulate Alias Table
  22. //
  23. DWORD
  24. ATHashAlias(
  25. IN LPCWSTR pwszAliasName,
  26. OUT PWORD pwHashValue
  27. );
  28. DWORD
  29. ATInitTable(
  30. VOID
  31. );
  32. DWORD
  33. ATAddAlias(
  34. IN LPCWSTR pwszAliasName,
  35. IN LPCWSTR pwszAliasString
  36. );
  37. DWORD
  38. ATDeleteAlias(
  39. IN LPCWSTR pwszAliasName
  40. );
  41. DWORD
  42. ATLookupAliasTable(
  43. IN LPCWSTR pwszAliasName,
  44. OUT LPWSTR *ppwszAliasString
  45. );
  46. DWORD
  47. PrintAliasTable(
  48. VOID
  49. ) ;
  50. DWORD
  51. FreeAliasTable(
  52. VOID
  53. ) ;