79362417

Date: 2025-01-16 16:44:00
Score: 1
Natty:
Report link

Suprising anyone got this to work because the parameters in findwindow are reversed and wrong. Should be

TrayHandle := FindWindow(nil, pchar('Shell_TrayWnd'));

and

PostMessage(TrayHandle,WM_CLOSE{ WM_EXITEXPLORER}, 0, 0);

works fine.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Martincg