open pls with wmp (3072 bytes)

Share your advanced PureBasic knowledge/code with the community.
User avatar
bingo
Enthusiast
Enthusiast
Posts: 210
Joined: Fri Apr 02, 2004 12:21 pm
Location: germany/thueringen
Contact:

open pls with wmp (3072 bytes)

Post by bingo »

Code: Select all

memsize.i = 512
membuffer.i = GlobalAlloc_(#GMEM_FIXED,memsize)

GetPrivateProfileString_("playlist","file1","",membuffer,memsize,ProgramParameter())

ShellExecute_(0,@"open",@"wmplayer.exe",membuffer,@"",#SW_MAXIMIZE)

GlobalFree_(membuffer)

End
save the pls2wmp.exe in windows\system32 and set "open .pls with pls2wmp.exe" .

now, your wmp (xp/vista/7) can stream 'pls' directly :D
["1:0>1"]