|
-
June 6th, 2002, 04:55 PM
#1
how to connect LAN resource
Hello, gurus, I would like to connect to a remote machine's share folder in a LAN. unfortunately, the share folder need a username and password to get access. Though I have it, I would like to know the WinAPI which let me provide the user-password pair to get access the folder. Any idea?
Thanx ahead.
-
June 6th, 2002, 07:29 PM
#2
NetUseAdd or WNetAddConnection2 ( or 3 ).
And let MSDN help you.
Eddi.
-
June 6th, 2002, 07:30 PM
#3
Hi,
You may use WNet API functions to do this. To add a share, you can use WNetAddConnection, WNetAddConnection2, WNetAddConnection3 Functions. Specially, WNetAddConnection2 & WNetAddConnection3 will serve your needs.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|