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.

80 lines
3.9 KiB

  1. #ifndef __HASH_H__
  2. #define __HASH_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*****************************************************************************
  7. * *
  8. * HASH.H *
  9. * *
  10. * Copyright (C) Microsoft Corporation 1990. *
  11. * All Rights reserved. *
  12. * *
  13. ******************************************************************************
  14. * *
  15. * Module Intent *
  16. * This header contains typedefs and prototypes to compute hash values. *
  17. * *
  18. ******************************************************************************
  19. * *
  20. * Testing Notes *
  21. * *
  22. ******************************************************************************
  23. * *
  24. * Current Owner: *
  25. * *
  26. ******************************************************************************
  27. * *
  28. * Released by Development: (date) *
  29. * *
  30. *****************************************************************************/
  31. /*****************************************************************************
  32. *
  33. * Revision History:
  34. *
  35. * 07/22/90 RobertBu I #ifdefed the type passed to these functions, so that
  36. * they would be FAR under WIN and PM. REVIEW: This should
  37. * be cleaned up!
  38. *
  39. *****************************************************************************/
  40. /*****************************************************************************
  41. * *
  42. * Definitions *
  43. * *
  44. *****************************************************************************/
  45. /* This is the reserved invalid hash value.
  46. */
  47. #define hashNil ((HASH)0)
  48. /*****************************************************************************
  49. * *
  50. * Typedefs *
  51. * *
  52. *****************************************************************************/
  53. /* This number represents the hash of a context string.
  54. */
  55. typedef ULONG HASH;
  56. typedef HASH FAR *LPHASH;
  57. /*****************************************************************************
  58. * *
  59. * Prototypes *
  60. * *
  61. *****************************************************************************/
  62. BOOL FAR PASCAL FValidContextSz(LPCSTR);
  63. HASH FAR PASCAL HashFromSz(LPCSTR);
  64. DWORD FAR PASCAL DwordFromSz(LPCSTR);
  65. int FAR PASCAL StripSpaces(LPSTR szName);
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69. #endif // ! HASH_H