| 发表于:2007-02-24 01:43:57 楼主 |
大家知道 硬盘逻辑锁吧 我想在 xp 下 用vb 直接操作 硬盘的分区表来实现,,我知道可以用open来做,但我不会 会的请加我qq:100510037 以下是网上找到的源码,用open获取磁盘信息: option explicit dim temp() as byte, i as long private sub command1_click() dim disk as string, diskbyte as string redim temp(511) disk = "j: " open "\\.\ " & disk for binary as #1 ' get #1, , temp close #1 for i = 0 to 511 if len(hex(temp(i))) = 1 then diskbyte = "0 " & hex(temp(i)) else diskbyte = hex(temp(i)) end if richtextbox1.text = richtextbox1.text & diskbyte & " " next end sub |
|
|
|
|