BYTE GetTempDrive(cDriveLetter)
This function takes a drive letter or zero and returns a letter that specifies the optimal drive for a temporary file (the disk drive that can provide the best access time during disk operations with a temporary file).
The GetTempDrive function returns the drive letter of a hard disk if the system has one. If the cDriveLetter parameter is zero, the function returns the drive letter of the current disk; if cDriveLetter is a letter, the function returns the letter of that drive or the letter of another available drive.
Parameter | Type/Description |
cDriveLetter | BYTE Specifies a disk-drive letter. |
The return value specifies the optimal disk drive for temporary files.