您现在的位置: 中国男护士网 >> 考试频道 >> 计算机等级 >> 二级辅导 >> 正文    
  如何通过VB获取网卡地址 【注册男护士专用博客】          

如何通过VB获取网卡地址

www.nanhushi.com     佚名   不详 

  1)在Visual Basic生成标准的EXE文件。缺省创建 Form1。

  2)在Form1中添加一命令按钮,缺省名为Command1。

  3)把下列代码放到Form1中说明部分。

  Option Explicit

  Private Const NCBASTAT = &H33

  Private Const NCBNAMSZ = 16

  Private Const HEAP_ZERO_MEMORY = &H8

  Private Const HEAP_GENERATE_EXCEPTIONS = &H4

  Private Const NCBRESET = &H32

  Private Type NCB

  ncb_command As Byte ´Integer

  ncb_retcode As Byte ´Integer

  ncb_lsn As Byte ´Integer

  ncb_num As Byte ´ Integer

  ncb_buffer As Long ´String

  ncb_length As Integer

  ncb_callname As String * NCBNAMSZ

  ncb_name As String * NCBNAMSZ

  ncb_rto As Byte ´Integer

  ncb_sto As Byte ´ Integer

  ncb_post As Long

  ncb_lana_num As Byte ´Integer

  ncb_cmd_cplt As Byte ´Integer

  ncb_reserve(9) As Byte ´ Reserved, must be 0

  ncb_event As Long

  End Type

 

文章录入:杜斌    责任编辑:杜斌 
  • 上一篇文章:

  • 下一篇文章:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
     

    联 系 信 息
    QQ:88236621
    电话:15853773350
    E-Mail:malenurse@163.com
    免费发布招聘信息
    做中国最专业男护士门户网站
    最 新 热 门
    最 新 推 荐
    相 关 文 章
    2011年护士资格考试:考…
    2009年初级护士资格考试…
    2009年主管护师考试于12…
    2009年初级护士考试于12…
    2009年初级护师考试于12…
    石家庄市关于2009年度护…
    2009年护士专业技术资格…
    医护技能考试周末举行 4…
    护士“托福”今年7月开考
    护士“托福”考试开始报…
    专 题 栏 目