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.

54 lines
1.7 KiB

  1. //============================================================================
  2. // Copyright (C) Microsoft Corporation, 1997 - 1999
  3. //
  4. // File: ipxutil.h
  5. //
  6. // History:
  7. // 07/22/97 Kenn M. Takara Created.
  8. //
  9. // Declarations for IPX-related utilities.
  10. //
  11. //============================================================================
  12. #ifndef _IPXUTIL_H_
  13. #define _IPXUTIL_H_
  14. CString& IpxTypeToCString(DWORD dwType);
  15. CString& IpxAdminStateToCString(DWORD dwAdminState);
  16. CString& IpxOperStateToCString(DWORD dwOper);
  17. CString& IpxProtocolToCString(DWORD dwProtocol);
  18. CString IpxRouteNotesToCString(DWORD dwFlags);
  19. CString& IpxAcceptBroadcastsToCString(DWORD dwAccept);
  20. CString& IpxDeliveredBroadcastsToCString(DWORD dwDelievered);
  21. CString& RipSapUpdateModeToCString(DWORD dwUpdateMode);
  22. CString& RouteFilterActionToCString(DWORD dwFilterAction);
  23. CString& ServiceFilterActionToCString(DWORD dwFilterAction);
  24. void FormatIpxNetworkNumber(LPTSTR pszNetwork, ULONG cchMax,
  25. UCHAR *pchNetwork, ULONG cchNetwork);
  26. void FormatMACAddress(LPTSTR pszMacAddress, ULONG cchMax,
  27. UCHAR *pchMac, ULONG cchMac);
  28. void ConvertMACAddressToBytes(LPCTSTR pszMacAddress,
  29. BYTE * pchDest,
  30. UINT cchDest);
  31. void ConvertNetworkNumberToBytes(LPCTSTR pszNetwork,
  32. BYTE *pchDest,
  33. UINT cchDest);
  34. void FormatBytes(LPTSTR pszDestBuffer, ULONG cchDestBuffer,
  35. UCHAR *pchBytes, ULONG cchBytes);
  36. void ConvertToBytes(LPCTSTR pszBytes, BYTE *pchDest, UINT cchDest);
  37. void ConvertToNetBIOSName(LPSTR szNetBIOSName,
  38. LPCTSTR pszName,
  39. USHORT type);
  40. void FormatNetBIOSName(LPTSTR pszName,
  41. USHORT *puType,
  42. LPCSTR szNetBIOSName);
  43. #endif // _IPXUTIL_H_