PhysicalDriveX
-
Hello, Short question: How to get physical drive number, where specify volume letter i.e. C: is assigned ? any idea ? Mila
-
int a; a = PathGetDriveNumber("c:\\");
You also need to include"shlwapi.h"
and link withshlwapi.lib
this is this.Not that fast ;) This function returns ... quote: "0 through 25 (corresponding to 'A' through 'Z') if the path has a drive letter, or -1 otherwise" In fact, returned value corresponds an logical drive number and doesn't correspond with physical drive number. Mila
-
Not that fast ;) This function returns ... quote: "0 through 25 (corresponding to 'A' through 'Z') if the path has a drive letter, or -1 otherwise" In fact, returned value corresponds an logical drive number and doesn't correspond with physical drive number. Mila