GetFileVersionInfo function Null safety version

int GetFileVersionInfo (
  1. Pointer<Utf16> lptstrFilename,
  2. int dwHandle,
  3. int dwLen,
  4. Pointer<NativeType> lpData
)

Retrieves version information for the specified file.

BOOL GetFileVersionInfoW(
  LPCWSTR lptstrFilename,
  DWORD   dwHandle,
  DWORD   dwLen,
  LPVOID  lpData
);

Implementation

int GetFileVersionInfo(
    Pointer<Utf16> lptstrFilename, int dwHandle, int dwLen, Pointer lpData) {
  final _GetFileVersionInfo = _version.lookupFunction<
      Int32 Function(Pointer<Utf16> lptstrFilename, Uint32 dwHandle,
          Uint32 dwLen, Pointer lpData),
      int Function(Pointer<Utf16> lptstrFilename, int dwHandle, int dwLen,
          Pointer lpData)>('GetFileVersionInfoW');
  return _GetFileVersionInfo(lptstrFilename, dwHandle, dwLen, lpData);
}