microsoft / win32metadata

Tooling to generate metadata for Win32 APIs in the Windows SDK.
Other
1.34k stars 117 forks source link

Add GetFileInformationByName (requires SDK 10.0.26100.1) #1964

Open riverar opened 2 months ago

riverar commented 2 months ago

Just creating an issue to track a need for a new API that is blocking Rust (https://github.com/rust-lang/rust/pull/128256). Adoption of the newer SDK is currently blocked by #1934.

#if (NTDDI_VERSION >= NTDDI_WIN11_ZN)

BOOL
WINAPI
GetFileInformationByName(
    _In_ PCWSTR FileName,
    _In_ FILE_INFO_BY_NAME_CLASS FileInformationClass,
    _Out_writes_bytes_(FileInfoBufferSize) PVOID FileInfoBuffer,
    _In_ ULONG FileInfoBufferSize
    );

#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN)