Frédéric wrote:
> Hi,
> I'm a trying to connect a network device through a service that is running
> as LocalSystem.
> I tried the function WNetAddConnection2, but calling this function returns
> error code 1312.
> This works perfectly well if I run the service in debug mode, but I get the
> above error code if I start it from the Service Controler as LocalSystem.
> The problem is that the error code 1312 isn't supposed to be a possible
> return value for WNetAddConnection2. So I can't figure out what is going
> wrong...
> If someone could tell me what I'm doing wrong, this would be greatly
> appreciated...

I think the problem is that the LocalSystem account doesnt have the
required permission to add network mapped drives.