J
Jon Skeet [C# MVP]
For some reason, RAPI.DeviceFileExists fails with an exception when the
file name passed in is a directory. An invalid handle is returned, and
CeGetLastError is 80, which is "File already exists."
Given that it's asking with OPEN_EXISTING, I'm not sure why it's
failing... but if we can't do anything about that, would it be worth
testing for that particular error number and returning true if it's
matched?
file name passed in is a directory. An invalid handle is returned, and
CeGetLastError is 80, which is "File already exists."
Given that it's asking with OPEN_EXISTING, I'm not sure why it's
failing... but if we can't do anything about that, would it be worth
testing for that particular error number and returning true if it's
matched?