Passing flags to program via ShellExecute
Posted on 2004-11-28
I am writing a program to manage my mp3 playlists, i have currently got it to open a playlist for an album - although i can only open 1 album at a time. I would like to pass the option to enqueue files aswell as opening one set at a time. Looking at the winamp exe i need to call [winamp.exe] /ADD [file name for playlist].
i currently use
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
this function like this....
ShellExecute 0, "Open", sPlaylists.Item(List1.ListIndex + 1), "", "", SW_SHOW
but i would also like to pass the "/ADD" flag to append to the playlist.