Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Findfirstfile gives getlasterror 183 (error_already_exists)

Status
Not open for further replies.

NickW2

Programmer
Jul 23, 2003
12
0
0
GB
When using findfirstfile, it returns INVALID_HANDLE_VALUE, with getlasterror set to 183 (error_already_exists).

Can anyone explain what this error means in this context?
 
No such function: findfirstfile in Win API.
Get the code fragment, please...
 
Did you call FindClose prior to starting a 2nd search?

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
chiph,
the 2nd search handle on the same pattern is opened OK (I tested this case on Win NT WS before sent my post above).
 
Apologies to all.

The tracing being used in my case (not the same as MSDN example) was overwriting the last error value.
The actual last error is now found to be 5 (ERROR_ACCESS_DENIED).
This makes sense.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top