GetFileVersionInfoSizeEx function Null safety version

int GetFileVersionInfoSizeEx(
  1. int dwFlags,
  2. Pointer<Utf16> lpwstrFilename,
  3. Pointer<Uint32> lpdwHandle
)

Determines whether the operating system can retrieve version information for a specified file. If version information is available, GetFileVersionInfoSizeEx returns the size, in bytes, of that information.

DWORD GetFileVersionInfoSizeExW(
  DWORD   dwFlags,
  LPCWSTR lpwstrFilename,
  LPDWORD lpdwHandle
);

Implementation

int GetFileVersionInfoSizeEx(
    int dwFlags, Pointer<Utf16> lpwstrFilename, Pointer<Uint32> lpdwHandle) {
  final _GetFileVersionInfoSizeEx = _version.lookupFunction<
      Uint32 Function(Uint32 dwFlags, Pointer<Utf16> lpwstrFilename,
          Pointer<Uint32> lpdwHandle),
      int Function(int dwFlags, Pointer<Utf16> lpwstrFilename,
          Pointer<Uint32> lpdwHandle)>('GetFileVersionInfoSizeExW');
  return _GetFileVersionInfoSizeEx(dwFlags, lpwstrFilename, lpdwHandle);
}