WNetUseConnectionA method

int WNetUseConnectionA(
  1. Pointer<HWND__> hwndOwner,
  2. Pointer<LPNETRESOURCEA> lpNetResource,
  3. Pointer<Int8> lpPassword,
  4. Pointer<Int8> lpUserId,
  5. int dwFlags,
  6. Pointer<Int8> lpAccessName,
  7. Pointer<Uint64> lpBufferSize,
  8. Pointer<Uint64> lpResult,
)

Implementation

int WNetUseConnectionA(
  ffi.Pointer<HWND__> hwndOwner,
  ffi.Pointer<LPNETRESOURCEA> lpNetResource,
  ffi.Pointer<ffi.Int8> lpPassword,
  ffi.Pointer<ffi.Int8> lpUserId,
  int dwFlags,
  ffi.Pointer<ffi.Int8> lpAccessName,
  ffi.Pointer<ffi.Uint64> lpBufferSize,
  ffi.Pointer<ffi.Uint64> lpResult,
) {
  return (_WNetUseConnectionA ??=
      _dylib.lookupFunction<_c_WNetUseConnectionA, _dart_WNetUseConnectionA>(
          'WNetUseConnectionA'))(
    hwndOwner,
    lpNetResource,
    lpPassword,
    lpUserId,
    dwFlags,
    lpAccessName,
    lpBufferSize,
    lpResult,
  );
}