DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 961805 - Last Review: January 7, 2009 - Revision: 1.0

Source: Microsoft Support

RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

Symptom



You may notice that when a process is started within a session running on a Terminal Server (TS) in Application Mode, the home folder of the user might be searched under following conditions:

 

·         If the process needs to load a DLL which is not local to the .exe or in system directories but in the path,

·          A TS Home Folder on the network is specified for the user, the search for the DLL also goes to the network location of the TS home folder.

 

Cause



This will happen if the process needs to load a DLL file which is not local to the .exe or in system directories path.  If the user has a TS home folder on the network specified for the user, the search for the DLL will also search the network location of the user’s TS Home folder.

More Information



“GetWindowsDirectory” API returns on TS in application mode the \windows folder which points to a network share when a TS Home folder is set in users AD properties.

 

Workaround for non-TS aware applications - depending on application behavior - might be to set a Flags value: "Do not substitute user Windows directory": 0x00000400 as per KB186498

 

If an application uses the GetWindowsDirectory API to query the Windows directory path, Terminal Server returns the user's home directory.

For more information see the following Microsoft Knowledge base article:

186498  Terminal Server application integration information

http://support.microsoft.com/default.aspx?scid=kb;EN-US;186498 (http://support.microsoft.com/default.aspx?scid=kb;en-us;186498)

 

 

Search order on process startup is:

• The directory from which the application loaded.

                Note The current working folder is typically the user's home folder.

• The current directory.

• The system directory.

• The 16-bit system directory.

• The Windows directory.

Note GetWindowsDirectory function used to get the path of this directory.

• The directories that are listed in the PATH environment variable.

For more information about the search order process at start up see the following Microsoft Knowledge base article:

306850  Programs start slowly or slow logon if the network connection to your home folder is slow

http://support.microsoft.com/default.aspx?scid=kb;EN-US;306850 (http://support.microsoft.com/default.aspx?scid=kb;en-us;306850)

 

DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

APPLIES TO
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard x64 Edition
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Server 2003, Datacenter x64 Edition
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Windows Server 2008 Standard
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Datacenter
Keywords: 
kbnomt kbrapidpub KB961805
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support