|
-
September 26th, 2002, 10:59 AM
#1
WNetAddConnection2 with 2000/XP
I have done a search and still found no answer about using this API on 2000/XP.
The application we write is in VB and running on 2000/XP, depending on the clients computer. Up until now, the mapping our program does connects to laptops. Generally those laptops are Windows 9x. Some of our customers got new laptops so they be either in 2000 or XP. The have called us and complained that they can't access the laptop thru our program. The only workaround is to map a drive in Windows Explorer first then use it. But they are not so bright and love our program so we have to have this API to work. Thru our testing and all that it shows that the error code is 5 - Access Denied. Same API call on a 9x will work.
Knowing that 2000/XP have higher security than 9x, is there some way around it? I have found a post suggesting to use Windows Script Host and I did it works. Why not the WNetAddConnection2 API? We kinda don't want to use the script host since it is not really made for VB but VBscript or Jscript.
The only thing that the clients do is to share a folder, they right click on a folder and select Sharing... Then the only thing they do in that dialog is clicking on the radio button "Share this folder" then click OK button. (defaults to everyone, full control.) Not to offend others but the clients are that dumb and they don't know anything. So at a minimum to share a folder, we want the program to work. It does as long as it is not 2000/XP.
Thanks. It is kinda urgent now. Any solutions by next week friday (10/4) will be great.
-
September 27th, 2002, 01:35 AM
#2
Security on folders winXP
Hi,
I've been implementing also some custom applications in a windows XP environment. To develop my programs I use vb6.0 but the problem is that this version doesn't have special XP features like security. I've read that you share your folders to have full access for everyone but you can also adjust the security of a folder and apply full controll to all users of this PC. I've done this several times; not with a vb code --- if someone knows how to adjust the security level on folders in XP?? and also security in the registry?? plzzz let me know --- ; but it must be done by hand ... and that's not so obvious.
Perhaps changing the security will solve your problems.
Regards,
S.
Programmers song.
100 little bugs in the code.
100 little bugs in the code.
Fix one bug and recompile.
101 little bugs in the code.
[Repeat until bugs = 0]
-
September 30th, 2002, 09:36 AM
#3
Well, after a bit of playing around. we learned that you MUST pass the username parameter with something instead of a null. 9x can take a null for username since the security is weak. But 2000/XP requires it. So we get the user name with another API call and we also determine if the remote computer is 9x or older with another API call. Now we finished the code with an If -then statement.
-
September 30th, 2002, 11:23 AM
#4
Are these clients connecting using their own internet connection or are you connected via some form of network?
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
|