About the drive the program has been loaded from
-
1. How can one find out, from which drive the actual program has been loaded from? 2. How can one find out, what kind of drive that is (floppy disk, RAMdisk, fixed volume, CDROM, etc.)? I found something re Stylebit of Removable Volume, but I did not find how to get it in C++. Thanks
-
1. How can one find out, from which drive the actual program has been loaded from? 2. How can one find out, what kind of drive that is (floppy disk, RAMdisk, fixed volume, CDROM, etc.)? I found something re Stylebit of Removable Volume, but I did not find how to get it in C++. Thanks
1. Use GetModuleFileName to get the full path to the program, then use something like splitpath to grab the drive letter. 2. Use GetDriveType In Italy for thirty years under the Borgias they had warfare, terror, murder, bloodshed - but they produced Michelangelo, Leonardo da Vinci and the Renaissance. In Switzerland they had brotherly love, five hundred years of democracy and what did that produce - the cuckoo clock! -- Harry Lime
-
1. Use GetModuleFileName to get the full path to the program, then use something like splitpath to grab the drive letter. 2. Use GetDriveType In Italy for thirty years under the Borgias they had warfare, terror, murder, bloodshed - but they produced Michelangelo, Leonardo da Vinci and the Renaissance. In Switzerland they had brotherly love, five hundred years of democracy and what did that produce - the cuckoo clock! -- Harry Lime