microsoft / win32metadata

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

Add GetFileInformationByName (requires SDK 10.0.26100.1) #1964

Closed riverar closed 1 week ago

riverar commented 3 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)
mikebattista commented 1 week ago

Closed with https://github.com/microsoft/win32metadata/commit/6d6617a8eee57d7c4f6c55d8c23e35064ea69b9e.

Corrected the namespace with https://github.com/microsoft/win32metadata/commit/97db7a1a021f1fb397ff52ab6df38cbbd88fcc1d.