Rob Kennedy wrote: > Call LogonUser to get an access token for the specified user. Then call > ImpersonateLoggedOnUser to switch the current thread into that user's > context. Execute your function. Finally, call RevertToSelf to get back > into the original user's security context and dispose of the access > token with CloseHandle.
Thank you for your great answer, that exactly what I am looking for. > Special privileges are needed to call LogonUser and > impersonateLoggedOnUser. The IIS account might not have those privileges > by default. Worked on IIS without changing anything. Monir. ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

