Menu

HOWTO: Add Restart to the main menu

Help
2010-01-19
2012-10-29
  • Ivo Beltchev

    Ivo Beltchev - 2010-01-19

    Here's how to add a Restart menu item:

    1) Open the StartMenuItems.ini file in a text editor

    2) Uncomment the MAIN_MENU.Items line (remove the semicolon from the start)

    3) Add a new item called RestartItem in the MAIN_MENU.Items list so it looks
    like this:
    .... UndockItem, DisconnectItem, RestartItem, ShutdownItem

    4) Add a description for the new item somewhere in the file. Doesn't really
    matter where, but for simplicity do it at the end:
    RestartItem.Command=restart
    RestartItem.Name=Restart
    RestartItem.Icon=shell32.dll,329

    The first line means that activating the item will execute the "restart"
    command.
    The second line means that the text of the command will be "Restart".
    The third line sets the icon. Here we use icon resource 329 from shell32.dll.
    You can use any icon resource from any DLL or EXE, or even a stand-alone ICO
    file. When using an icon resource make sure to use the resource ID and not the
    resource index. Also provide a full path to the DLL unless it is one already
    in use by the Explorer process like shell32.dll or imageres.dll.

     
  • willydv

    willydv - 2010-01-20

    WOW!

    Talking about a fast reply !

    Thank you very much ibeltchev, works wonderfully !
    :-)

     

Log in to post a comment.