WNetGetLastErrorW method

int WNetGetLastErrorW(
  1. Pointer<Uint64> lpError,
  2. Pointer<Uint16> lpErrorBuf,
  3. int nErrorBufSize,
  4. Pointer<Uint16> lpNameBuf,
  5. int nNameBufSize,
)

Implementation

int WNetGetLastErrorW(
  ffi.Pointer<ffi.Uint64> lpError,
  ffi.Pointer<ffi.Uint16> lpErrorBuf,
  int nErrorBufSize,
  ffi.Pointer<ffi.Uint16> lpNameBuf,
  int nNameBufSize,
) {
  return (_WNetGetLastErrorW ??=
      _dylib.lookupFunction<_c_WNetGetLastErrorW, _dart_WNetGetLastErrorW>(
          'WNetGetLastErrorW'))(
    lpError,
    lpErrorBuf,
    nErrorBufSize,
    lpNameBuf,
    nNameBufSize,
  );
}