[Spice-devel] [phodav PATCH 2/3 v7] spice-webdavd-windows: Check for mapped shared folder

Marc-André Lureau mlureau at redhat.com
Fri May 27 14:36:27 UTC 2016



----- Original Message -----
> Hi
> On Thu, May 26, 2016 at 1:07 PM, Marc-André Lureau < mlureau at redhat.com >
> wrote:
> 
> 
> ----- Original Message -----
> Rather than the user name of the driver, it would be more reliable to check
> the connection details, with a function such as
> WNetGetResourceInformation(). (I haven't looked in details if this is the
> right function)
> 
> So I tested this function, and it doesn't actually return the local name
> (drive letter). It might return this on older Windows, but on the newer
> ones, since drive letters are per user, it doesn't return anything.
> (localname is null).

I would rather check if there is a remote name (the webdav server). If you can find one, I suppose it means it is mapped.


More information about the Spice-devel mailing list