Delphi and Windows XP most used programs list question

Posted on 2006-04-01
Last Modified: 2010-04-05
Hi All,

I need to know how I can programmatically using Delphi 7 erase Windows XP most used programs list (the list which appears just above "All Programs" when you hit the Start button.

So can someone please provide me with sample code on how to do that?

Thanks in advance
Question by:GiantMatrix
    1 Comment
    LVL 4

    Accepted Solution

    The most used programs list its stored in the "UserAssist" registry Key:

    Look at:

    If you delete all that (poorly coded) string values stored under this key you'll get what you want.

    try some like this:

    // ***** Code Start **** //
    uses registry;

    procedure CleanMURP;
      MRUP_Key:string = 'Software\Microsoft\Windows\CurrentVersion\Explorer\'+
      ValueNames: TStrings;
      ValueNames := nil;
      with TRegistry.Create do try
        RootKey := HKEY_CURRENT_USER;
        OpenKey(MRUP_Key, False);

        ValueNames := TStringList.Create;

        for i := 0 to ValueNames.Count-1 do

        if Assigned(ValueNames) then ValueNames.Free;
    // ***** Code End **** //

    PS: The Shortcuts will be gone, only after you logoff your current session.



    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    730 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now