Ryan has a wrapper for it in the complete samples from the book, although there are better versions that can be dug up on CodePlex these days.
As long as the trust path exists on your machine, you should be able to use the Translate method on the SecurityIdentifier class to convert to an NT account. That is supposed to work across trusts.
You can either parse out the SID of the foreign user from the DN value stored in the group membership or you can open that object, read its objectSid attribute and then use that to build the SecurityIdentifier class. This might be a little easier than using DsCrackNames.