📄 ipinterfaces.cls
字号:
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
END
Attribute VB_Name = "CInterfaces"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
Attribute VB_Ext_KEY = "Collection" ,"CInterface"
Attribute VB_Ext_KEY = "Member0" ,"CInterface"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
'****************************************************************************
'人人为我,我为人人
'枕善居汉化收藏整理
'发布日期:2007/09/20
'描 述:界面清爽VB版高级专业防火墙 Ver 2.0.3
'网 站:http://www.Mndsoft.com/ (VB6源码博客)
'网 站:http://www.VbDnet.com/ (VB.NET源码博客,主要基于.NET2005)
'e-mail :Mndsoft@163.com
'e-mail :Mndsoft@126.com
'OICQ :88382850
' 如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Option Explicit
Private m_strInterfaceName As String
Private m_lngInterfaceIndex As Long
Private m_InterfaceType As InterfaceTypes
Private m_lngSpeed As Long
Private m_lngAdapterAddress As String
Private m_AdminStatus As AdminStatuses
Private m_OperationalStatus As OperationalStates
Private m_datLastChange As Date
Private m_lngOctetsReceived As Long
Private m_lngUnicastPacketsReceived As Long
Private m_lngMaximumTransmissionUnit As Long
Private m_lngNonunicastPacketsReceived As Long
Private m_lngDiscardedIncomingPackets As Long
Private m_lngIncomingErrors As Long
Private m_lngUnknownProtocolPackets As Long
Private m_lngOctetsSent As Long
Private m_lngUnicastPacketsSent As Long
Private m_lngNonunicastPacketsSent As Long
Private m_lngDiscardedOutgoingPackets As Long
Private m_lngOutgoingErrors As Long
Private m_lngOutputQueueLength As Long
Private m_lngInterfaceDescription As String
Private mCol As Collection
Public Property Get AdapterAddress() As String
AdapterAddress = m_lngAdapterAddress
End Property
Public Property Let AdapterAddress(ByVal strNewValue As String)
m_lngAdapterAddress = strNewValue
End Property
Public Function Add(objInterface As CInterfaces) As CInterfaces
mCol.Add objInterface
Set Add = objInterface
Set objInterface = Nothing
End Function
Public Property Get AdminStatus() As AdminStatuses
AdminStatus = m_AdminStatus
End Property
Public Property Let AdminStatus(NewValue As AdminStatuses)
m_AdminStatus = NewValue
End Property
Private Sub Class_Initialize()
Set mCol = New Collection
End Sub
Private Sub Class_Terminate()
Set mCol = Nothing
End Sub
Public Property Get Count() As Long
Count = mCol.Count
End Property
Public Property Get DiscardedIncomingPackets() As Long
DiscardedIncomingPackets = m_lngDiscardedIncomingPackets
End Property
Public Property Let DiscardedIncomingPackets(ByVal lngNewValue As Long)
m_lngDiscardedIncomingPackets = lngNewValue
End Property
Public Property Get DiscardedOutgoingPackets() As Long
DiscardedOutgoingPackets = m_lngDiscardedOutgoingPackets
End Property
Public Property Let DiscardedOutgoingPackets(ByVal lngNewValue As Long)
m_lngDiscardedOutgoingPackets = lngNewValue
End Property
Public Property Get IncomingErrors() As Long
IncomingErrors = m_lngIncomingErrors
End Property
Public Property Let IncomingErrors(ByVal lngNewValue As Long)
m_lngIncomingErrors = lngNewValue
End Property
Public Property Get InterfaceDescription() As String
InterfaceDescription = m_lngInterfaceDescription
End Property
Public Property Let InterfaceDescription(ByVal strNewValue As String)
m_lngInterfaceDescription = strNewValue
End Property
Public Property Get InterfaceIndex() As Long
InterfaceIndex = m_lngInterfaceIndex
End Property
Public Property Let InterfaceIndex(ByVal lngNewValue As Long)
m_lngInterfaceIndex = lngNewValue
End Property
Public Property Get InterfaceName() As String
InterfaceName = m_strInterfaceName
End Property
Public Property Let InterfaceName(ByVal strNewValue As String)
m_strInterfaceName = strNewValue
End Property
Public Property Get InterfaceType() As InterfaceTypes
InterfaceType = m_InterfaceType
End Property
Public Property Let InterfaceType(NewValue As InterfaceTypes)
m_InterfaceType = NewValue
End Property
Public Property Get Item(vntIndexKey As Variant) As CInterfaces
Attribute Item.VB_UserMemId = 0
Set Item = mCol(vntIndexKey)
End Property
Public Property Get LastChange() As Date
LastChange = m_datLastChange
End Property
Public Property Let LastChange(ByVal datNewValue As Date)
m_datLastChange = datNewValue
End Property
Public Property Get MaximumTransmissionUnit() As Long
MaximumTransmissionUnit = m_lngMaximumTransmissionUnit
End Property
Public Property Let MaximumTransmissionUnit(ByVal lngNewValue As Long)
m_lngMaximumTransmissionUnit = lngNewValue
End Property
Public Property Get NewEnum() As IUnknown
Attribute NewEnum.VB_UserMemId = -4
Attribute NewEnum.VB_MemberFlags = "40"
Set NewEnum = mCol.[_NewEnum]
End Property
Public Property Get NonunicastPacketsReceived() As Long
NonunicastPacketsReceived = m_lngNonunicastPacketsReceived
End Property
Public Property Let NonunicastPacketsReceived(ByVal lngNewValue As Long)
m_lngNonunicastPacketsReceived = lngNewValue
End Property
Public Property Get NonunicastPacketsSent() As Long
NonunicastPacketsSent = m_lngNonunicastPacketsSent
End Property
Public Property Let NonunicastPacketsSent(ByVal lngNewValue As Long)
m_lngNonunicastPacketsSent = lngNewValue
End Property
Public Property Get OctetsReceived() As Long
OctetsReceived = m_lngOctetsReceived
End Property
Public Property Let OctetsReceived(ByVal lngNewValue As Long)
m_lngOctetsReceived = lngNewValue
End Property
Public Property Get OctetsSent() As Long
OctetsSent = m_lngOctetsSent
End Property
Public Property Let OctetsSent(ByVal lngNewValue As Long)
m_lngOctetsSent = lngNewValue
End Property
Public Property Get OperationalStatus() As OperationalStates
OperationalStatus = m_OperationalStatus
End Property
Public Property Let OperationalStatus(NewValue As OperationalStates)
m_OperationalStatus = NewValue
End Property
Public Property Get OutgoingErrors() As Long
OutgoingErrors = m_lngOutgoingErrors
End Property
Public Property Let OutgoingErrors(ByVal lngNewValue As Long)
m_lngOutgoingErrors = lngNewValue
End Property
Public Property Get OutputQueueLength() As Long
OutputQueueLength = m_lngOutputQueueLength
End Property
Public Property Let OutputQueueLength(ByVal lngNewValue As Long)
m_lngOutputQueueLength = lngNewValue
End Property
Public Sub Remove(vntIndexKey As Variant)
mCol.Remove vntIndexKey
End Sub
Public Property Get Speed() As Long
Speed = m_lngSpeed
End Property
Public Property Let Speed(ByVal lngNewValue As Long)
m_lngSpeed = lngNewValue
End Property
Public Property Get UnicastPacketsReceived() As Long
UnicastPacketsReceived = m_lngUnicastPacketsReceived
End Property
Public Property Let UnicastPacketsReceived(ByVal lngNewValue As Long)
m_lngUnicastPacketsReceived = lngNewValue
End Property
Public Property Get UnicastPacketsSent() As Long
UnicastPacketsSent = m_lngUnicastPacketsSent
End Property
Public Property Let UnicastPacketsSent(ByVal lngNewValue As Long)
m_lngUnicastPacketsSent = lngNewValue
End Property
Public Property Get UnknownProtocolPackets() As Long
UnknownProtocolPackets = m_lngUnknownProtocolPackets
End Property
Public Property Let UnknownProtocolPackets(ByVal lngNewValue As Long)
m_lngUnknownProtocolPackets = lngNewValue
End Property
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -