How to prgrammatically give the UserId/Password credentials for CIFS access?

S

Sanjoy C

Hi,

I am writing a NT Service that has to access files on a CIFS share on
another NT box. The default Logon UserID of the NT Service does NOT have
access to the files or the share. However I have the UserID and Password
that CAN access the share available to the NT Service.
What API can I use to get access to the share?

P.S. When I run this as a normal program, when I access the share a dialog
box pops up the first time when I access the share. If I enter the UserID /
password correctly then the program is able to access the share all further
times till I log out.

I guess it has something to do with the file share redirector but I need
help in terms of being pointed to the approriate Win32 APIs.
 
D

Douglas J. Steele

I'd suggest asking this in a newsgroup related to NT (they start
microsoft.public.windowsnt), or one related to whatever language you're
using to write your service.

This newsgroup is for questions about Access, the database product that's
part of Office Professional.
 
Top