usingAPI; IntPtrhwnd=NativeMethods.FindWindowA(null,"无标题-记事本"); 所有方法使用API.NativeMethods.开始