atom0s Moderator
Reputation: 204 Joined: 25 Jan 2006 Posts: 8579 Location: 127.0.0.1
|
Posted: Sat Jul 16, 2016 11:24 pm Post subject: |
|
|
You can use 'GetFileAttributes' instead which is exported from kernel32.dll and guaranteed to be available in every process. If the function fails, it will return 'INVALID_FILE_ATTRIBUTES' which allows you to determine if the file is on disk or not. You can also pull the specific reason for failing from GetLastError.
If you need more info see:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa364944(v=vs.85).aspx _________________ - Retired.
|
|