Disk size

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disk size

Jump to solution
1,107 Views
MarcosPereira
Contributor II

How can I get the disk size?

Labels (1)
Tags (1)
0 Kudos
1 Solution
406 Views
PetrM
Senior Contributor I

This is not exact, but very close - use following ioctl commands and multiply (result is in bytes):

 

IO_IOCTL_LAST_CLUSTER

IO_IOCTL_GET_CLUSTER_SIZE

 

PetrM

 

View solution in original post

0 Kudos
1 Reply
407 Views
PetrM
Senior Contributor I

This is not exact, but very close - use following ioctl commands and multiply (result is in bytes):

 

IO_IOCTL_LAST_CLUSTER

IO_IOCTL_GET_CLUSTER_SIZE

 

PetrM

 

0 Kudos