WNetUseConnectionW method

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

Implementation

int WNetUseConnectionW(
  ffi.Pointer<HWND__> hwndOwner,
  ffi.Pointer<LPNETRESOURCEW> lpNetResource,
  ffi.Pointer<ffi.Uint16> lpPassword,
  ffi.Pointer<ffi.Uint16> lpUserId,
  int dwFlags,
  ffi.Pointer<ffi.Uint16> lpAccessName,
  ffi.Pointer<ffi.Uint64> lpBufferSize,
  ffi.Pointer<ffi.Uint64> lpResult,
) {
  return (_WNetUseConnectionW ??=
      _dylib.lookupFunction<_c_WNetUseConnectionW, _dart_WNetUseConnectionW>(
          'WNetUseConnectionW'))(
    hwndOwner,
    lpNetResource,
    lpPassword,
    lpUserId,
    dwFlags,
    lpAccessName,
    lpBufferSize,
    lpResult,
  );
}