|
-
Apr 19th, 2007, 12:50 PM
#1
Thread Starter
New Member
how can i switch users for the windows
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.
-
Apr 19th, 2007, 01:06 PM
#2
Re: how can i switch users for the windows
-
Apr 19th, 2007, 01:07 PM
#3
Re: how can i switch users for the windows
You dont.....switching Windows users requires one user to log off and another user to log on.
When a user logs off, all applications are closed so your program would be shut down.
-
Apr 19th, 2007, 01:11 PM
#4
Re: how can i switch users for the windows
Hmm, are you talking about Fast User Switching in XP?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 19th, 2007, 01:29 PM
#5
Thread Starter
New Member
Re: how can i switch users for the windows
the question in other words:
I logOn the windows using username (ex: user1 with his password)
he has some permisstion but not all .
then I want from my application to switch users (ex: to user2 with his password) who has more permisstions than the user1.
to do some thing and then return to the first user and complete what he was doing !!!!
I hope you understand me !!!
-
Apr 19th, 2007, 01:36 PM
#6
Re: how can i switch users for the windows
Yes, I do but there are multiple methods that you are talking about. 
Fast User Switching where you place your desktop in a hold and allow another to log on keeping all your programs running etc. Then the other is to use CreateProcessWithLogon API to start a process using different user credentials. You must know the user name and password and domain. Or you could prompt them for the logon credientials when ShellExecute the exe passing the "runas" verb.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 19th, 2007, 01:56 PM
#7
Thread Starter
New Member
Re: how can i switch users for the windows
yes, that's exactly what I want.
please,Do you have the code for doing it?
if YES then
post it her,please.
else if NO then
end if
-
Apr 19th, 2007, 01:57 PM
#8
Re: how can i switch users for the windows
Code for which as I gave multiple methods?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 19th, 2007, 02:29 PM
#9
Thread Starter
New Member
Re: how can i switch users for the windows
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|