MFC下获取键盘鼠标的钩子程序 #include"windows.h"HHOOKg_hMouse;HHOOKg_hKeyboard;#pragmadata_seg("MySec")HWNDg_hWnd=NULL;#pragmadata_seg()#pragmacomment(linker,"/section:MySec,RWS")