Assign different username to TFindFile

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

Assign different username to TFindFile

Postby iimu » March 17th, 2008, 6:19 pm

Thanks for your great components !

In our file server there is restricted access rights. I need login with different username to get sharing some files. I check in my software who can see and what files. Is is possible to assign different username in TFindFile component ? If not can you solve my problem ?

Regards iimu
iimu
Member
Member
 
Posts: 2
Joined: February 21st, 2005, 11:54 pm
Location: Finland

Postby Kambiz » March 18th, 2008, 12:25 pm

I think what you have requested is not possible technically.

You have two choices to solve the problem:
  1. Run your program as Administrator or an user with the required privileges.
  2. Make your program a Windows Service.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby iimu » March 18th, 2008, 8:04 pm

Thanks for your answer.

I found Api functions WNetConnection2 and WNetCancelConnection2. They are exactly what I was looking for. Now I can create different connections with different usernames for searching files without users get directly browse folders.

iimu
iimu
Member
Member
 
Posts: 2
Joined: February 21st, 2005, 11:54 pm
Location: Finland


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 5 guests

cron