win32ts.WTSQueryUserConfig
object = WTSQueryUserConfig(ServerName, UserName , ConfigClass )
Returns user configuration
Parameters
ConfigClass | Returned value |
WTSUserConfigInitialProgram | Unicode string, program to be run when user logs on |
WTSUserConfigWorkingDirectory | Unicode string, working dir for initial program |
WTSUserConfigModemCallbackPhoneNumber | Unicode string |
WTSUserConfigTerminalServerProfilePath | Unicode string |
WTSUserConfigTerminalServerHomeDir | Unicode string |
WTSUserConfigTerminalServerHomeDirDrive | Unicode string |
WTSUserConfigfInheritInitialProgram | Int |
WTSUserConfigfAllowLogonTerminalServer | Int, 1 if user can log on thru Terminal Service |
WTSUserConfigTimeoutSettingsConnections | Int, max connection time (ms) |
WTSUserConfigTimeoutSettingsDisconnections | Int |
WTSUserConfigTimeoutSettingsIdle | Int, max idle time (ms) |
WTSUserConfigfDeviceClientDrives | Int |
WTSUserConfigfDeviceClientPrinters | Int |
WTSUserConfigfDeviceClientDefaultPrinter | Int |
WTSUserConfigBrokenTimeoutSettings | Int |
WTSUserConfigReconnectSettings | Int |
WTSUserConfigModemCallbackSettings | Int |
WTSUserConfigShadowingSettings | Int, indicates if user's session my be monitored |
WTSUserConfigfTerminalServerRemoteHomeDir | Int, |
Return Value
The type of the returned value is dependent on the config class requested