FormatMessageW method

int FormatMessageW(
  1. int dwFlags,
  2. Pointer<Void> lpSource,
  3. int dwMessageId,
  4. int dwLanguageId,
  5. Pointer<Uint16> lpBuffer,
  6. int nSize,
  7. Pointer<Pointer<Int8>> Arguments,
)

Implementation

int FormatMessageW(
  int dwFlags,
  ffi.Pointer<ffi.Void> lpSource,
  int dwMessageId,
  int dwLanguageId,
  ffi.Pointer<ffi.Uint16> lpBuffer,
  int nSize,
  ffi.Pointer<ffi.Pointer<ffi.Int8>> Arguments,
) {
  return (_FormatMessageW ??=
      _dylib.lookupFunction<_c_FormatMessageW, _dart_FormatMessageW>(
          'FormatMessageW'))(
    dwFlags,
    lpSource,
    dwMessageId,
    dwLanguageId,
    lpBuffer,
    nSize,
    Arguments,
  );
}