Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NetUseAdd Problem

Status
Not open for further replies.

katiemae

Programmer
May 31, 2002
4
0
0
US
Hi.
I am trying to use NetUseAdd (netapi32) in a VB6 program to create a use record for a share on a server using credentials other than those of the current user. It seems to create the use record (i.e. when I type "net use" at the command line, I see that the share is listed). However, when I try to access files in that share from my program, I get permission denied errors. I was under the impression that all accesses to that share would be done using the credentials that the use record was created with in the current session. Any clue what I could be missing???
help help help
katie
 
Which operating system do you have ?

In windows 95/98 there is no way to log on to a share as another user. I assume the windows API's behaves similar to the net.exe program.

In NT/2k/XP it should work properly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top