any keen ways of detecting bare metal disk size? All my solutions seem to only function on formatted media.
code from WinAPIEx.au3 example folder
works in WinPE 2.0
#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)
ConsoleWrit