2011年計(jì)算機(jī)等級(jí)二級(jí)VB輔導(dǎo)知識(shí)技巧總結(jié)(22)(2)

字號(hào):


    Private Const IOCTL_PROTOCOL_SET_OID = &H80000004
    Private Const IOCTL_PROTOCOL_READ = &H80000010
    Private Const OID_GEN_CURRENT_PACKET_FILTER = &H1010E
    Private Const WAIT_FAILED = -1
    Private Type OVERLAPPED
    Internal As Long
    InternalHigh As Long
    offset As Long
    OffsetHigh As Long
    hEvent As Long
    End Type
    Type EtherAddr
    AddrByte1 As Byte
    AddrByte2 As Byte
    AddrByte3 As Byte
    AddrByte4 As Byte
    AddrByte5 As Byte
    AddrByte6 As Byte
    End Type
    Type EtherPacketHead