Impersonating a user

  • Thread starter Thread starter George D. Lake
  • Start date Start date
G

George D. Lake

Hi,
I have a win form client that has to send a command to a windows service
on a different box. For this I need to impersonate the domain user that is
running the service. I have done this in ASP.NET but I cant get it to work
in windows form. Any Ideas or Links?


Thanks.

George.
 
George,

George D. Lake said:
I have a win form client that has to send a command to a windows service
on a different box. For this I need to impersonate the domain user that is
running the service. I have done this in ASP.NET but I cant get it to work
in windows form.

You can user p/invoke with the 'ImpersonateLoggedOnUser' function to do
that:

<URL:http://groups.google.com/[email protected]>
 
Back
Top