Ãö©óhock¸òpostthreadmessage
- ©«¤l
- 4
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 8
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office2010
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-8-27
- ³Ì«áµn¿ý
- 2015-9-15
|
Ãö©óhock¸òpostthreadmessage
§Ú¨Ï¥Î win32-dll ¥h³]©w¤@Óhock ¨Ó±µ¦¬postthreadmessage ªº°T¸¹
void DllExport _stdcall Initial(char *Source, char *AppName)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
...
...
hHook = ::SetWindowsHookEx(
WH_GETMESSAGE,
GetMessageProc,
AfxGetInstanceHandle(),
GetCurrentThreadId());
ASSERT(hHook);
}
³o¼Ë³]©w§¹²¦«á
§Ú¨Ï¥Îpostthreadmessage ¶Ç°e°T¸¹
µ¹hock ³]©wªº¨Æ¥óGetMessageProc
¥i¬O¬°¤°»ò§Úµo°e¤@¦¸Postthreadmessage«o¦¬¨ì¤¦¸°T®§ |
|
|
|
|
|
|