GetFileVersionInfoEx function Null safety version

int GetFileVersionInfoEx(
  1. int dwFlags,
  2. Pointer<Utf16> lpwstrFilename,
  3. int dwHandle,
  4. int dwLen,
  5. Pointer<NativeType> lpData
)

Retrieves version information for the specified file.

BOOL GetFileVersionInfoExW(
  DWORD   dwFlags,
  LPCWSTR lpwstrFilename,
  DWORD   dwHandle,
  DWORD   dwLen,
  LPVOID  lpData
);

Implementation

int GetFileVersionInfoEx(int dwFlags, Pointer<Utf16> lpwstrFilename,
    int dwHandle, int dwLen, Pointer lpData) {
  final _GetFileVersionInfoEx = _version.lookupFunction<
      Int32 Function(Uint32 dwFlags, Pointer<Utf16> lpwstrFilename,
          Uint32 dwHandle, Uint32 dwLen, Pointer lpData),
      int Function(int dwFlags, Pointer<Utf16> lpwstrFilename, int dwHandle,
          int dwLen, Pointer lpData)>('GetFileVersionInfoExW');
  return _GetFileVersionInfoEx(
      dwFlags, lpwstrFilename, dwHandle, dwLen, lpData);
}