110,567
社区成员
发帖
与我相关
我的任务
分享
[DllImport("ftpdll.dll", EntryPoint = "FtpServerDir",CharSet=CharSet.Auto,CallingConvention=CallingConvention.StdCall)]
protected static extern byte[] FtpServerDir(IntPtr THandle, byte[] FTPServer, byte[] DirName);
/// <summary>
/// 获取指定ftp服务器指定目录下的文件信息
/// </summary>
/// <param name="FtpServer"></param>
/// <param name="DirName"></param>
/// <returns></returns>
public string GetFtpServerDic(byte[] FtpServer,byte[] DirName)
{
byte[] temp = FtpServerDir(IntPtr.Zero, FtpServer, DirName);
return temp.ToString();
}