1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54:
| Library WinampAPI; {$WARN UNIT_PLATFORM OFF} Uses FastShareMem, SysUtils, Classes, Windows, ShellAPI, FileCtrl, WinAmpCtr;
Var Dirs: TStringList; WM: TWinampCtr; {$R *.res}
Function FindPLs(Directory: String): TStringList Stdcall; Var SR: TSearchRec; Begin result := TStringList.Create; FindFirst(Directory + '\*.m3u', faAnyFile, SR); Dirs.Add(Directory); result.Add(SR.Name); While FindNext(SR) = 0 Do Begin result.Add(SR.Name); Dirs.Add(Directory); End; End;
Function ReplaceM3U(List: String): String Stdcall; Begin result := StringReplace(List, '.m3u', '', [rfReplaceAll]); End;
Exports ReplaceM3U, FindPLs, Execute, getFilename, Winampctrl_init, Winampctrl_free, PlayState, StartWinamp, NextTrack, PrevTrack, started, PlayingRandom, shuffle, Trackdata, State;
End. |