what is the code ?????????
thx
Printable View
what is the code ?????????
thx
At the operating system level or your program?
OS
windows
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.
no
i dont mean that
i mean user accounts in windows xp ?
but thx for posting :)
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. :)
my fault !!
next time
i will put edit caption
thx :)
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.
i searched ExitWindowsEx
and there is no constant for stand by and switch user.
You are running XP in a Workgroup or standalone?
standalone
Ok, are you just trying to write your app to support FS or have a button or something that actually switches users?
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)
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 ???
what do you mean
Fast Switching must be enabled and is not supported if running with Ctl+Alt+Del is required to logon.
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
and the else ......................................................VB Code:
'Shutdown shell "shutdown -s -f -t 0" 'Restart shell "shutdown -r -f -t 0" 'Logoff shell "shutdown -l -f -t 0"
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. ;)
You might wnt to go over this KB article on Fast Switching.
http://support.microsoft.com/kb/310153/en-us
thx man
i understand the idea
but this article to c++
so i must use sameller functions in vb6 ?
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.
ok man
thx for the help :)
What about StandBy mode? That code doesn't seem to exist?
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.
Cool, an API. Thanks Dave.
Y/W and yes, I believe the mobo must support this and have it enabled in the CMOS setup.