|
-
Jan 10th, 2007, 07:40 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] what is the code for stand by and switch user ?
what is the code ?????????
thx
Last edited by snakeman; Jan 10th, 2007 at 10:38 PM.
-
Jan 11th, 2007, 07:26 AM
#2
Re: what is the code for stand by and switch user ?
At the operating system level or your program?
-
Jan 11th, 2007, 09:47 PM
#3
Thread Starter
Hyperactive Member
Re: what is the code for stand by and switch user ?
-
Jan 11th, 2007, 09:52 PM
#4
Re: what is the code for stand by and switch user ?
Switch user eh?
Like
form1 = user1
form2 = user2
when user1 switch to user2...
form1.hide
form2.show
then have a login form something like that?
other than that, i have no idea.
-
Jan 11th, 2007, 10:02 PM
#5
Thread Starter
Hyperactive Member
Re: what is the code for stand by and switch user ?
no
i dont mean that
i mean user accounts in windows xp ?
but thx for posting
-
Jan 11th, 2007, 10:25 PM
#6
Re: what is the code for stand by and switch user ?
LOL. you edit your post #3. You said it's part of your program.
When editing, put an [edit] caption then specify the reason why you edit your post.
Looks like i'm dumb with my reply.
-
Jan 11th, 2007, 10:34 PM
#7
Thread Starter
Hyperactive Member
Re: what is the code for stand by and switch user ?
-
Jan 11th, 2007, 10:36 PM
#8
Thread Starter
Hyperactive Member
Re: what is the code for stand by and switch user ?
next time
i will put edit caption
thx
-
Jan 11th, 2007, 11:54 PM
#9
Re: what is the code for stand by and switch user ?
No harm done. Well, back to topic. Hmm, try searching for ExitWindowsEx there might be a constant for switch user and standby but i'm not that sure.
-
Jan 12th, 2007, 07:55 PM
#10
Thread Starter
Hyperactive Member
Re: what is the code for stand by and switch user ?
i searched ExitWindowsEx
and there is no constant for stand by and switch user.
-
Jan 12th, 2007, 08:26 PM
#11
Re: what is the code for stand by and switch user ?
You are running XP in a Workgroup or standalone?
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 
-
Jan 12th, 2007, 08:29 PM
#12
Thread Starter
Hyperactive Member
Re: what is the code for stand by and switch user ?
-
Jan 12th, 2007, 08:31 PM
#13
Re: what is the code for stand by and switch user ?
Ok, are you just trying to write your app to support FS or have a button or something that actually switches users?
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 
-
Jan 12th, 2007, 08:35 PM
#14
Thread Starter
Hyperactive Member
Re: what is the code for stand by and switch user ?
have a button or something like that.
like cmd1 shutdown the windows(i already know it)
cmd2 restart the windows(i already know it)
cmd3 logoff the windows(i already know it)
cmd4 switch users (i dont know)
cmd5 standby (i dont know)
-
Jan 12th, 2007, 08:43 PM
#15
Re: what is the code for stand by and switch user ?
The thing is that the workstation must have FS enabled first before you can do anything. Is something you can guarentee will be on or ???
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 
-
Jan 12th, 2007, 08:49 PM
#16
Thread Starter
Hyperactive Member
Re: what is the code for stand by and switch user ?
-
Jan 12th, 2007, 09:15 PM
#17
Re: what is the code for stand by and switch user ?
Fast Switching must be enabled and is not supported if running with Ctl+Alt+Del is required to logon.
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 
-
Jan 12th, 2007, 10:15 PM
#18
Thread Starter
Hyperactive Member
Re: what is the code for stand by and switch user ?
i dont think i explain it well .
i have 5 command button in my app
1 for shutdown the windows
1 for restart
1 for logoff
1 for stand by
1 for switchuser
i know the first three
VB Code:
'Shutdown
shell "shutdown -s -f -t 0"
'Restart
shell "shutdown -r -f -t 0"
'Logoff
shell "shutdown -l -f -t 0"
and the else ......................................................
-
Jan 13th, 2007, 03:58 AM
#19
Re: what is the code for stand by and switch user ?
Yes, I understand that but do you understand that Fast Switching is not supported under every XP configuration. It depends on the way XP is set up as I have been mentioning before. You need to determine if its available before you can offer any kind of use with it in your program. Its a two step process. Step one: determine if available. Step two: invoke FS upon the user clicking your button.
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 
-
Jan 13th, 2007, 04:49 AM
#20
Re: what is the code for stand by and switch user ?
You might wnt to go over this KB article on Fast Switching.
http://support.microsoft.com/kb/310153/en-us
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 
-
Jan 13th, 2007, 05:55 PM
#21
Thread Starter
Hyperactive Member
Re: what is the code for stand by and switch user ?
thx man
i understand the idea
but this article to c++
so i must use sameller functions in vb6 ?
-
Jan 13th, 2007, 09:19 PM
#22
Re: what is the code for stand by and switch user ?
Yes, similar but in VB. The C++ API calls can be converted to VB. Note the WM_WTSSESSION_CHANGE message and its wParam contents. You should then probably want to send the WM_WTSSESSION_CHANGE message to invoke a fast switch but what parameters are needed I am unsure. Looks like the closest thing I have found so far.
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 
-
Jan 14th, 2007, 05:57 PM
#23
Thread Starter
Hyperactive Member
Re: what is the code for stand by and switch user ?
ok man
thx for the help
-
Jul 15th, 2007, 12:43 PM
#24
Re: [RESOLVED] what is the code for stand by and switch user ?
What about StandBy mode? That code doesn't seem to exist?
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
-
Jul 15th, 2007, 05:12 PM
#25
Re: [RESOLVED] what is the code for stand by and switch user ?
Standby mode is either setup in the CMOS settings or in Windows Power settings. It should be a different process that you would have to shell.
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 
-
Jul 15th, 2007, 05:37 PM
#26
Re: [RESOLVED] what is the code for stand by and switch user ?
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
-
Jul 15th, 2007, 06:06 PM
#27
Re: [RESOLVED] what is the code for stand by and switch user ?
Cool, an API. Thanks Dave.
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 
-
Jul 15th, 2007, 06:41 PM
#28
Re: [RESOLVED] what is the code for stand by and switch user ?
Y/W and yes, I believe the mobo must support this and have it enabled in the CMOS setup.
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
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
|