[Delphi (Object Pascal)] Delphi 判断指定的驱动器编号是否可用 →→→→→进入此内容的聊天室

来自 , 2020-06-26, 写在 Delphi (Object Pascal), 查看 106 次.
URL http://www.code666.cn/view/89c86ad4
  1. function IsValidDriveNum(const DriveNum: Byte): Boolean;
  2. begin
  3.   if DriveNum in [0..25] then
  4.     Result := Windows.GetLogicalDrives and (1 shl DriveNum) <> 0
  5.   else
  6.     Result := False;
  7. end;

回复 "Delphi 判断指定的驱动器编号是否可用"

这儿你可以回复上面这条便签

captcha