Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IsFileInUse
#2
Is it correct?

Function IsFileInUse
Code:
Copy      Help
function str'sFile

sFile.expandpath
if(!dir(sFile)) ret 0
int hFile=CreateFileW(@sFile GENERIC_READ 0 0 OPEN_EXISTING FILE_ATTRIBUTE_NORMAL 0)
CloseHandle hFile
ret hFile = INVALID_HANDLE_VALUE


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)