Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Contains values that indicate the type of user configuration information to set or retrieve in a call to the WTSQueryUserConfig and WTSSetUserConfig functions.
Syntax
typedef enum _WTS_CONFIG_CLASS {
WTSUserConfigInitialProgram,
WTSUserConfigWorkingDirectory,
WTSUserConfigfInheritInitialProgram,
WTSUserConfigfAllowLogonTerminalServer,
WTSUserConfigTimeoutSettingsConnections,
WTSUserConfigTimeoutSettingsDisconnections,
WTSUserConfigTimeoutSettingsIdle,
WTSUserConfigfDeviceClientDrives,
WTSUserConfigfDeviceClientPrinters,
WTSUserConfigfDeviceClientDefaultPrinter,
WTSUserConfigBrokenTimeoutSettings,
WTSUserConfigReconnectSettings,
WTSUserConfigModemCallbackSettings,
WTSUserConfigModemCallbackPhoneNumber,
WTSUserConfigShadowingSettings,
WTSUserConfigTerminalServerProfilePath,
WTSUserConfigTerminalServerHomeDir,
WTSUserConfigTerminalServerHomeDirDrive,
WTSUserConfigfTerminalServerRemoteHomeDir,
WTSUserConfigUser
} WTS_CONFIG_CLASS;
Constants
WTSUserConfigInitialProgramA null-terminated string that contains the path of the initial program that Remote Desktop Services runs when the user logs on. If the WTSUserConfigfInheritInitialProgram value is 1, the initial program can be any program specified by the client. |
||||||||||||
WTSUserConfigWorkingDirectoryA null-terminated string that contains the path of the working directory for the initial program. |
||||||||||||
WTSUserConfigfInheritInitialProgramA value that indicates whether the client can specify the initial program.
|
||||||||||||
WTSUserConfigfAllowLogonTerminalServerA value that indicates whether the user account is permitted to log on to an RD Session Host server.
|
||||||||||||
WTSUserConfigTimeoutSettingsConnectionsA DWORD value that specifies the maximum connection duration, in milliseconds. One minute before the connection time-out interval expires, the user is notified of the pending disconnection. The user's session is disconnected or terminated depending on the WTSUserConfigBrokenTimeoutSettings value. Every time the user logs on, the timer is reset. A value of zero indicates that the connection timer is disabled. |
||||||||||||
WTSUserConfigTimeoutSettingsDisconnectionsA DWORD value that specifies the maximum duration, in milliseconds, that an RD Session Host server retains a disconnected session before the logon is terminated. A value of zero indicates that the disconnection timer is disabled. |
||||||||||||
WTSUserConfigTimeoutSettingsIdleA DWORD value that specifies the maximum idle time, in milliseconds. If there is no keyboard or mouse activity for the specified interval, the user's session is disconnected or terminated depending on the WTSUserConfigBrokenTimeoutSettings value. A value of zero indicates that the idle timer is disabled. |
||||||||||||
WTSUserConfigfDeviceClientDrivesThis constant currently is not used by Remote Desktop Services. A value that indicates whether the RD Session Host server automatically reestablishes client drive mappings at logon.
|
||||||||||||
WTSUserConfigfDeviceClientPrintersRDP 5.0 and later clients: A value that indicates whether the RD Session Host server automatically reestablishes client printer mappings at logon.
|
||||||||||||
WTSUserConfigfDeviceClientDefaultPrinterRDP 5.0 and later clients: A value that indicates whether the client printer is the default printer.
|
||||||||||||
WTSUserConfigBrokenTimeoutSettingsA value that indicates what happens when the connection or idle timers expire or when a connection is lost due to a connection error.
|
||||||||||||
WTSUserConfigReconnectSettingsA value that indicates how a disconnected session for this user can be reconnected.
|
||||||||||||
WTSUserConfigModemCallbackSettingsThis constant currently is not used by Remote Desktop Services. A value that indicates the configuration for dial-up connections in which the RD Session Host server stops responding and then calls back the client to establish the connection.
|
||||||||||||
WTSUserConfigModemCallbackPhoneNumberThis constant currently is not used by Remote Desktop Services. A null-terminated string that contains the phone number to use for callback connections. |
||||||||||||
WTSUserConfigShadowingSettingsRDP 5.0 and later clients: A value that indicates whether the user session can be shadowed. Shadowing allows a user to remotely monitor the on-screen operations of another user.
|
||||||||||||
WTSUserConfigTerminalServerProfilePathA null-terminated string that contains the path of the user's profile for RD Session Host server logon. The directory the path identifies must be created manually, and must exist prior to the logon. WTSSetUserConfig will not create the directory if it does not already exist. |
||||||||||||
WTSUserConfigTerminalServerHomeDirA null-terminated string that contains the path of the user's root directory for RD Session Host server logon. This string can specify a local path or a UNC path (\ComputerName\Share\Path). For more information, see WTSUserConfigfTerminalServerRemoteHomeDir. |
||||||||||||
WTSUserConfigTerminalServerHomeDirDriveA null-terminated string that contains a drive name (a drive letter followed by a colon) to which the UNC path specified in the WTSUserConfigTerminalServerHomeDir string is mapped. For more information, see WTSUserConfigfTerminalServerRemoteHomeDir. |
||||||||||||
WTSUserConfigfTerminalServerRemoteHomeDirA value that indicates whether the user's root directory for RD Session Host server logon is a local path or a mapped drive letter. Note that this value cannot be used with WTSSetUserConfig.
|
||||||||||||
WTSUserConfigUserA WTSUSERCONFIG structure that contains configuration data for the session. Windows Server 2008 and Windows Vista: This value is not supported. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Header | wtsapi32.h |