怎样在程序中屏蔽掉PrintScreen(打印屏幕)
我已经做了一个键盘hook,但不知道怎样使它不起作用
LRESULT __declspec(dllexport)__stdcall CALLBACK KeyboardProc(
int nCode,
WPARAM wParam,
LPARAM lParam)
{
char ch;
if (((DWORD)lParam & 0x40000000) &&(HC_ACTION==nCode))
{
//
MSG Msg; // message information
if(wParam==VK_SNAPSHOT){
MessageBox((HWND)AfxGetMainWnd(), "不能打印", "打印", MB_OK);
}
}
LRESULT RetVal = CallNextHookEx( hkb, nCode, wParam, lParam );
return RetVal;
}