What Does the GetWindowsDirectory() API Call Return on a WinFrame System?
What Does the GetWindowsDirectory() API Call Return on a WinFrame System? What Does the GetWindowsDirectory() API Call Return on a WinFrame System?
Citrix states in their article: CTX829208
CTX829208 - What Does the GetWindowsDirectory() API Call Return on a WinFrame System?
This document was published at: http://support.citrix.com/kb/entry.jspa?externalID=CTX829208
Document ID: CTX829208, Created on: Jul 12, 2000, Updated: Apr 23, 2003
Products: Citrix WinFrame 1.8
WinFrame returns the user's Windows directory to the GetWindowsDirectory function. More specifically, this directory is %HOMEDRIVE%%HOMEPATH%Windows. Other API functions similarly affected are GetPrivateProfileString and WritePrivateProfileString.
Through a registry entry, the user's Windows directory name can be changed. This
specification is global to the entire system. Create the following registry entries:
HKEY_LOCAL_MACHINESOFTWARECitrixWindows
Under that key, create a REG_SZ value: 'UserDirectoryName' with the string for that
value being the new Windows directory name.
For example:
HKEY_LOCAL_MACHINESOFTWARECitrixWindowsUserDirectoryName = WIN31
This is useful for existing Windows users whose current Windows directory name is not
'WINDOWS' and who will be migrating their .INI and .GRP files to the WinFrame server. The
Windows directory can also be set to be the user's home directory by setting the registry key
to '.', such as:
HKEY_LOCAL_MACHINESOFTWARECitrixWindowsUserDirectoryName = .
NOTE: When this value is set to '.', no Windows subdirectory is created under the user's home
directory; the home directory is used as the Windows directory. It is not recommended that the
value be set to '.' because it is then difficult to tell which files in the user's home directory are
used by Windows programs.
Applications can also read and write .INI files to and from the %SystemRoot% directory instead
of the user's home directory. To set an application to use the %SystemRoot% rather than the
user's home directory:
1. Log on as an administrator. Run Regedt.exe. Select the key:
HKEY_LOCAL_MACHINESOFTWARECitrixCompatibilityApplications
2. From the Edit menu, click Add Key.
3. In the Key Name field, type the application's executable name minus the extension. For example,
if the application is Myapp.exe, type myapp.
4. With the new key selected, click Add Value from the Edit menu. In the Value Name field, type
flags and select REG_DWORD as the Data Type. In the Data field, type 0x40C in hex.
User login
Who's new
- Rullydery
- eagenorce
- rittaarier
- swasseZex
- gaterfoko