• 大小: 7.1MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-24
  • 语言: C#
  • 标签: c#  P2P  

资源简介

基于c#的P2P文件传输,可以实现文件传输

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Runtime.InteropServices;

namespace FileSharing_Explorer
{
    public partial class linkForm : Form
    {

        //API函数所需的参数
        private const int WM_SYSCOMMAND = 0x112;
        private const int SC_MOVE = 0xF010;
        private const int HTCAPTION = 2;
        //

        public linkForm()
        {
            InitializeComponent();
            CheckForIllegalCrossThreadCalls = false;
           
        }

        //引用API以实现窗体拖动
        [DllImport(“user32“)]
        private static extern bool ReleaseCapture();

        [DllImport(“user32“)]
        private static extern bool SendMessage(IntPtr hangdle int wMsg int wParam int lParam);

        private void linkForm_MouseDown(object sender MouseEventArgs e)
        {
            ReleaseCapture();
            SendMessage(this.Handle WM_SYSCOMMAND SC_MOVE + HTCAPTION 0);
        }
        //
     }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1382  2008-11-01 02:44  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\app.config

     文件     434176  2008-12-07 20:43  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\FileSharing Explorer.exe

     文件       1382  2008-11-01 02:44  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\FileSharing Explorer.exe.config

     文件      97792  2008-12-07 20:43  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\FileSharing Explorer.pdb

     文件       5632  2005-12-08 14:51  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\FileSharing Explorer.vshost.exe

     文件       1382  2008-11-01 02:44  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\FileSharing Explorer.vshost.exe.config

     文件       1382  2008-11-01 02:44  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\FileSharing_System.vshost.exe.config

     文件      20480  2008-12-06 00:20  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\FileTransfer.dll

     文件      17920  2008-12-06 00:20  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\FileTransfer.pdb

     文件      24576  2008-12-06 00:22  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\LocalClient.dll

     文件      19968  2008-12-06 00:22  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\LocalClient.pdb

     文件      20480  2008-12-05 23:54  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\LocalSearch.dll

     文件      17920  2008-12-05 23:54  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\LocalSearch.pdb

     文件          0  2008-12-07 20:43  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Log.txt

     文件      20480  2008-12-05 23:54  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\RemoteSearch.dll

     文件      15872  2008-12-05 23:54  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\RemoteSearch.pdb

     文件      99678  2006-05-15 13:53  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\add file.ico

     文件      99678  2006-05-15 13:53  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\add.ico

     文件      99678  2006-05-15 13:53  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\addd.ico

     文件       1161  2008-11-20 19:36  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\back.png

     文件       1568  2008-11-20 19:37  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\backresult.png

     文件       1118  2008-11-20 14:53  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\Button1.png

     文件       4270  2008-11-20 11:35  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\Button2.png

     文件       1022  2008-11-20 11:26  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\Button3.png

     文件       8553  2008-11-23 01:22  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\close.png

     文件       8531  2008-11-23 01:23  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\close2.png

     文件       1310  2008-11-20 20:03  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\continue.png

     文件     161862  2003-07-27 16:37  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\Document Blank.ico

     文件       1131  2008-11-20 19:35  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\download.png

     文件     161862  2002-10-11 08:26  源程序\FileSharing_System\FileSharing Explorer\FileSharing Explorer\bin\Debug\Skins\Favourites.ico

............此处省略244个文件信息

评论

共有 条评论