Description
The non-Ex ShellExecute does not check the MaximizeApps registry setting in ROS while it is respected on Windows.
I suppose ShellExecuteW just calls ShellExecuteExW on Windows. In ROS it skips some steps. In addition to missing MaximizeApps, it also misses the RunDLL32 handling and CoInitialize!
To reproduce, set DWORD MaximizeApps=1. Save this code as "test.wsf" and run it.
<?xml version="1.0" ?><job> |
<script language="JScript"><![CDATA[ |
var SHA=WScript.CreateObject("Shell.Application"); |
SHA.ShellExecute("notepad.exe"); |
]]></script></job>
|
Notepad is not started maximized. Then start Notepad from Start->Run, it will be maximized.