Skip to content

Wrong Class used in zwCreateFile #38

@infeo

Description

@infeo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions