HI. I was needing to add a program to Tarkbar(an easy way without using objectcreateinterface ) so I found this. So then I deduced how to add to the StartMenu while I see the shell32 in hex editor search for taskbarunpin|taskbarpin string. I found another two interesting string (startpin|startunpin) So I try out and they work too but to add to StartMenu. This is not an official way to do this, however it works. $sFileLnk parameter must be Link(.lnk) to our program. ;~ Success: True.
;~ Failure: False.
Func DeleteFromTaskBar($sFileLnk)
Return _WinAPI_ShellExecute($sFileLnk,"","", "taskbarunpin")
EndFunc
Func AddToTaskBar($sFileLnk)
Return _WinAPI_ShellExecute($sFileLnk,"","", "taskbarpin")
EndFunc
Func AddToStartMenu($sFileLnk)
Return _WinAPI_ShellExecute($sFileLnk,"","", "startpin")
EndFunc
Func DeleteFromStartMenu($sFileLnk)
Return _WinAPI_ShellExecute($sFileLnk,"","", "startunpin")
EndFunc
Saludos