How can I detect whether fast user switching is in use ?

  • Thread starter Thread starter Vincent Schmid
  • Start date Start date
V

Vincent Schmid

Hello,

I need to know within my program whether a XP workstation is configured to
use the fast user switching, or not. What API or registry key would give me
this information?

regards,
Vincent Schmid
 
A Discussion About the Availability of the Fast User Switching Feature
http://support.microsoft.com/default.aspx?scid=kb;en-us;294739&Product=winxp

Description of the Fast User Switching Compatibility Service
http://support.microsoft.com/default.aspx?scid=kb;en-us;294855&Product=winxp

--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User

Be Smart! Protect your PC!
http://www.microsoft.com/security/protect/

---------------------------------------------------------------------------------------------


| Hello,
|
| I need to know within my program whether a XP workstation is configured to
| use the fast user switching, or not. What API or registry key would give me
| this information?
|
| regards,
| Vincent Schmid
 
Hi Vincent

Have a look here:

Control Panel>User Accounts - Change the way users log on or off.

--

Will Denny
MS-MVP Windows - Shell/User
Please reply to the News Groups


| Hello,
|
| I need to know within my program whether a XP workstation is configured to
| use the fast user switching, or not. What API or registry key would give
me
| this information?
|
| regards,
| Vincent Schmid
|
|
 
Mr Frish,

Thank you for this answer : both links are interesting, unfortunately none
says how a program could detect whether FUS is activated or not on the
machine...

Vincent Schmid
 
Hi Vincent,

One way of determining the FUS status is to get the value of AllowMultipleTSSessions

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AllowMultipleTSSessions
-and-
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\AllowMultipleTSSessions
(not present by default)

AllowMultipleTSSessions 0 indicates FUS is disabled.

NOTE: The AllowMultipleTSSessions value present under 'policies' will override the value under WinLogon. (If Winlogon\AllowMultipleTSSessions is set to 0 and policies\system\AllowMultipleTSSessions is set to 1, FUS will be enabled.) Therefore you may want to see if the latter exists, if so take that value.

--
Ramesh - Microsoft MVP
Windows XP Shell/User
http://www.mvps.org/sramesh2k

AumHa VSOP: http://www.aumha.org

Hello,

I need to know within my program whether a XP workstation is configured to
use the fast user switching, or not. What API or registry key would give me
this information?

regards,
Vincent Schmid
 
Thank you Ramesh,

It looks like what I need.

sincerely,
Vincent



"Ramesh [MVP]" <[email protected]@mvps.org> a écrit dans le message de
Hi Vincent,

One way of determining the FUS status is to get the value of
AllowMultipleTSSessions

HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon\AllowMultipleTSSessions
-and-
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\AllowMultiple
TSSessions
(not present by default)

AllowMultipleTSSessions 0 indicates FUS is disabled.

NOTE: The AllowMultipleTSSessions value present under 'policies' will
override the value under WinLogon. (If Winlogon\AllowMultipleTSSessions is
set to 0 and policies\system\AllowMultipleTSSessions is set to 1, FUS will
be enabled.) Therefore you may want to see if the latter exists, if so take
that value.

--
Ramesh - Microsoft MVP
Windows XP Shell/User
http://www.mvps.org/sramesh2k

AumHa VSOP: http://www.aumha.org

Hello,

I need to know within my program whether a XP workstation is configured to
use the fast user switching, or not. What API or registry key would give me
this information?

regards,
Vincent Schmid
 
You're welcome Vincent.

--
Ramesh - Microsoft MVP
Windows XP Shell/User
http://www.mvps.org/sramesh2k

AumHa VSOP: http://www.aumha.org

Thank you Ramesh,

It looks like what I need.

sincerely,
Vincent



"Ramesh [MVP]" <[email protected]@mvps.org> a écrit dans le message de
Hi Vincent,

One way of determining the FUS status is to get the value of
AllowMultipleTSSessions

HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon\AllowMultipleTSSessions
-and-
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\AllowMultiple
TSSessions
(not present by default)

AllowMultipleTSSessions 0 indicates FUS is disabled.

NOTE: The AllowMultipleTSSessions value present under 'policies' will
override the value under WinLogon. (If Winlogon\AllowMultipleTSSessions is
set to 0 and policies\system\AllowMultipleTSSessions is set to 1, FUS will
be enabled.) Therefore you may want to see if the latter exists, if so take
that value.

--
Ramesh - Microsoft MVP
Windows XP Shell/User
http://www.mvps.org/sramesh2k

AumHa VSOP: http://www.aumha.org

Hello,

I need to know within my program whether a XP workstation is configured to
use the fast user switching, or not. What API or registry key would give me
this information?

regards,
Vincent Schmid
 
Back
Top