How do you use the LogonUser API in VB?
1. Call RevertToSelf (this is the critical step as it allows the code torun under the System account)
2. Call LogonUser
3. Call ImpersonateUser
This can be very effective for many applications where code needs to run under a different context.