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.

70 lines
1.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: ipxname.hxx
  8. //
  9. //--------------------------------------------------------------------------
  10. /*++
  11. Module Name:
  12. gethost.h
  13. Abstract:
  14. IPX-specific stuff.
  15. Author:
  16. Jeff Roberts (jroberts) 15-Nov-1995
  17. Revision History:
  18. 15-Nov-1995 jroberts
  19. Created this module.
  20. --*/
  21. #ifndef _IPXNAME_H_
  22. #define _IPXNAME_H_
  23. // Milliseconds
  24. const UINT CACHE_EXPIRATION_TIME = (10 * 60 * 1000);
  25. const UINT CACHE_SIZE = DEBUG_MIN(2,8);
  26. // Call before using the cache
  27. RPC_STATUS
  28. InitializeIpxNameCache(
  29. );
  30. RPC_STATUS
  31. IPX_NameToAddress(
  32. IN RPC_CHAR *Name,
  33. IN BOOL fUseCache,
  34. OUT SOCKADDR_IPX *pAddr
  35. );
  36. void
  37. IPX_AddressToName(
  38. IN SOCKADDR_IPX *pAddr,
  39. OUT RPC_CHAR *Name
  40. );
  41. // Local ddress constants
  42. extern BOOL fIpxAddrValid;
  43. extern SOCKADDR_IPX IpxAddr;
  44. RPC_STATUS
  45. IPX_BuildAddressVector(
  46. OUT NETWORK_ADDRESS_VECTOR **ppAddressVector
  47. );
  48. #endif // _IPXNAME_