This code can retrieve the Disk Geometry (hard disks) of each disk present in your system. It uses the DeviceIoControl API to do the Job. Well, one more thing which this code can do is to Lock any removable drive. Like lock the CDROM and you will not be able to eject the CDROM door.
motto : be angry with theAngrycodeR