MPLATFORMLib Namespace > IMPlugins Interface : PluginsRemove Method |
Here is example of how to remove all plugins:
Dim myPlug As Object Dim myCookie As Integer Dim nCount As Integer myPlaylist.PluginsGetCount(nCount) For i As Integer = 0 To nCount - 1 myPlaylist.PluginsGetByIndex(i, myPlug, myCookie) myPlaylist.PluginsRemove(myPlug) Next
object myPlug; int myCookie; int nCount; myPlaylist.PluginsGetCount(out nCount); for (int i=0; i<nCount; i++) { myPlaylist.PluginsGetByIndex(i, out myPlug, out myCookie); myPlaylist.PluginsRemove(myPlug); }
var myPlug: TObject; nCount, i, myCookie: integer; myPlugins: IMPlugins; begin myPlugins:= myPlaylist as IMPlugins; myPlugins.PluginsGetCount(nCount); for i:=0 to nCount-1 do begin myPlugins.PluginsGetByIndex(i, myPlug, myCookie); myPlugins.PluginsRemove(myPlug); end; end;