intercept.cpp
来自「这是一本学习 window编程的很好的参考教材」· C++ 代码 · 共 18 行
CPP
18 行
// Intercept.cpp : Implementation of CIntercept
#include "stdafx.h"
#include "ShellHook.h"
#include "Intercept.h"
/////////////////////////////////////////////////////////////////////////////
// CIntercept
HRESULT CIntercept::Execute(LPSHELLEXECUTEINFO lpsei)
{
TCHAR szMessage[1024];
wsprintf(szMessage,_T("Do you want to %s %s?"),lpsei->lpVerb,lpsei->lpFile);
if(MessageBox(NULL,szMessage,_T("Are you sure?"),MB_YESNO)==IDYES)
return S_FALSE;
else
return S_OK;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?