您的位置:首页 > 编程语言 > C#

在C#中能否直接调用WIN32API

2005-07-20 14:42 375 查看
要引用阿,you see
[DllImport("KERNEL32.DLL", EntryPoint="MoveFileW", SetLastError=true,
CharSet=CharSet.Unicode, ExactSpelling=true,
CallingConvention=CallingConvention.StdCall)]
public static extern bool MoveFile(String src, String dst);
public static void Main()
{
bool bl=MoveFile("y","u");
MessageBox.Show(bl.ToString());
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: