Skip to content

x/sys/windows: add NtSetInformationFile #48933

@mou-hao

Description

@mou-hao

Hi! When I was trying to implement a windows file handle based filesystem abstraction, I find NtSetInformationFile to be very useful used in conjunction with NtCreateFile. NtSetInformationFile supports file information classes not supported by SetFileInformationByHandle, for example FileDispositionInformationEx where you can use the FILE_DISPOSITION_POSIX_SEMANTICS flag to get posix stype delete.

The Microsoft doc for NtSetInformationFile can be found here: https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-ntsetinformationfile

This should be a small change, as we already load ntdll.dll for NtCreateFile and more. I have already implemented it in another project. Use cases can be found here.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions