How can I switch users for the windows from my application??

I know that I'll use API functions.

but, which ? how ? I don't know.

please,I want it very important.

note:I'm using Visal Basic 6.0 in my application.