Getting icon of executable file

Discussion in 'Questions (Windows Mobile)' started by ddahan, May 3, 2009.

  1. ddahan

    ddahan Member Licensed User

    I'm new to Basic4PPC, I'll appreciate your advice.
    I'm trying to write a launcher application, I am facing two issues:
    - Getting a list of installed programs in the device
    - Getting the icon associated to an (executable) file

  2. ddahan

    ddahan Member Licensed User

  3. ExcludeReality

    ExcludeReality Active Member Licensed User

    The installed programs are most likely stored in \Windows\Start-menu\Programs.
    Use the FileSearch keyword and an arraylist to list all files in that folder.
    Then use the Shell keyword to execute on of the files.

    See this thread: Bit of help

    However, I have no clue how to get the icon if even possible.

    I've attached small example.

    Attached Files:

  4. ddahan

    ddahan Member Licensed User

    Just Noticed that Andrew's solution is for desktop only.:signOops:
    Any other advice?

  5. ddahan

    ddahan Member Licensed User

    Please, I'll appreciate a direction on resolving this issue.
    Andrew presented a desktop solution, I guess that getting icons of a selected file in the device is also doable.

  6. agraham

    agraham Expert Licensed User

    Not without invoking calls to native dlls which is not possible from within Basic4ppc. The Compact Framework on devices is a limited subset of that available on the desktop and the required functionality just isn't there.
  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