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.

36 lines
1.1 KiB

  1. #ifndef NR_IP_INCLUDED
  2. #define NR_IP_INCLUDED
  3. #include "winsock.h"
  4. #include "regentry.h"
  5. #include "confreg.h"
  6. #include "nrcommon.h"
  7. // Below definitions from NetNameValidate for computer names
  8. /*** Internal definitions ***/
  9. /* NOTE - These should be defined globally */
  10. #define CTRL_CHARS_STR CTRL_CHARS_0 CTRL_CHARS_1 CTRL_CHARS_2 CTRL_CHARS_3
  11. #define CNLEN 15
  12. #define CTRL_CHARS_0 "\001\002\003\004\005\006\007"
  13. #define CTRL_CHARS_1 "\010\011\012\013\014\015\016\017"
  14. #define CTRL_CHARS_2 "\020\021\022\023\024\025\026\027"
  15. #define CTRL_CHARS_3 "\030\031\032\033\034\035\036\037"
  16. #define ILLEGAL_NAME_CHARS_STR "\"/\\[]:|<>+=;,?" CTRL_CHARS_STR
  17. extern DWORD ResolveIpName ( LPCSTR szName, LPBYTE lpResult,
  18. LPDWORD lpdwResult, LPSTR lpszDisplayName, LPDWORD lpdwDisplayName,
  19. BOOL fTypeKnown, DWORD dwFlags, LPUINT puRequest, PASR pAsr );
  20. extern DWORD CheckIpName ( LPCSTR szName );
  21. extern DWORD InitializeIp ( VOID );
  22. extern DWORD DeinitializeIp ( VOID );
  23. extern BOOL NEAR IsDottedDecimalIpAddress ( LPCSTR szName, LPSTR szOut );
  24. extern BOOL NEAR IsDottedDNSAddress ( LPCSTR szName, LPSTR szOut );
  25. #endif // NR_IP_INCLUDED