使用VB.net的Windows Mobile SD卡安全性

时间:2015-10-06 09:22:11

标签: vb.net security windows-mobile sd-card

有没有办法保护Windows mobile,以便除了在该设备上注册的SD卡存储外,它不会接受其他SD卡存储?我想我可以获得SD卡序列号。如何使用VB.net Mobile获取存储卡的序列号?我可以在基于Windows的应用程序中执行此操作,但无法在Windows-Mobile中找到方法...需要帮助。

            For Each drive As DriveInfo In My.Computer.FileSystem.Drives

                  If drive.IsReady = True AndAlso drive.DriveType = IO.DriveType.Removable Then
                      Dim fso As Scripting.FileSystemObject
                      Dim oDrive As Scripting.Drive

                      fso = CreateObject("Scripting.FileSystemObject")

                      oDrive = fso.GetDrive(drive.Name)

                      Dim serialnumber = oDrive.SerialNumber
                   End if

             Next

0 个答案:

没有答案