| 129 | |
| 130 | |
| 131 | bool IsRemovable(const wchar *Name) |
| 132 | { |
| 133 | #if defined(_WIN_ALL) |
| 134 | wchar Root[NM]; |
| 135 | GetPathRoot(Name,Root,ASIZE(Root)); |
| 136 | int Type=GetDriveType(*Root!=0 ? Root:NULL); |
| 137 | return Type==DRIVE_REMOVABLE || Type==DRIVE_CDROM; |
| 138 | #else |
| 139 | return false; |
| 140 | #endif |
| 141 | } |
| 142 | |
| 143 | |
| 144 | #ifndef SFX_MODULE |
no test coverage detected