Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: CSIDL_PROGRAM_FILES always returns x86

28 Jan 2010   #1

Windows 7 64bit
CSIDL_PROGRAM_FILES always returns x86

I am not sure if this is the right forum to discuss this.
I have a code that needs to search for an exe. By default the application saves in the program files folder and hence I use

to search for the folder. This is returning the Program Files(x86) all the time, even if the application is stored in Program files. I am using Win 7 64bit and the code is being compiled for x64. Does anybody know why this might be happening ? Also, what is the best method to search for an exe when its not launched thru code ?


My System SpecsSystem Spec
28 Jan 2010   #2
Capt.Jack Sparrow

Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit

Hi, Welcome to SF,

I'm not sure about this but see whether this helps CSIDL

Hope ths helps,
My System SpecsSystem Spec
28 Jan 2010   #3

Windows 7 64bit

Yes, that is what i had referred. Can you please test and tell me if it is just me that are getting the wrong folder name ?
My System SpecsSystem Spec


 CSIDL_PROGRAM_FILES always returns x86

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
Screen returns to log-in.
After opening with log-in the screen returns to log in again. Work interrupted by return to log in. Matter of short time for working on a document Cataloochee:)
Performance & Maintenance
Amazon Returns
Do you think amazon will accept a buzzing psu for return?
Chillout Room
Ping Returns
When I ping a remote computer by name, I get a return ping but the IP address is different than that of the remote computer. I can also ping by the proper remote computers IP address and it returns. The return I get from the remote computer is strange to me, it is from a "rack Storage"
Network & Sharing
bsod returns
windows 7 64bit, new hard drive, first install of os, purchased new, all other hardware besides the new hd ran fine with previous windows xp for 1-2 years with no BSOD's in xp ever. I had some bsod's last month that I traced back to an incompatible webcam....
BSOD Help and Support
where are my carriage-returns (cr-lf) ?
Hello forumnites, How do I get this forum to acknowledge / recognize either soft(shift-enter) or hard (enter)? This eliminating of white-space is very, very annoying and makes my posts difficult to read. What am I doing wrong?
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 10:51.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App