<div class="content" name="USERCONFIG" uuid="dba750b8-cb35-4e88-9811-e2a1f8a10701"><p>For a specific <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_b416f72e-cf04-4d80-bf93-f5753f3b0998" data-linktype="relative-path">terminal server</a></span>
session, the <b>USERCONFIG</b> structure indicates the user and session
configuration.</p><dl>
<dd>
<div><pre>  
 typedef struct _USERCONFIG {
     ULONG fInheritAutoLogon : 1;
     ULONG fInheritResetBroken : 1;
     ULONG fInheritReconnectSame : 1;
     ULONG fInheritInitialProgram : 1;
     ULONG fInheritCallback : 1;
     ULONG fInheritCallbackNumber : 1;
     ULONG fInheritShadow : 1;
     ULONG fInheritMaxSessionTime : 1;
     ULONG fInheritMaxDisconnectionTime : 1;
     ULONG fInheritMaxIdleTime : 1;
     ULONG fInheritAutoClient : 1;
     ULONG fInheritSecurity : 1;
     ULONG fPromptForPassword : 1;
     ULONG fResetBroken : 1;
     ULONG fReconnectSame : 1;
     ULONG fLogonDisabled : 1;
     ULONG fWallPaperDisabled : 1;
     ULONG fAutoClientDrives : 1;
     ULONG fAutoClientLpts : 1;
     ULONG fForceClientLptDef : 1;
     ULONG fRequireEncryption : 1;
     ULONG fDisableEncryption : 1;
     ULONG fUnused1 : 1;
     ULONG fHomeDirectoryMapRoot : 1;
     ULONG fUseDefaultGina : 1;
     ULONG fCursorBlinkDisabled : 1;
     ULONG fPublishedApp : 1;
     ULONG fHideTitleBar : 1;
     ULONG fMaximize : 1;
     ULONG fDisableCpm : 1;
     ULONG fDisableCdm : 1;
     ULONG fDisableCcm : 1;
     ULONG fDisableLPT : 1;
     ULONG fDisableClip : 1;
     ULONG fDisableExe : 1;
     ULONG fDisableCam : 1;
     ULONG fDisableAutoReconnect : 1;
     ULONG ColorDepth : 3;
     ULONG fInheritColorDepth: 1;
     ULONG   fErrorInvalidProfile : 1;
     ULONG fPasswordIsScPin: 1;
     ULONG   fDisablePNPRedir:1;
     WCHAR UserName[ USERNAME_LENGTH + 1 ];
     WCHAR Domain[ DOMAIN_LENGTH + 1 ];
     WCHAR Password[ PASSWORD_LENGTH + 1 ];
     WCHAR WorkDirectory[ DIRECTORY_LENGTH + 1 ];
     WCHAR InitialProgram[ INITIALPROGRAM_LENGTH + 1 ];
     WCHAR CallbackNumber[ CALLBACK_LENGTH + 1 ];
     CALLBACKCLASS Callback;
     SHADOWCLASS Shadow;
     ULONG MaxConnectionTime;
     ULONG MaxDisconnectionTime;
     ULONG MaxIdleTime;
     ULONG KeyboardLayout;
     BYTE MinEncryptionLevel;
     WCHAR NWLogonServer[ NASIFILESERVER_LENGTH + 1 ];
     APPLICATIONNAME PublishedName;
     WCHAR WFProfilePath[ DIRECTORY_LENGTH + 1 ];
     WCHAR WFHomeDir[ DIRECTORY_LENGTH + 1 ];
     WCHAR WFHomeDirDrive[ 4 ];
 } USERCONFIG, * PUSERCONFIG;
</pre></div>
</dd></dl><p><b>fInheritAutoLogon:</b>  The prompt for
the password setting. TRUE indicates the use of client-specified autologon
settings, FALSE specifies the use of machine autologon settings.</p><p><b>fInheritResetBroken:</b>  Reset the
session when the connection is broken. TRUE indicates the value to use for <b>fResetBroken</b>
from the user properties if the machine/user policy is not set, FALSE
otherwise.</p><p><b>fInheritReconnectSame:</b>  Reconnect
from the same client setting. TRUE indicates the value to use for <b>fReconnectSame</b>
from the user properties if the machine/user policy is not set, FALSE
otherwise.</p><p><b>fInheritInitialProgram:</b>  The initial
program setting. TRUE indicates the value to use for <b>InitialProgram</b> from
the user properties if the machine/user policy is not set, FALSE otherwise.</p><p><b>fInheritCallback:</b>   The callback
setting. TRUE indicates the value to use for <b>Callback</b> from the user
properties if the machine/user policy is not set, FALSE otherwise.<a id="Appendix_A_Target_64"></a><a aria-label="Product behavior note 64" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_64" data-linktype="relative-path">&lt;64&gt;</a></p><p><b>fInheritCallbackNumber:</b>  The
callback number setting. TRUE indicates the value to use for <b>CallbackNumber</b>
from the user properties if the machine/user policy is not set, FALSE
otherwise.<a id="Appendix_A_Target_65"></a><a aria-label="Product behavior note 65" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_65" data-linktype="relative-path">&lt;65&gt;</a></p><p><b>fInheritShadow:</b>  The shadow setting.
TRUE indicates the value to use for <b>Shadow</b> from the user properties if
the machine/user policy is not set, FALSE otherwise.</p><p><b>fInheritMaxSessionTime:</b>  The maximum
allowed session connection time setting. TRUE indicates the value to use for <b>MaxSessionTime</b>
from the user properties if the machine/user policy is not set, FALSE
otherwise.</p><p><b>fInheritMaxDisconnectionTime:</b>  The
maximum allowed session disconnect time setting. TRUE indicates the value to
use for <b>MaxDisconnectionTime</b> from the user properties if the
machine/user policy is not set, FALSE otherwise.</p><p><b>fInheritMaxIdleTime:</b>  The maximum
allowed session idle time. TRUE indicates the value to use for <b>MaxIdleTime</b>
from the user properties if the machine/user policy is not set, FALSE
otherwise.</p><p><b>fInheritAutoClient:</b>  The auto client
setting. TRUE indicates the value to use for <b>fAutoClientDrivers</b> and <b>fAutoClientLpts</b>
from the user properties if the machine/user policy is not set, FALSE
otherwise.</p><p><b>fInheritSecurity:</b>  Inherit security
setting. TRUE indicates the use of security settings from the user properties
if the machine/user policy is not set, FALSE otherwise.</p><p><b>fPromptForPassword:</b>  Set to TRUE to
ignore the credential sent from the client and always prompt for a password,
FALSE otherwise.</p><p><b>fResetBroken:</b>  Set to TRUE to log
off the session when the idle timers for the session expire. Otherwise, the
session will be disconnected when the timer expires.</p><p><b>fReconnectSame:</b>  FALSE indicates
that the user can reconnect from any client computer to a disconnected session.</p><dl>
<dd>
<p>TRUE indicates that the user must reconnect to a
disconnected session from the same client computer that initially established
the disconnected session. Logging on from a different client computer will lead
to a new terminal server session being created.</p>
</dd></dl><p><b>fLogonDisabled:</b>  TRUE indicates that
a user cannot log on to a session remotely, FALSE otherwise.<a id="Appendix_A_Target_66"></a><a aria-label="Product behavior note 66" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_66" data-linktype="relative-path">&lt;66&gt;</a></p><p><b>fWallPaperDisabled:</b>  TRUE indicates
display of the desktop wallpaper in the session has been disabled, FALSE
otherwise.</p><p><b>fAutoClientDrives:</b>  TRUE specifies
to automatically redirect local drives on the client so they are accessible to
the user in the remote terminal server session, FALSE otherwise.</p><p><b>fAutoClientLpts:</b>  TRUE specifies to
automatically redirect printers on the client so they are accessible to the
user in the remote terminal server session, FALSE otherwise.</p><p><b>fForceClientLptDef:</b>  TRUE indicates
to force the client&#39;s redirected printer to be the default printer for the
user, FALSE otherwise.</p><p><b>fRequireEncryption:</b>  TRUE indicates
the connection must be encrypted, FALSE otherwise.</p><p><b>fDisableEncryption:</b>  TRUE indicates
the connection does not need encryption, FALSE otherwise.</p><p><b>fUnused1:</b>  Not used.</p><p><b>fHomeDirectoryMapRoot:</b>  Not used.</p><p><b>fUseDefaultGina:</b>  TRUE indicates to
override a third-party <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_23aa4520-d05c-4416-9d4b-ca86905cb426" data-linktype="relative-path">GINA</a></span> so that only
the default GINA is used for the terminal server session, FALSE otherwise.<a id="Appendix_A_Target_67"></a><a aria-label="Product behavior note 67" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_67" data-linktype="relative-path">&lt;67&gt;</a></p><p><b>fCursorBlinkDisabled:</b>  TRUE
indicates disable the blinking of the mouse cursor, FALSE otherwise.<a id="Appendix_A_Target_68"></a><a aria-label="Product behavior note 68" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_68" data-linktype="relative-path">&lt;68&gt;</a></p><p><b>fPublishedApp:</b>  Not used.</p><p><b>fHideTitleBar:</b>  Not used.</p><p><b>fMaximize:</b>  Not used.</p><p><b>fDisableCpm:</b>  TRUE indicates disable
client printer redirection, FALSE otherwise.</p><p><b>fDisableCdm:</b>  TRUE indicates disable
client drive redirection, FALSE otherwise.</p><p><b>fDisableCcm:</b>  TRUE indicates disable
client COM port redirection, FALSE otherwise.</p><p><b>fDisableLPT:</b>  TRUE indicates disable
client printer (LPT) port redirection, FALSE otherwise.</p><p><b>fDisableClip:</b>  TRUE indicates
disable client clipboard redirection, FALSE otherwise.</p><p><b>fDisableExe:</b>  TRUE indicates disable
.exe file execution, FALSE otherwise.</p><p><b>fDisableCam:</b>  TRUE indicates disable
client audio redirection, FALSE otherwise.</p><p><b>fDisableAutoReconnect:</b>  TRUE
indicates disable auto-reconnect functionality, FALSE otherwise.<a id="Appendix_A_Target_69"></a><a aria-label="Product behavior note 69" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_69" data-linktype="relative-path">&lt;69&gt;</a></p><p><b>ColorDepth:</b>  The color depth of the
session.<a id="Appendix_A_Target_70"></a><a aria-label="Product behavior note 70" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_70" data-linktype="relative-path">&lt;70&gt;</a></p><p><b>fInheritColorDepth:</b>  Set to TRUE to
inherit color depth from the user or client configuration, FALSE otherwise.<a id="Appendix_A_Target_71"></a><a aria-label="Product behavior note 71" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_71" data-linktype="relative-path">&lt;71&gt;</a></p><p><b>fErrorInvalidProfile:</b>  Set to TRUE
if WFProfilePath, WFHomeDir, or WFHomeDirDrive is invalid (too long), FALSE
otherwise.<a id="Appendix_A_Target_72"></a><a aria-label="Product behavior note 72" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_72" data-linktype="relative-path">&lt;72&gt;</a></p><p><b>fPasswordIsScPin:</b>  Set to TRUE if
the password field contains a smart card PIN.<a id="Appendix_A_Target_73"></a><a aria-label="Product behavior note 73" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_73" data-linktype="relative-path">&lt;73&gt;</a></p><p><b>fDisablePNPRedir:</b>  Set to TRUE if
Plug and Play (PnP) redirection is disabled, FALSE otherwise.</p><p><b>UserName:</b>  The user name used in
autologon scenarios.</p><p><b>Domain:</b>  The <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_b0276eb2-4e65-4cf1-a718-e0920a614aca" data-linktype="relative-path">domain</a></span>
name used in autologon scenarios.</p><p><b>Password:</b>  The password used in
autologon scenarios.</p><p><b>WorkDirectory:</b>  The work directory
for the initial program.</p><p><b>InitialProgram:</b>  The program to run
instead of the default.<a id="Appendix_A_Target_74"></a><a aria-label="Product behavior note 74" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_74" data-linktype="relative-path">&lt;74&gt;</a></p><p><b>CallbackNumber:</b>  The telephone
number that will be returned by the <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_ffff3f01-8c21-44d3-bbda-0062a1fbda4b" data-linktype="relative-path">Terminal Services</a></span>
server to the client when the server is unable to complete the connection
request from the client. The user on the client side can use this number to
call back for technical support.<a id="Appendix_A_Target_75"></a><a aria-label="Product behavior note 75" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_75" data-linktype="relative-path">&lt;75&gt;</a></p><p><b>Callback:</b>  The callback class for
callback operations.<a id="Appendix_A_Target_76"></a><a aria-label="Product behavior note 76" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_76" data-linktype="relative-path">&lt;76&gt;</a></p><p><b>Shadow:</b>  The shadow setting of the
session.</p><p><b>MaxConnectionTime:</b>  The maximum
allowed session connection time setting of the session in milliseconds. The
session will disconnect/logoff once the limit is reached.</p><p><b>MaxDisconnectionTime:</b>  The maximum
allowed session disconnect time of the session in milliseconds. The session
will logoff once the limit is reached.</p><p><b>MaxIdleTime:</b>  The maximum allowed
session idle time setting of the session in milliseconds. The session will
disconnect/logoff once the limit is reached.</p><p><b>KeyboardLayout:</b>  The keyboard layout
(HKL) of the session.</p><p><b>MinEncryptionLevel:</b>  The minimum
allowed encryption level. Possible numeric values for this parameter include 1
(Low), 2 (Client Compatible), 3 (High), and 4 (FIPS). Detailed description of
these encryption levels is included in <span><a href="../ms-rdpbcgr/5073f4ed-1e93-45e1-b039-6e30c385867c" data-linktype="relative-path">[MS-RDPBCGR]</a></span>
sections <span><a href="../ms-rdpbcgr/f1c7c93b-94cc-4551-bb90-532a0185246a" data-linktype="relative-path">5.3.1</a></span>
and <span><a href="../ms-rdpbcgr/6e547618-4755-41cb-9b3b-c9075565b80d" data-linktype="relative-path">5.4.1</a></span>.</p><p><b>NWLogonServer:</b>  The NetWare logon
server name.<a id="Appendix_A_Target_77"></a><a aria-label="Product behavior note 77" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_77" data-linktype="relative-path">&lt;77&gt;</a></p><p><b>PublishedName:</b>  Not used.</p><p><b>WFProfilePath:</b>  The terminal server
profile path. Overrides the standard profile path.</p><p><b>WFHomeDir:</b>  The terminal server home
directory path. Overrides the standard home directory.</p><p><b>WFHomeDirDrive:</b>  The terminal server
home directory drive. Overrides the standard home directory.</p></div>