开发者

GetLogicalDriveStrings, why list of strings

开发者 https://www.devze.com 2023-03-08 03:35 出处:网络
Do I understand correctly that this function returns drive letters? If yes, then why does GetLogicalDriveStrings gives series of null-terminated strings and not s开发者_开发百科eries of chars?Because

Do I understand correctly that this function returns drive letters? If yes, then why does GetLogicalDriveStrings gives series of null-terminated strings and not s开发者_开发百科eries of chars?


Because it returns strings that can be used as input to functions like GetDriveType which require the input to be in the form "c:" not just 'c'.

0

精彩评论

暂无评论...
验证码 换一张
取 消