public static extern IntPtr Session_AddTorrent(AddTorrentParamsHandle handle);
public static extern void Session_AsyncAddTorrent(AddTorrentParamsHandle handle);
public static extern uint AddTorrentParams_Trackers_Size_Get(AddTorrentParamsHandle handle);
public static extern void AddTorrentParams_Trackers_Get(AddTorrentParamsHandle handle, [In][Out][MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)] string[] trk, uint size);
public static extern void AddTorrentParams_Url_Set(AddTorrentParamsHandle handle, string name);
public static extern void AddTorrentParams_Url_Get(AddTorrentParamsHandle handle, StringBuilder str, int size);
public static extern void AddTorrentParams_Flags_Set(AddTorrentParamsHandle handle, uint flags);
public static extern uint AddTorrentParams_Flags_Get(AddTorrentParamsHandle handle);
public static extern void AddTorrentParams_TorrentInfo_Set(AddTorrentParamsHandle handle, TorrentInfoHandle ti);
public static extern IntPtr AddTorrentParams_TorrentInfo_Get(AddTorrentParamsHandle handle);
private void CleanUp() { AddTorrentParams_Destroy(handle); handle = new HandleRef(this, IntPtr.Zero); }
public static extern void AddTorrentParams_Destroy(AddTorrentParamsHandle h);
public AddTorrentParams() { IntPtr h = AddTorrentParams_Create(); handle = new HandleRef(this, h); }