How to determine the actual name of Program Files folder in mobile device registry ?

Posted on 2007-10-05
Medium Priority
Last Modified: 2013-12-27
Hi, I am trying to determine the actual name of the Program Files folder on a mobile device running a Windows CE operating system. OK so much of the time it is going to be plain old 'Program Files' but this is not always going to be true. This question is not about how to do this (I have already coded for this using RAPI functions CeRegOpenKeyEx and CeRegQueryValueEx which seems to be fine and I am reading the value from the mobile device(s) from HKLM\Explorer\Shell Folders because that's all I've found) but ... is this the correct place to be reading this value from ?
  I have recently recoded a program to read this value before copying files to a sub folder of the mobile device's Program Files folder whereas previously I had hard coded \Program Files\(sub folder). Now I'm getting users with problems, so am I getting this value from the correct place in the mobile device registry ?


Question by:RetroRocker
  • 2
LVL 48

Accepted Solution

Mikal613 earned 1000 total points
ID: 20029040

Author Comment

ID: 20029478
Mikal613 : Thanks, that's pretty damn (please excuse exuberance) close. Since first posting I have done a lot more research on this and did reach a satisfactory conclusion but didn't take the time to post back. FWIW I use RAPI and Delphi 7, I have coded my own RAPI unit and call CeGetSpecialFolderPath from rapi.dll which is installed with ActiveSync. This function can use the CSIDL_PROGRAM_FILES constant to locate the 'Program Files' folder on the mobile device. This is 100% better than my previous hit and miss method !
So although I did fix it for my own circumstances in the end, I genuinely appreciate the 'push' in the right direction. I have allocated the points and thanks again.
LVL 48

Expert Comment

ID: 20029833
Thanks :)

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question