Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cheat Engine Forum Index
PostGo back to topic
atom0s
Moderator
Reputation: 204
Joined: 25 Jan 2006
Posts: 8579
Location: 127.0.0.1

PostPosted: 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.
Back to top
View user's profile Send private message Visit poster's website
Post reviews:   Approve 1
Author Review
ParkourPenguin
Review: Approve
Post reference:
ReviewPosted: Sun Jul 17, 2016 8:06 am


Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites