1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Reading/Writing Reg keys with extention in name

Discussion in 'Questions (Windows Mobile)' started by showaco, May 13, 2009.

  1. showaco

    showaco Member Licensed User

    Start MRU

    In wm6.5, the start menu has all the link files listed in registry as keys like this and then these keys have values for : icon, rank, etc.
    I'm having trouble accessing the registry keys that are named similiar to this:
    Activesync.lnk

    I need to access values within like these:
    HKLM\Security\Shell\StartInfo\Start\Activesync.lnk\rank

    "rank" is the list order for how start menu items are displayed and I'm writing a configuration app for rearranging the start menu easily.

    If the key has then ".lnk" extention in name, then I get an error, other keys for start menu folders("Games","Tools", etc) I have no problems with. This is a sample line of how I'm reading the values.(they are dword) Ranks is a list box for listing the rank numbers, SubFolder is the list box of all available directories(.lnk variety) under the Start key. I place the normal start menu folders into a different arraylist when parsing subkeys of Start, and that part works fine using similiar code.

    Code:
    Ranks.Add=reg.GetInt("Security\Shell\StartInfo\Start\"&SubFolder.Item(i),"Rank")
    Is basic4ppc not able to read values in keys named with extentions or am I missing it? I use mortscript some and it reads the same keys without issues, but I don't like mixing mortscript in if I can help it.
     
    Last edited: May 21, 2009
  2. Erel

    Erel Administrator Staff Member Licensed User

    I don't know of any problem with extensions or keys with commas. Can you post a small program that demonstrates this problem?
     
  3. showaco

    showaco Member Licensed User

    thanks for the reply, I tried a different approach(reading reg without using variable) and it worked, so it must be an error caused by my variable that I need to track down.
     
  4. agraham

    agraham Expert Licensed User

    This is the problem. You don't assign to a property to add to a ListBox, you invoke a method.

    Ranks.Add( ...)
     
  5. showaco

    showaco Member Licensed User

  6. Erel

    Erel Administrator Staff Member Licensed User

    Looks great :icon_clap:
     
  7. showaco

    showaco Member Licensed User

    Thanks, another question. Is there a way to access the wm start menu mru to get a list of recent apps? I would like to be able to add the recent apps into start menu of wm6.5 to make it more user friendly. I can manage adding them, but need a way to access the list.:confused:
     
  8. joel2009

    joel2009 Member Licensed User

    i think it was removed as of 6.5, i know there was a way to access it before though
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice