impersonation across domains

From: /dev/null (anonymous_at_discussions.microsoft.com)
Date: 03/30/04


Date: Tue, 30 Mar 2004 08:41:12 -0800

I would like to know if it is possible to impersonate a user in another domain. example:
I am logged on my workstation as user1@domainA
I would like my windows application to impersonate user3@domainB

I tried a few things with the windows impersonate code example from msdn. It works to impersonate another user in the same domain. I would like to know if it is possible at all to impersonate a user in a different domain inside the windows application i am writing.

The whole problem is that we have users in another domain that will be using our windows applications which rely on trusted connections to SQL servers.

Any suggestions ?

Thanks