Boaz,
Sorry for the long delay. The code I am using to impersonate a user is
exactly taken from the SDK article (How to: Write a Simple Impersonation
Application). In my code in the LogonPS() function first I make a successful
call to the impersonator function, Impersonate(), and then do a
loginWindows.Login(). I am wondering if there're any other steps I need to
take in order to successfully logon as another user?
Maybe I should ask my question this way: What exactly does the impersonator
function do? When I do an impersonation of a user account, say UserX, can I
access Project Server with UserX's access rights/permissions?
My goal is to instruct my app to logon to PS as admin and carry out a series
of operations (that are already written). I thought if I do a Impersonate()
right before logging in would be enough, but I'm not sure about it.
Any advise is appreciated.
P.S> Throughout my posting, any references to an impersonation function or
Impersonate() refer to the exact same function in the SDK manual.