Link to home
Start Free TrialLog in
Avatar of kctan100
kctan100

asked on

WNetAddConnection

I tried WNetAddConnection on Windows95. It works on Win95 but not in Windows NT. I got an error : ERROR_INVALID_ADDRESS.

Can you help ?

Example:
   WNetAddConnection("\\\\MyMachine", NULL, NULL);
Avatar of Lischke
Lischke

You need to supply a password for this connection under WinNT. Additionally, this funtion is only for backward compatibility with 16Bit WIndows. MSDN States you should use WNetAddConnection2.

Ciao, Mike
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial