How to check if file is in a working directory in WinAPI?

attempt to open the file, or you can call GetFileAttributes() and it will return -1 if the file does not exist. Another more expensive way is to call FindFirstFile().

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.