일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- APP
- UNO
- length
- aduino
- Read
- Android
- atmega328
- preprocessing
- parameter
- java
- Pointer
- stream
- Barcode
- Class
- c++
- inheritance
- digitalRead
- file access
- compare
- wpf
- public
- Encapusulation
- Contour
- sensor
- Overloading
- flutter
- Unity
- SERIAL
- mfc
- memory
- Today
- Total
목록FindWindow (2)
폴크(FOLC)

# 일반적으로 프로세스간의 데이터를 공유하는 방법 -> IPC : Inter-Process Communication - 윈도우 메시지 전달 방법 - TCP/IP 통신 이용 방법 - 공유 메모리 이용 방법 - 공유 파일 이용 방법 - 등등 # 2개의 서로 다른 프로세스에서 특정한 데이터를 공유 하고자 하는 경우에 이용한다. -> 윈도우 메시지 전달 방법 -> WM_COPYDATA 구조체를 이용 # 소스 코드 HWND process = ::FindWindow(NULL, _T("XXXXXX")); // 찾는 process 이름 if (process != NULL) { CString Value = _T("1"); // 전송하는 데이터 값 COPYDATASTRUCT data; data.dwData = 0x9999..

# 윈도우에서 현재 실행되고 있는 프로그램을 찾아보고 핸들을 이용해서 상태를 변경할 수 있다. > FindWindow : 윈도우 핸들을 찾는다. > ShowWindowAsync : 윈도우를 활성화 시킨다. > SetForegroundWindow : 윈도우를 최상위로 이동 시킨다. # 소스 코드 using System; using System.Runtime.InteropServices; class FindProcess { [DllImport("user32.dll")] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("user32.dll")] private static extern bool S..