I have this line of code:

invoke SendMessage, eax, WM_COMMAND, 419, 0

If I change the wParam ID to 420, then Task Manager pops up.
But where did the ID 419 came from :confused:

Where/how can I get the ID's, I thought that Taskmanager
was the solution, but I can't see the number 419 (0x1A3) in taskmanager:confused:
Posted on 2003-12-31 09:56:33 by The SharK
http://codescript.vdsworld.com/Webpages/Tray_messages.htm

Taskbar Properties
%A = @SENDMSG (#Shell_TrayWnd,$111,413,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,65949,0)

Date Time Properties
%A = @SENDMSG (#Shell_TrayWnd,$111,408,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,65944,0)

Tile Windows
%A = @SENDMSG (#Shell_TrayWnd,$111,405,0)

Tile Windows Horizontally
%A = @SENDMSG (#Shell_TrayWnd,$111,65940,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,65941,0)

Cascade Windows
%A = @SENDMSG (#Shell_TrayWnd,$111,403,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,65939,0)

Logoff Screen
%A = @SENDMSG (#Shell_TrayWnd,$111,402,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,5000,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,65938,0)

Open Run
%A = @SENDMSG (#Shell_TrayWnd,$111,401,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,65937,0)

Open Start Menu
%A = @SENDMSG (#Shell_TrayWnd,$111,305,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,65841,0)

Open Task Manager
%A = @SENDMSG (#Shell_TrayWnd,$111,420,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,65956,0)

Taskbar And Start Menu Properties -> Customize Notifications
%A = @SENDMSG (#Shell_TrayWnd,$111,421,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,65957,0)

Lock Unlock The Taskbar
%A = @SENDMSG (#Shell_TrayWnd,$111,424,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,65960,0)

Help And Support
%A = @SENDMSG (#Shell_TrayWnd,$111,503,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,66039,0)

Open Control Panel
%A = @SENDMSG (#Shell_TrayWnd,$111,505,0)

Turn Off Computer Dialog
%A = @SENDMSG (#Shell_TrayWnd,$111,506,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,66042,0)

Open Printers And Faxes
%A = @SENDMSG (#Shell_TrayWnd,$111,510,0)
%A = @SENDMSG (#Shell_TrayWnd,$111,66046,0)

Minimize All Windows
%A = @SENDMSG(#Shell_TrayWnd,$111,419,0)

Undo Minimize All Windows
%A = @SENDMSG(#Shell_TrayWnd,$111,416,0)
Posted on 2003-12-31 12:48:25 by bluffer
Great bluffer :alright:

But I sure would like to know, where the
sources for those codes are ?
Or is there a tool to retrieve them (like Spy++) :confused:
Posted on 2004-01-01 10:03:09 by The SharK
you can see many of them if you use reshack on explorer.exe

MENUITEM "&Help", 503, MFT_STRING, MFS_ENABLED
MENUITEM "&Run...", 401, MFT_STRING, MFS_ENABLED
MENUITEM "", 450, MFT_SEPARATOR, MFS_ENABLED
MENUITEM "S&ynchronize", 553, MFT_STRING, MFS_ENABLED
MENUITEM "&Log Off %s...", 402, MFT_STRING, MFS_ENABLED
MENUITEM "&Eject PC", 410, MFT_STRING, MFS_ENABLED
MENUITEM "Sh&ut Down...", 506, MFT_STRING, MFS_ENABLED
Posted on 2004-01-01 11:17:06 by bluffer