dokan-java
dokan-java copied to clipboard
Wrong Class used in zwCreateFile
The zwCreateFile method contains the parameter securityContext with the type WinBase.SECURITY_ATTRIBUTES.
Looking at the Dokany docs, this is the wrong type and if one looks into the dokan.h, a strucutre called PDOKAN_IO_SECURITY_CONTEXTis returned.
https://github.com/dokan-dev/dokany/blob/181a6bd5a50f60aa0f1e96cd218bc5ef70308b4b/dokan/dokan.h#L249
It is a structure of the sys module with the definition:
typedef struct _DOKAN_IO_SECURITY_CONTEXT {
DOKAN_ACCESS_STATE AccessState;
ACCESS_MASK DesiredAccess;
} DOKAN_IO_SECURITY_CONTEXT, *PDOKAN_IO_SECURITY_CONTEXT;
This type mus be implemented to correctly accessing this parameter.