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

Code:
SHGetFolderPath(NULL, 
                             CSIDL_PROGRAM_FILES, 
                             NULL, 
                             0, 
                             szPath
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 ?

Thanks

My System SpecsSystem Spec
28 Jan 2010   #2
Microsoft MVP

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,
Captain
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
.


Reply

 CSIDL_PROGRAM_FILES always returns x86





Thread Tools



Similar help and support threads for2: CSIDL_PROGRAM_FILES always returns x86
Thread Forum
IE10 Up, FF Returns To Second Place News
Screen returns to log-in. Performance & Maintenance
Solved Random restarting returns BSOD Help and Support
Amazon Returns Chillout Room
Ping Returns Network & Sharing
bsod returns BSOD Help and Support
where are my carriage-returns (cr-lf) ? 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 07:07 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33