Re: WNetGetConnection ERROR_NOT_CONNECTION in w2k, different logon session.

From: S E H M B (googlegroups_at_sebastienboving.com)
Date: 11/17/04


Date: 17 Nov 2004 13:41:31 -0800

Sure, but the whole question is *how* to do that... It sure is not
simple.

- what exact information does it need to get from the service?
- what does that app then exactly do with it, how does it map the
drive?

We already have the logon script map the drive letter (which fails, so
doesn't do anything when the service has started on that machine).
That is not the problem directly anyhow.

Once again, the problem is not to map the same drive letter and use
files on there with both logons, that already works just fine (a 'use'
exists machine-wide). We need however to have the specific API call
"WNetGetConnection", when run by an application in the interactive
user's context, return the proper UNC information (and not
ERROR_NOT_CONNECTED). For that, some data structure must be missing
in the user's logon session. I'd like to find a clear definition of
where that lives and how to fill it in.

If you have the answer, and it's simple, please explain ;) !

thanks,
-seb.

"Alexander Nickolov" <agnickolov@mvps.org> wrote in message news:<Ok7ELvBzEHA.3408@tk2msftngp13.phx.gbl>...
> I guess I overengineered it a lot. It may be as simple as an
> app that starts upon logon of an interactive user. It'll map
> the drive in the user's context after obtaining the information
> from your service. Your service has a completely different
> mapping unrelated to the one in the interactive user's context.



Relevant Pages

  • Re: How to mount remote shares for all users?
    ... Try to logon to the server as user X and map a remote share to drive letter ...
    (microsoft.public.windows.server.general)
  • Mapping network resources from a service
    ... user, map a network ressource to a drive letter, run a process, delete ... application server mode. ... conclusion that local ressources mapping are global to the system: ...
    (microsoft.public.win32.programmer.kernel)
  • Re: hiding the backend
    ... Don't map a drive letter to that location. ... The point is that if you use Windows Explorer and browse to that ... when browing the network. ...
    (microsoft.public.access.security)
  • Re: HELP! Mapped Drive and Services dont play nicely
    ... so you can map the drive, and run the app as a service, but the app doesn't ... The problem is that it is not using a mapped drive letter in the service. ... the service to run under an account that should have the drive mapping ...
    (microsoft.public.windows.server.general)
  • Re: network drive mapping problem
    ... Sounds like the user was asked if he/she wanted to re-connect the drive on one logon because it wasn't available & the user's clicked no or permission was denied ... rem don't make it reconnect at login ... If you use 'persistent:no' then you won't get any overwrite promps for the user which you may have if you set 'persistent:yes' ... could see that this drive letter is used to map the drive i wanted. ...
    (microsoft.public.windowsxp.general)

Quantcast