MCPcopy Create free account
hub / github.com/bumptop/BumpTop / IsFileInUse

Method IsFileInUse

trunk/win/Source/BT_WindowsOS.cpp:5710–5717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5708}
5709
5710bool WindowsSystem::IsFileInUse(QString file)
5711{
5712 HANDLE hTestFile = CreateFile((LPCTSTR) file.utf16(), GENERIC_READ,
5713 FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
5714 bool inUse = (hTestFile == INVALID_HANDLE_VALUE);
5715 CloseHandle(hTestFile);
5716 return inUse;
5717}
5718
5719QFileInfo WindowsSystem::CreateDxDiagLog()
5720{

Callers 3

setFilePathMethod · 0.80
refreshThumbnailMethod · 0.80
onFileAddedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected