Closed infeo closed 5 years ago
Since there is no specific Win32ErrorCodes for this case and we use them in our layer and let them convert to NTSTATUS by dokan, the ERROR_INVALID_STATE
code is returned and then handled in a special way in our layer.
Commit: 83f66ec0c99ac7cedb265b851624f8a1a0db2f5f OS version: Windows 10 Pro 1809 Dokan version: 1.2.2.1000
In the dokan mirror example the NTSTATUS code
FILE_IS_A_DIRECTORY
is returned when in corresponding the zwCreateFile()-call the ressource is a directory but indicated as anything but a directory:We should also follow this convention, currently we return a generic failure code.