| 5332 | #if 0 |
| 5333 | #ifdef _WIN32 |
| 5334 | void hide_file(const QString& szFile) |
| 5335 | { |
| 5336 | #ifdef UNICODE |
| 5337 | std::wstring wstr = szFile.toStdWString(); |
| 5338 | ::SetFileAttributes(wstr.c_str(), FILE_ATTRIBUTE_HIDDEN); |
| 5339 | #else |
| 5340 | ::SetFileAttributes(szFile.toStdString()c_str(), FILE_ATTRIBUTE_HIDDEN); |
| 5341 | #endif // !UNICODE |
| 5342 | } |
| 5343 | #endif // _WIN32 |
| 5344 | #endif |
| 5345 |