리버싱
mfc 에서 #32770(Dialog)의 의미
블르샤이닝
2014. 1. 20. 10:36
728x90
mfc에서 dialog 형태로 프로그램을 만들면 #32770(Dialog) 라는 classname을 얻을 수 있다.
일반적인 다이얼로그 혹은 메시지 박스도 해당된다.
어떤 코드에서 #32770을 찾는다면 다이얼로그 베이스의 프로그램을 찾는 것이다.
대체로 아래의 함수를 이용한다.
HWND FindWindowEx
(
HWND hwndParent,
HWND hwndChildAfter,
LPCTSTR lpszClass,
LPCTSTR lpszWindow
);
FindWindowEx(NULL,NULL ,TEXT("#32770"), TEXT("열기"));
FindWindwo와 FindwindowEx에서 찾는 방식에 차이가 있다.
참조 : http://baeg.tistory.com/59
728x90