⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ntddndish.cs

📁 一个抓包工具
💻 CS
📖 第 1 页 / 共 5 页
字号:
			public NDIS_VAR_DATA_DESC Command;
			public NDIS_VAR_DATA_DESC Option;
			public NDIS_VAR_DATA_DESC Response;	// The response to the requested command
			// - max. length of string is 256 octets.
		};


		public struct WW_ARD_SNDCP 
		{
			public NDIS_VAR_DATA_DESC Version;	// The version of SNDCP protocol supported.
			public int BlockSize;		// The block size used for SNDCP
			public int Window;			// The window size used in SNDCP

		};

		public struct WW_ARD_DATAGRAM 
		{
			public int LoadLevel;		// Byte that contains the load level info.
			public int SessionTime;		// Datagram session time remaining.
			public NDIS_VAR_DATA_DESC HostAddr;	// Host address.
			public NDIS_VAR_DATA_DESC THostAddr;	// Test host address.

		};

		//
		// OID_WW_CDPD_SPNI

		public struct WW_CDPD_SPNI 
		{
			public uint [] SPNI;		//size = 10 16-bit service provider network IDs
			public int OperatingMode;		// 0 = ignore SPNI,
			// 1 = require SPNI from list,
			// 2 = prefer SPNI from list.
			// 3 = exclude SPNI from list.
		};

		//
		// OID_WW_CDPD_WASI
		//
		public struct WW_CDPD_WIDE_AREA_SERVICE_ID 
		{
			public int [] WASI;		//10 16-bit wide area service IDs
			public int OperatingMode;		// 0 = ignore WASI,
			// 1 = Require WASI from list,
			// 2 = prefer WASI from list
			// 3 = exclude WASI from list.
		};


		public struct WW_CDPD_CHANNEL_SELECT 
		{
			public uint ChannelID;		// channel number
			public uint fixedDuration;		// duration in seconds
		};

		//
		// OID_WW_CDPD_CHANNEL_STATE
		//
		public enum WW_CDPD_CHANNEL_STATE 
		{
			CDPDChannelNotAvail,
			CDPDChannelScanning,
			CDPDChannelInitAcquired,
			CDPDChannelAcquired,
			CDPDChannelSleeping,
			CDPDChannelWaking,
			CDPDChannelCSDialing,
			CDPDChannelCSRedial,
			CDPDChannelCSAnswering,
			CDPDChannelCSConnected,
			CDPDChannelCSSuspended
		};

		//
		// OID_WW_CDPD_NEI
		//
		public enum WW_CDPD_NEI_FORMAT 
		{
			CDPDNeiIPv4,
			CDPDNeiCLNP,
			CDPDNeiIPv6
		};

		public enum WW_CDPD_NEI_TYPE 
		{
			CDPDNeiIndividual,
			CDPDNeiMulticast,
			CDPDNeiBroadcast
		};

		public struct WW_CDPD_NEI 
		{
			public uint uNeiIndex;
			public WW_CDPD_NEI_FORMAT NeiFormat;
			public WW_CDPD_NEI_TYPE NeiType;
			public uint NeiGmid;		// group member identifier, only
			// meaningful if NeiType ==
			// CDPDNeiMulticast
			public NDIS_VAR_DATA_DESC NeiAddress;
		};

		//
		// OID_WW_CDPD_NEI_STATE
		//
		public enum WW_CDPD_NEI_STATE 
		{
			CDPDUnknown,
			CDPDRegistered,
			CDPDDeregistered
		};

		public enum WW_CDPD_NEI_SUB_STATE 
		{
			CDPDPending,		// Registration pending
			CDPDNoReason,		// Registration denied - no reason given
			CDPDMDISNotCapable,	// Registration denied - MD-IS not capable of
			//  handling M-ES at this time
			CDPDNEINotAuthorized,	// Registration denied - NEI is not authorized to
			//  use this subnetwork
			CDPDInsufficientAuth,	// Registration denied - M-ES gave insufficient
			//  authentication credentials
			CDPDUnsupportedAuth,	// Registration denied - M-ES gave unsupported
			//  authentication credentials
			CDPDUsageExceeded,		// Registration denied - NEI has exceeded usage
			//  limitations
			CDPDDeniedThisNetwork	// Registration denied on this network, service
			//  may be obtained on alternate Service Provider
			//  network
		};

		public struct WW_CDPD_NEI_REG_STATE 
		{
			public uint uNeiIndex;
			public WW_CDPD_NEI_STATE NeiState;
			public WW_CDPD_NEI_SUB_STATE NeiSubState;
		};

		//
		// OID_WW_CDPD_SERVICE_PROVIDER_IDENTIFIER
		//
		public struct WW_CDPD_SERVICE_PROVIDER_ID 
		{
			public uint [] SPI;		//10 16-bit service provider IDs
			public int OperatingMode;		// 0 = ignore SPI,
			// 1 = require SPI from list,
			// 2 = prefer SPI from list.
			// 3 = exclude SPI from list.
		};

		//
		// OID_WW_CDPD_CIRCUIT_SWITCHED
		//
		public struct WW_CDPD_CIRCUIT_SWITCHED 
		{
			public int service_preference;	// -1 = unknown,
			//  0 = always use packet switched CDPD,
			//  1 = always use CS CDPD via AMPS,
			//  2 = always use CS CDPD via PSTN,
			//  3 = use circuit switched via AMPS only
			//      when packet switched is not available.
			//  4 = use packet switched only when circuit
			//   switched via AMPS is not available.
			//  5 = device manuf. defined service
			//   preference.
			//  6 = device manuf. defined service
			//   preference.
			public int service_status;		// -1 = unknown,
			//  0 = packet switched CDPD,
			//  1 = circuit switched CDPD via AMPS,
			//  2 = circuit switched CDPD via PSTN.
			public int connect_rate;		//  CS connection bit rate (bits per second).
			//  0 = no active connection,
			// -1 = unknown
			//  Dial code last used to dial.
			public NDIS_VAR_DATA_DESC [] dial_code; // 20;
			public uint sid;			//  Current AMPS system ID
			public int a_b_side_selection;	// -1 = unknown,
			//  0 = no AMPS service
			//  1 = AMPS "A" side channels selected
			//  2 = AMPS "B" side channels selected
			public int AMPS_channel;		// -1= unknown
			//  0 = no AMPS service.
			//  1-1023 = AMPS channel number in use
			public uint action;		//  0 = no action
			//  1 = suspend (hangup)
			//  2 = dial
			//  Default dial code for CS CDPD service
			//  encoded as specified in the CS CDPD
			//  implementor guidelines.
			public NDIS_VAR_DATA_DESC [] default_dial; // 20;
			//  Number for the CS CDPD network to call
			//   back the mobile, encoded as specified in
			//   the CS CDPD implementor guidelines.
			public NDIS_VAR_DATA_DESC [] call_back; // 20;
			public uint [] sid_list; // 10;		//  List of 10 16-bit preferred AMPS
			//   system IDs for CS CDPD.
			public uint inactivity_timer;	//  Wait time after last data before dropping
			//   call.
			//  0-65535 = inactivity time limit (seconds).
			public uint receive_timer;		//  secs. per CS-CDPD Implementor Guidelines.
			public uint conn_resp_timer;	//  secs. per CS-CDPD Implementor Guidelines.
			public uint reconn_resp_timer;	//  secs. per CS-CDPD Implementor Guidelines.
			public uint disconn_timer;		//  secs. per CS-CDPD Implementor Guidelines.
			public uint NEI_reg_timer;		//  secs. per CS-CDPD Implementor Guidelines.
			public uint reconn_retry_timer;	//  secs. per CS-CDPD Implementor Guidelines.
			public uint link_reset_timer;	//  secs. per CS-CDPD Implementor Guidelines.
			public uint link_reset_ack_timer;	//  secs. per CS-CDPD Implementor Guidelines.
			public uint n401_retry_limit;	//  per CS-CDPD Implementor Guidelines.
			public uint n402_retry_limit;	//  per CS-CDPD Implementor Guidelines.
			public uint n404_retry_limit;	//  per CS-CDPD Implementor Guidelines.
			public uint n405_retry_limit;	//  per CS-CDPD Implementor Guidelines.
		};

		public struct WW_PIN_LOCATION 
		{
			public int Latitude;		// Latitude in hundredths of a second
			public int Longitude;		// Longitude in hundredths of a second
			public int Altitude;		// Altitude in feet
			public int FixTime;		// Time of the location fix, since midnight,  local time (of the
			// current day), in tenths of a second
			public int NetTime;		// Current local network time of the current day, since midnight,
			// in tenths of a second
			public int LocQuality;		// 0-100 = location quality
			public int LatReg;			// Latitude registration offset, in hundredths of a second
			public int LongReg;		// Longitude registration offset, in hundredths of a second
			public int GMTOffset;		// Offset in minutes of the local time zone from GMT
		};

		//
		// OID_WW_MBX_SUBADDR
		//

		public struct WW_MBX_PMAN 
		{
			public int ACTION;		// 0 = Login PMAN,  1 = Logout PMAN
			public uint MAN;
			public char [] PASSWORD; // [8];		// Password should be null for Logout and indications.
			// Maximum length of password is 8 chars.
		};

		//
		// OID_WW_MBX_FLEXLIST
		//
		public struct WW_MBX_FLEXLIST 
		{
			public int count;			//  Number of MAN entries used.
			// -1=unknown.
			public uint [] MAN; //[7];		//  List of MANs.
		};

		//
		// OID_WW_MBX_GROUPLIST
		//
		public struct WW_MBX_GROUPLIST 
		{
			public int count;			//  Number of MAN entries used.
			// -1=unknown.
			public uint [] MAN; // [15];		//  List of MANs.
		};

		//
		// OID_WW_MBX_TRAFFIC_AREA
		//
		public enum WW_MBX_TRAFFIC_AREA 
		{
			unknown_traffic_area,	// The driver has no information about the current traffic area.
			in_traffic_area,		// Mobile unit has entered a subscribed traffic area.
			in_auth_traffic_area,	// Mobile unit is outside traffic area but is authorized.
			unauth_traffic_area	// Mobile unit is outside traffic area but is un-authorized.
		};

		//
		// OID_WW_MBX_TEMP_DEFAULTLIST
		//

		public struct WW_MBX_CHANNEL_PAIR 
		{
			public uint Mobile_Tx;
			public uint Mobile_Rx;
		};

		public struct WW_MBX_TEMPDEFAULTLIST 
		{
			public uint Length;
			public WW_MBX_CHANNEL_PAIR [] ChannelPair; // [1];
		};


		public NtddNDish()
		{

		}

		public static uint NDIS_CONTROL_CODE( uint request, uint method)
		{
			return DeviceIOCtlh.CTL_CODE( DeviceIOCtlh.FILE_DEVICE_PHYSICAL_NETCARD, request, method, DeviceIOCtlh.FILE_ANY_ACCESS);
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -