Device Name for Virtual Disk

Hi All.
In order to create virtual disk (as I understood) I must create device with
flag FILE_DISK_DEVICE and with name
“.\HarddiskVolumeN”. But how determine the value of N?