Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 27765

W2008 - Delphi App cannot read "CSIDL_WINDOWS" variable for admin user but can do for common user

$
0
0

Hi,

we have one application developed in Delphi and it tries - at first run - to detect a .INI file located in the variable (%CSIDL_WINDOWS%\PROGRAM.INI). The strange behavior is that for a user (only member of 'domain users' and 'remote desktop users') that variable show fine and the program works fine since a new .INI file is created at "C:\USERS\{USERNAME}\WINDOWS\PROGRAM.INI".

But for another user, member of 'admins' group, that variable do not exist and the program shows an error like 'CSIDL_WINDOWS = error 1008'. Looking at the article (http://msdn.microsoft.com/en-us/library/windows/desktop/ms681383(v=vs.85).aspx) that error means that you are trying to contact a variable that not exist.

Why that variable do not exist?

After open a command prompt and run the command 'set', the only difference is that the user which is member of admin, have a variable named "LOCALAPPDATA" that the common user do not have. But that admin user do not have the folder "C:\USERS\{ADMIN_USER_NAME}\WINDOWS".

Can some one help me???


tks, Renato P



Viewing all articles
Browse latest Browse all 27765

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>