You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r0, _, _:=syscall.Syscall9(procGetVolumeInformation.Addr(), 8, uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(drive))), n, n, n, n, n, uintptr(unsafe.Pointer(&buf[0])), uintptr(size), 0)
425
-
ifint32(r0) <0 {
426
-
hr=syscall.Errno(win32FromHresult(r0))
427
-
}
428
-
fsType=windows.UTF16ToString(buf)
429
-
return
430
-
}
431
-
432
-
// win32FromHresult is a helper function to get the win32 error code from an HRESULT
r0, _, _:=syscall.Syscall9(procGetVolumeInformation.Addr(), 8, uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(drive))), n, n, n, n, n, uintptr(unsafe.Pointer(&buf[0])), uintptr(size), 0)
359
-
ifint32(r0) <0 {
360
-
hr=syscall.Errno(win32FromHresult(r0))
361
-
}
362
-
fsType=windows.UTF16ToString(buf)
363
-
return
364
-
}
365
-
366
-
// win32FromHresult is a helper function to get the win32 error code from an HRESULT
0 commit comments