This topic has not yet been rated - Rate this topic

IADsTSUserEx::TerminalServicesWorkDirectory property

Applies to: desktop apps only

The working directory path for the user.

This property is read/write.

Syntax

HRESULT put_TerminalServicesWorkDirectory(
  [in]   BSTR pNewVal
);

HRESULT get_TerminalServicesWorkDirectory(
  [out]  BSTR *pVal
);

Property value

The working directory path.

Error codes

These methods support the standard return values, including S_OK. For more information, see ADSI Error Codes.

Remarks

To set an initial application to start when the user logs on to the Remote Desktop Session Host (RD Session Host) server, you must first set the TerminalServicesInitialProgram property, and then set this property.

Examples

For an example, see TerminalServicesInitialProgram.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Tsuserex.h (include Tsuserex.h or Tsuserex_i.c)

Type library

Tsuserex.tlb

DLL

Tsuserex.dll

See also

IADsTSUserEx

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ