|
전 훅킹이 몬지 콜백이 몬지 잘 모르지만요. SendMessage는 바로 메시지를 해당 윈도우로 날려버리
고 PostMessage는 메시지 큐에 메시지를 쌓고 PeekMessage 가 GetMessage가로 끄집어 내는 걸로 아
는디...... 아닌강... 아님 말공..........
The SendMessage function sends the specified message to a window or windows. The function
calls the window procedure for the specified window and does not return until the window
procedure has processed the message. The PostMessage function, in contrast, posts a message
to a thread's message queue and returns immediately.
The PostMessage function places (posts) a message in the message queue associated with the
thread that created the specified window and then returns without waiting for the thread to
process the message. Messages in a message queue are retrieved by calls to the GetMessage or
PeekMessage function.
김재승 님이 쓰신 글 :
: 안녕하세요. 김재승이라고 합니다.
:
: SendMessage에 대한 질문을 하나 드릴께요.
:
: 보통 전역으로 시스템 훅킹을 걸었을 경우(마우스), 훅킹 DLL의 콜백함수를 통해
:
: 마우스 동작여부를 알수 있는데, 인위적으로 SendMessage를 사용해서 특정 윈도우에
:
: 마우스 다운 명령을 날렸을 경우 이것도 당연히 훅킹 DLL의 콜백함수가 호출된 후
:
: 해당 윈도우에 마우스 다운이 먹힐줄 알았는데 그렇지가 않고 (콜백함수를 거치지 않고)
:
: 바로 해당 윈도우에 마우스 다운이 먹힙니다. SendMessage를 사용하면 큐에 메세지가
:
: 쌓이는 것으로 알고 있는데 제가 잘못알고 있는지...ㅠㅠ
:
: 아시는 분들께 답변을 부탁드립니다.
:
: 좋은 하루 되세요. ^^
|