📄 searchengine.cpp
字号:
#include <windows.h>
#include <windowsx.h>
#include <aygshell.h>
#include "resource.h"
#include "ErrorReporting.h"
#include "SearchEngine.h"
#pragma warning(disable: 4700)
#pragma warning(disable: 4715)
#pragma warning(disable: 4800)
int SearchEngine(BYTE *propvalBuffer,LPTSTR Year,LPTSTR Month,LPTSTR Day){
LPTSTR WYEAR = new TCHAR[5];
LPTSTR WMONTH = new TCHAR[5];
LPTSTR WDAY = new TCHAR[5];
SYSTEMTIME *stime;
int numRow;
PCEPROPVAL prgPropVal;
prgPropVal = (PCEPROPVAL) propvalBuffer;
numRow=prgPropVal[0].val.iVal;
for(int i=1;i<=numRow;i++){
FileTimeToSystemTime(&prgPropVal[numRow].val.filetime,stime);
swprintf(WYEAR,L"%d",stime->wYear);
swprintf(WMONTH,L"%d",stime->wMonth);
swprintf(WDAY,L"%d",stime->wDay);
if(WYEAR==Year&&WMONTH==Month&&WDAY==Day){
return numRow;
}else if(i==numRow){
MessageBox(NULL, L"Not Found!!", L"Search Result",MB_OK);
return 0;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -