永发信息网

用VB可以获取主板的编号吗

答案:2  悬赏:60  手机版
解决时间 2021-03-01 16:04
  • 提问者网友:欲劫无渡
  • 2021-03-01 01:01
用VB可以获取主板的编号吗
最佳答案
  • 五星知识达人网友:十年萤火照君眠
  • 2021-03-01 02:06
微软已经把这些信息做出类似于数据库的存储信息了,使用WMI进行相应的查询
全部回答
  • 1楼网友:迷人又混蛋
  • 2021-03-01 03:28
需要用到api函数。 举例:在窗口中画一个文本框,叫做text1,然后写代码如下: option explicit private declare function getvolumeinformation& lib "kernel32" alias "getvolumeinformationa" (byval lprootpathname as string, byval pvolumenamebuffer as string, byval nvolumenamesize as long, lpvolumeserialnumber as long, lpmaximumcomponentlength as long, lpfilesystemflags as long, byval lpfilesystemnamebuffer as string, byval nfilesystemnamesize as long) const max_filename_len = 256 private sub form_load() dim retval as long dim str as string * max_filename_len dim str2 as string * max_filename_len dim a as long dim b as long me.show call getvolumeinformation("c:\", str, max_filename_len, retval, a, b, str2, max_filename_len) text1 = retval end sub
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯