📄 hello.cpp
字号:
// HELLO.cpp - main module for VxD HELLO
#define DEVICE_MAIN
#include "hello.h"
Declare_Virtual_Device(HELLO)
#undef DEVICE_MAIN
VOID SayHello(void)
{
#ifdef DEBUG
dout << "Hello, VxD World!" << endl;
#endif
}
VOID SayGoodbye(void)
{
#ifdef DEBUG
dout << "Goodbye!" << endl;
#endif
}
BOOL HelloDevice::OnSysDynamicDeviceInit()
{
SayHello();
return TRUE;
}
BOOL HelloDevice::OnSysDynamicDeviceExit()
{
SayGoodbye();
return TRUE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -