FormatMessageA method

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

Implementation

int FormatMessageA(
  int dwFlags,
  ffi.Pointer<ffi.Void> lpSource,
  int dwMessageId,
  int dwLanguageId,
  ffi.Pointer<ffi.Int8> lpBuffer,
  int nSize,
  ffi.Pointer<ffi.Pointer<ffi.Int8>> Arguments,
) {
  return (_FormatMessageA ??=
      _dylib.lookupFunction<_c_FormatMessageA, _dart_FormatMessageA>(
          'FormatMessageA'))(
    dwFlags,
    lpSource,
    dwMessageId,
    dwLanguageId,
    lpBuffer,
    nSize,
    Arguments,
  );
}