Help storing passwords for WNetAddConnection2 in password list

Hello Everyone,

I'm using the WNetAddConnection2() function to connect a remote network drive.
 In order to make this connection, I must prompt the user for a password.  
Certainly, I could store the password in the registry, but I'd like the use the
"password list" files used by other Windows services.  Can anyone point me in
the right direction to find out how to do this?  Does anyone have any sample
code (if the procedure is more involved)?


// Paul E. Jones
// *
// PGP public key available by e-mail or my WWW page
// Key fingerprint =  28 02 6D 1F 20 AE 9F 82  43 02 DD 02 0C 00 3C 65