VerQueryValue function Null safety version

int VerQueryValue(
  1. Pointer<NativeType> pBlock,
  2. Pointer<Utf16> lpSubBlock,
  3. Pointer<Pointer<NativeType>> lplpBuffer,
  4. Pointer<Uint32> puLen
)

Retrieves specified version information from the specified version-information resource. To retrieve the appropriate resource, before you call VerQueryValue, you must first call the GetFileVersionInfoSize function, and then the GetFileVersionInfo function.

BOOL VerQueryValueW(
  LPCVOID pBlock,
  LPCWSTR lpSubBlock,
  LPVOID  *lplpBuffer,
  PUINT   puLen
);

Implementation

int VerQueryValue(Pointer pBlock, Pointer<Utf16> lpSubBlock,
    Pointer<Pointer> lplpBuffer, Pointer<Uint32> puLen) {
  final _VerQueryValue = _version.lookupFunction<
      Int32 Function(Pointer pBlock, Pointer<Utf16> lpSubBlock,
          Pointer<Pointer> lplpBuffer, Pointer<Uint32> puLen),
      int Function(
          Pointer pBlock,
          Pointer<Utf16> lpSubBlock,
          Pointer<Pointer> lplpBuffer,
          Pointer<Uint32> puLen)>('VerQueryValueW');
  return _VerQueryValue(pBlock, lpSubBlock, lplpBuffer, puLen);
}