HaPpY hApPy
using System; using System.Threading; //WIN32 API namespace ConsoleApplication1 { class Program { private static EventWaitHandle waitforsinglesignal; /// public static void ThreadFucnName() { for (int i = 0; i < 3; i++) { Console.WriteLine("하하"); Thread.Sleep(1000); } waitforsinglesignal.Set();//이 함수가 실행됨으로서 밑에 WaitOne();이후 부터 다시 실행됨. } static void Main(string[] args) { waitforsinglesignal = new..
using System; using System.Runtime.InteropServices;//DllImport namespace ConsoleApplication2 { class Program { //윈도우 캡션 명칭으로 프로세스 찾기 [DllImport("user32.dll")] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); static void Main(string[] args) { IntPtr pNotepad = FindWindow(null, "notepad");//찾고자하는 윈도우 캡션을 넣어주면됨 IntPtr pCalculate = FindWindow(null, "Calculrate"); // }..
http://pinvoke.net 사이트 참조하거나 oR~ gOOgling !!!
먼저 정확한건지 모르겠고,,,-_-; 인터넷에서 구글링해서 찾은방법 하나하나 시도해서 결국엔 성공했다, http://technet.microsoft.com/en-us/sysinternals/bb896649 다운은 여기서 가능 Service 열고 Remote Registry 를 Automation 으로 바꾼다.(양쪽 컴퓨터 다해줬다.) RegEdit를 실행하여 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib 찾아가우측 클릭후 permission에서 Authenticated Users를 등록(양쪽 컴퓨터에 다해줬다.) (psList 사용하는 컴퓨터에서는 이옵션 안줘도 됨 윈7기준 2013,1,31) 445(원격지 컴퓨터) 포트를..