C#中调用DLL文件

用DllImportAttribute直接调用
using System.Runtime.InteropServices;

[DllImport("KERNEL32.DLL", EntryPoint="MoveFileW",  SetLastError=true,
CharSet=CharSet.Unicode, ExactSpelling=true,
CallingConvention=CallingConvention.StdCall)]
public static extern bool MoveFile(String src, String dst);

posted on 2005-01-26 11:29    阅读(764)  评论(0编辑  收藏  举报

导航