GetFileVersionInfoEx function version
Win32Result<bool>
GetFileVersionInfoEx(
- GET_FILE_VERSION_INFO_FLAGS dwFlags,
- PCWSTR lpwstrFilename,
- int dwLen,
- Pointer<
NativeType> lpData,
Retrieves version information for the specified file.
To learn more, see learn.microsoft.com/windows/win32/api/winver/nf-winver-getfileversioninfoexw.
Implementation
Win32Result<bool> GetFileVersionInfoEx(
GET_FILE_VERSION_INFO_FLAGS dwFlags,
PCWSTR lpwstrFilename,
int dwLen,
Pointer lpData,
) {
final result_ = GetFileVersionInfoExW_Wrapper(
dwFlags,
lpwstrFilename,
NULL,
dwLen,
lpData,
);
return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}