📄 hookme.cpp
字号:
//#define UNICODE
#ifdef UNICODE
#define _UNICODE
#endif
#include <windows.h>
#include <tchar.h>
DWORD WINAPI GetMajorOSVer(VOID) {
return(GetVersion() & 0xFF);
}
VOID Xmain(VOID) {
TCHAR Message[128];
wsprintf(Message, _T("Major OS version = %u"), GetMajorOSVer());
MessageBox(NULL, Message, _T("HookMe.exe - 1st call"), MB_OK);
MessageBox(NULL, _T("Now run: apihooks -oq hooks2 hookme.exe"), _T("HookMe.exe"), MB_OK);
wsprintf(Message, _T("Major OS version = %u"), GetMajorOSVer());
MessageBox(NULL, Message, _T("HookMe.exe - 2nd call"), MB_OK);
ExitProcess(0);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -