Hi Everyone,

Here is my problem, I want to use WNetConnection3 to keep a connection to a
net share. I would also like the connection to be persistent after a reboot.
What I thought is to use the Credential Manager to save the credential and
then call WNetConnection3 with 0 as a Pass and User parameters. It says in
the MSDN help that WNetConnection3 when User is NULL that it's supposed to
use the default username and password, can I set it using CredWrite and how
does it works?

I must also say that it's not possible for the user to enter it manually
(headless device), I must add it programatically.

Is this possible?

Vincent Gauthier