Commit Graph

75 Commits

Author SHA1 Message Date
Alexandre Julliard 1e117a5682 mpr: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-11 09:46:13 +02:00
Pierre Schweitzer 773ff2e83b mpr: Implement support for deleting persistent connections.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-06 16:58:51 +01:00
Pierre Schweitzer 23a232fce8 mpr: Implement support for making connections persistent.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-06 16:58:39 +01:00
Pierre Schweitzer 9988bb5e07 mpr: Implement remembered connection enumeration.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-04 16:13:11 +01:00
Pierre Schweitzer 93fb279f4f mpr: Properly handle device-less connections.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-14 12:51:34 +02:00
Pierre Schweitzer 0799550075 mpr: Implement WNetClearConnections().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45802
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-13 21:47:04 +02:00
Fabian Maurer 8ca2938757 wnet: Make WNetGetUniversalNameW return required size when buffer is too small and add test.
The pointer is set to the required size not only when the input size
is 0, but generally when it is too small.

Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 14:51:34 +02:00
Michael Stefaniuc 253d39bf1d mpr: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 09:44:33 +02:00
Michael Müller 31e5b4e5ee mpr: Return correct error code for non network paths and REMOTE_NAME_INFO_LEVEL in WNetGetUniversalName.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-14 15:27:59 +01:00
Pierre Schweitzer 2619267170 mpr: Implement WNetConnectionDialog().
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 15:57:44 +02:00
Pierre Schweitzer 8d461c1f42 mpr: Don't stop enumeration on the first failing network provider.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-23 19:45:31 +02:00
Pierre Schweitzer 51b4a42969 mpr: Properly handle the count set to -1 when enumerating connections.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-23 17:23:45 +02:00
Pierre Schweitzer 96a93ee608 mpr: Enumerate connections capability before looking for functions entry points.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-02 11:18:56 +01:00
Pierre Schweitzer d9c9d9b10f mpr: Implement connected resources enumeration.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-20 09:16:55 -07:00
Pierre Schweitzer d6d0d96402 mpr: Set the CONNECT_LOCALDRIVE flag in case a local redirection is made on connection.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-12 21:21:53 +09:00
Pierre Schweitzer d2e68234b2 mpr: Implement WNetCancelConnectionA(), WNetCancelConnectionW(), WNetCancelConnection2A().
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-12 21:21:42 +09:00
Pierre Schweitzer 0b34924bd8 mpr: Implement WNetCancelConnection2W().
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-12 21:21:10 +09:00
Pierre Schweitzer a65c31e46f mpr: Implement provider selection given remote name.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-11 20:18:01 +09:00
Pierre Schweitzer b452e62859 mpr: Implement local name automatic redirection for disks.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-11 20:18:01 +09:00
Pierre Schweitzer e8c8ddcbfc mpr: Don't send lpRemoteName when requesting network place.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-17 19:44:01 +09:00
Nikolay Sivov e920b4ecff mpr: Implement WNetUseConnectionA().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-14 13:54:52 +09:00
Pierre Schweitzer d070c263ad mpr: Partially implement WNetUseConnectionW().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:30:04 +09:00
Nikolay Sivov 164fe0470c mpr: Query for NPAddConnection and NPAddConnection3 when loading a provider.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:30:04 +09:00
Pierre Schweitzer 80eb2fa08e mpr: Add support for REG_EXPAND_SZ for providers path.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 23:26:59 +09:00
Pierre Schweitzer 39ec97ea9d mpr: Implement WNetAddConnectionA(), WNetAddConnection2A(), WNetAddConnection3A().
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 01:48:50 +09:00
Pierre Schweitzer 092c60e98c mpr: Implement WNetAddConnectionW(), WNetAddConnection2W(), WNetAddConnection3W().
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-19 23:01:29 +09:00
Thomas Faber 21a7cc6fa7 mpr: Do not omit mandatory argument to DeviceIoControl. 2014-07-21 11:55:20 +02:00
Andrew Eikum 76880ff933 mpr: Don't succeed if drive is not remote in WNetGetUniversalName. 2012-07-10 11:14:14 -05:00
Marcus Meissner c1833ea963 mpr: Added missing pointer dereference (Coverity). 2011-05-30 11:15:34 +02:00
Andrew Nguyen 80b1c5e072 mpr: Initialize the output enumeration handle to NULL in WNetOpenEnumA/W with no providers available. 2010-08-04 12:14:39 +02:00
Aric Stewart 3b93ff71c7 mpr: Initialize handle to NULL on ERROR_NO_NETWORK case in WNetOpenEnum. 2009-12-08 12:33:03 +01:00
Vitaly Perov d7098d0f4f mpr: Don't set LastError if no error occured. 2009-06-02 11:57:21 +02:00
Michael Stefaniuc f927cfd26b mpr: Remove superfluous pointer casts. 2009-01-12 13:06:39 +01:00
Michael Stefaniuc 4f199a10ad Remove the remaining casts of NULL. 2008-11-03 13:42:09 +01:00
Alexandre Julliard cb566755f7 mpr: Use a mountmgr ioctl to retrieve the UNC name for a drive. 2008-10-24 14:24:58 +02:00
Andrey Turkin 6b1256b2de mpr: Fix NULL pointer dereference in WNetGetResourceInformationW. 2008-10-17 12:32:10 +02:00
Andrew Talbot 69789d5891 mpr: Fix some memory leaks. 2008-06-26 21:07:17 +02:00
Christopher Berner 9978cc9c56 user32: Make LoadStringW pass tests. 2008-03-11 15:30:15 +01:00
Andrew Talbot c604e075ec mpr: Assign to struct instead of using memcpy. 2008-03-05 11:21:04 +01:00
Konstantin Kondratyuk bcfb9be370 mpr: Delete a stub trace. 2007-10-19 12:23:51 +02:00
Marcus Meissner 64920b5176 mpr: Initialize lpwSystem. 2007-10-02 13:31:37 +02:00
Konstantin Kondratyuk 7fb98bfba5 mpr: Implement WNetGetResourceInformation functions. 2007-10-01 14:17:53 +02:00
Konstantin Kondratyuk 227966402b mpr: Correct usage of dwScope and dwEnumScopes. 2007-09-27 12:46:24 +02:00
Andrew Talbot 0ad8eaa27a mpr: Constify some variables. 2007-05-29 11:54:59 +02:00
Maarten Lankhorst c3bfe66ade mpr: Small fixes to WNetGetConnection.
Convert unc\server\share to \\server\share and be more tolerant to null
pointers if only length is requested.
2007-05-23 14:30:16 +02:00
Dmitry Timoshkov 674ce99320 include: Add some API prototypes to appropriate header files, fix some prototypes. 2007-03-28 12:17:42 +02:00
Hans Leidekker e834f8a2b0 mpr: Add a stub implementation for WNetGetUniversalNameA. 2007-03-26 12:21:21 +02:00
Hans Leidekker 82c1540344 mpr: Fix buffer size calculation in WNetGetUniversalNameW. 2007-03-26 12:21:09 +02:00
Andrew Talbot c3e8298a3d mpr: Replace const pointer parameters with correct pointers to const. 2007-03-07 21:56:51 +01:00
Paul Vriens 817265a74e mpr: Fix typo (Coverity). 2007-01-15 13:00:11 +01:00