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.

62 lines
1.4 KiB

  1. //****************************************************************************
  2. //
  3. // Microsoft NT Remote Access Service
  4. //
  5. // Copyright 1992-93
  6. //
  7. //
  8. // Revision History
  9. //
  10. //
  11. // 12/9/93 Gurdeep Singh Pall Created
  12. //
  13. //
  14. // Description: Shared structs between rasarp and ipcp
  15. //
  16. //****************************************************************************
  17. #ifndef _RASIP_H_
  18. #define _RASIP_H_
  19. #define RASARP_DEVICE_NAME L"\\\\.\\RASARP"
  20. #define RASARP_DEVICE_NAME_NUC "\\\\.\\RASARP"
  21. #define FILE_DEVICE_RASARP 0x00009001
  22. #define _RASARP_CONTROL_CODE(request,method) ((FILE_DEVICE_RASARP)<<16 | (request<<2) | method)
  23. #define IOCTL_RASARP_ACTIVITYINFO _RASARP_CONTROL_CODE( 0, METHOD_BUFFERED )
  24. #define IOCTL_RASARP_DISABLEIF _RASARP_CONTROL_CODE( 1, METHOD_BUFFERED )
  25. typedef ULONG IPADDR ;
  26. struct IPLinkUpInfo {
  27. #define CALLIN 0
  28. #define CALLOUT 1
  29. ULONG I_Usage ; // CALLIN, or CALLOUT
  30. IPADDR I_IPAddress ; // For client - the client's IP Address, for server
  31. // the client's IP address.
  32. ULONG I_NetbiosFilter ; // 1 = ON, 0 - OFF.
  33. } ;
  34. typedef struct IPLinkUpInfo IPLinkUpInfo ;
  35. struct ActivityInfo {
  36. IPADDR A_IPAddress ; // The address for which activity is requested.
  37. ULONG A_TimeSinceLastActivity ; // In minutes
  38. } ;
  39. typedef struct ActivityInfo ActivityInfo ;
  40. #endif // _RASIP_H_