TLama

Untitled

May 8th, 2014
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.37 KB | None | 0 0
  1. function IntToDriveType(Value: UINT): TDriveType;
  2. begin
  3.   Result := dtUnknown;
  4.   case Value of
  5.     1: Result := dtNoRootDir;
  6.     2: Result := dtRemovable;
  7.     3: Result := dtFixed;
  8.     4: Result := dtRemote;
  9.     5: Result := dtCDROM;
  10.     6: Result := dtRAMDisk;
  11.   end;
  12. end;
  13.  
  14. ...
  15. if (Filter = []) or (IntToDriveType(GetDriveType(DriveRoot)) in Filter) then
  16. ...
Advertisement
Add Comment
Please, Sign In to add comment