''' 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) ' 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 ' CTL_CODE (devtype, function, method, access) calculates: ' it equals CTL_CODE(IOCTL_DISK_BASE, 0x709, METHOD_BUFFERED, FILE_ANY_ACCESS)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |