hwawiki.blogg.se

Sd card serial number windows 10
Sd card serial number windows 10













Public Overrides Function ToString() As String ''' For my cards, every pair of chars were reversed, ''' See "Storage_Indentification" in the library. ''' Information returned by DeviceIOControl. Public Sub FillFromBytes( ByVal buffer() As Byte)ĭwFlags = BitConverter.ToInt32(buffer, 4)ĭwManufactureIDOffset = BitConverter.ToInt32(buffer, 8)ĭwSerialNumOffset = BitConverter.ToInt32(buffer, 12)

sd card serial number windows 10

' Read from the buffer and fill the fields ' this is at the head of the buffer, and has layout information. Private Shared Function GetDiskFreeSpaceEx( _īyRef FreeBytesAvailableToCaller As UInt64, _īyRef lpTotalNumberOfFreeBytes As UInt64) As Int32 Private Shared Function CloseHandle( ByVal hObject As IntPtr) As Integer Private Shared Function DeviceIoControl( _īyVal hTemplateFile As Integer) As IntPtr

sd card serial number windows 10 sd card serial number windows 10

' CTL_CODE (devtype, function, method, access) calculates: ' it equals CTL_CODE(IOCTL_DISK_BASE, 0x709, METHOD_BUFFERED, FILE_ANY_ACCESS)















Sd card serial number windows 10