windows-nt/Source/XPSP1/NT/net/rras/ras/ui/inc/rasip.h

63 lines
1.3 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
//****************************************************************************
//
// Microsoft NT Remote Access Service
//
// Copyright 1992-93
//
//
// Revision History
//
//
// 12/9/93 Gurdeep Singh Pall Created
//
//
// Description: Shared structs between rasarp and ipcp
//
//****************************************************************************
#ifndef _RASIP_H_
#define _RASIP_H_
#define RASARP_DEVICE_NAME L"\\\\.\\RASARP"
#define RASARP_DEVICE_NAME_NUC "\\\\.\\RASARP"
#define FILE_DEVICE_RASARP 0x00009001
#define _RASARP_CONTROL_CODE(request,method) ((FILE_DEVICE_RASARP)<<16 | (request<<2) | method)
#define IOCTL_RASARP_ACTIVITYINFO _RASARP_CONTROL_CODE( 0, METHOD_BUFFERED )
#define IOCTL_RASARP_DISABLEIF _RASARP_CONTROL_CODE( 1, METHOD_BUFFERED )
typedef ULONG IPADDR ;
struct IPLinkUpInfo {
#define CALLIN 0
#define CALLOUT 1
ULONG I_Usage ; // CALLIN, or CALLOUT
IPADDR I_IPAddress ; // For client - the client's IP Address, for server
// the client's IP address.
ULONG I_NetbiosFilter ; // 1 = ON, 0 - OFF.
} ;
typedef struct IPLinkUpInfo IPLinkUpInfo ;
struct ActivityInfo {
IPADDR A_IPAddress ; // The address for which activity is requested.
ULONG A_TimeSinceLastActivity ; // In minutes
} ;
typedef struct ActivityInfo ActivityInfo ;
#endif // _RASIP_H_