Jump to content

uflex

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by uflex

  1. Thanks. It seems that it is the point. I will study the material.
  2. This will be a common problem. SSD's port can be SATA or PCIE or USB bus. IDENTIFY_DEVICE_DATA is under the msdn section of ATA driver. There should be a test in different bus.
  3. Thanks. The solution uses WMI. It will do. In fact , I want to work in PE(the solution in the article also use WMI). Is there other way not to use WMI? Just hope so.
  4. My purpose is to check whether a disk is SSD. GetDriveBusType will return SATA , but it can not be the evidence . ?
  5. Thanks. But I want to get a way working in PE(no wmi) and OS. Perhaps [InterfaceType: SCSI] is the trail.
  6. Are you sure that the website is reachable?
  7. My disk is a SSD. How to tell SSD from HD? In registry , the disk items under LM/SYSTEM/CurrentControlSet/Services/Disk/Enum/ is offen SCSIxxxxxx (in OS or PE)。 Anyonw knows the exact way?
  8. My SSD is 4k aligned. $Data = _WinAPI_GetDriveGeometryEx($Drive) ConsoleWrite('Bytes per Sector: ' & $Data[4] & @CR) will return 512. Does anynone know how to check 4k ? Thanks!
  9. From some local web sites . But version is wrong.
  10. I am in China. Some websites out of China can not be visited.
  11. Available functions Files to download WinAPIEx UDF v3.8 for AutoIt 3.3.6.1 Previous downloads: 22106 WinAPIEx UDF v3.8 for AutoIt 3.3.8.x Previous downloads: 4671 the website be visited now ? Can the website can be visited now? I can not reach it.
  12. Thanks! Can you tell me where to ge the right version of WinAPIEx.au3 and the help file?
  13. Thanks a lot. I have a wrong version of help file.
  14. My OS is XP(SP3)。 When I run _WinAPI_GetDriveGeometryEx,the sample code returns all 0. Does anybody know the reason? Thanks! #Include <WinAPIEx.au3> Opt('MustDeclareVars', 1) Global $tDISK_GEOMETRY_EX, $Drive = 0 While 1 $tDISK_GEOMETRY_EX = _WinAPI_GetDriveGeometryEx($Drive) If @error Then ExitLoop EndIf If Not $Drive Then ConsoleWrite('-------------------------------' & @CR) EndIf ConsoleWrite('Drive: ' & $Drive & @CR) ConsoleWrite('Cylinders: ' & DllStructGetData($tDISK_GEOMETRY_EX, 'Cylinders') & @CR) ;ConsoleWrite('Cylinders: ' & DllStructGetData($tDISK_GEOMETRY_EX, 0) & @CR) ConsoleWrite('Tracks per Cylinder: ' & DllStructGetData($tDISK_GEOMETRY_EX, 'TracksPerCylinder') & @CR) ConsoleWrite('Sectors per Track: ' & DllStructGetData($tDISK_GEOMETRY_EX, 'SectorsPerTrack') & @CR) ConsoleWrite('Bytes per Sector: ' & DllStructGetData($tDISK_GEOMETRY_EX, 'BytesPerSector') & ' bytes' & @CR) ConsoleWrite('Total Space: ' & DllStructGetData($tDISK_GEOMETRY_EX, 'DiskSize') & ' bytes' & @CR& @CR) ConsoleWrite('-------------------------------' & @CR) ;MsgBox(0,"",DllStructGetData($tDISK_GEOMETRY_EX, 'DiskSize')) $Drive +=1 WEnd
×
×
  • Create New...