vmbeep.cpp

来自「武安河书第一版(vxd)Windows 驱动例子」· C++ 代码 · 共 32 行

CPP
32
字号
// VMBEEP.cpp - main module for VxD VMBEEP

#define DEVICE_MAIN
#include "vmbeep.h"
Declare_Virtual_Device(VMBEEP)
#undef DEVICE_MAIN
#include <vsd.h>

VOID SayHello(void)
{

// dout is the default debug output stream.  You must include vdebug.h
// to use it.  You can use the conventional stream operator ( << ) to 
// format strings and unsigned integers on the debug console.

#ifdef DEBUG
	dout << "Hello, VxD World!" << endl;
#endif

}
//BOOL VmbeepDevice::OnDeviceInit(VMHANDLE hSysVM, PCHAR pszCmdTail)
//{
//	return TRUE;
//}
BOOL VmbeepDevice::OnCreateVM(VMHANDLE hVM)
{
	SayHello();
	VSD_Bell();
	return TRUE;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?