⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 errormessage.h

📁 WMD驱动编程,本人收集整理的10多个例子和编程环境配置文档,特别是8139驱动,加了许多说明,并测试通过.
💻 H
字号:
///////////////////////////////////////////////////////////////////////////////
//
//	(C) Copyright 1999 - 2000 Mark Roddy
//	All Rights Reserved
//
//	Hollis Technology Solutions
//	94 Dow Road
//	Hollis, NH 03049
//	info@hollistech.com
//
//	Synopsis: 
// 
//
//	Version Information:
//
//	$Header: /iphook/usr/IpMonitor/ErrorMessage.h 2     1/27/00 10:35p Markr $ 
//
///////////////////////////////////////////////////////////////////////////////
#ifndef ERROR_MESSAGE_H
#define ERROR_MESSAGE_H

__inline void AfxErrorMessage(CString& message, DWORD status)
{
	LPVOID lpMsgBuf;

	FormatMessage( 
		FORMAT_MESSAGE_ALLOCATE_BUFFER | 
		FORMAT_MESSAGE_FROM_SYSTEM | 
		FORMAT_MESSAGE_IGNORE_INSERTS,
		NULL,
		status,
		MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
		(LPTSTR) &lpMsgBuf,
		0,
		NULL 
	);

	if (message.Right(1) != _T(":")) {
		message += CString(": ");
	}
	message += CString((LPCTSTR) lpMsgBuf);
	LocalFree( lpMsgBuf );
}

__inline CString& AfxErrorMessageEx(CString& message, DWORD status)
{
    AfxErrorMessage(message, status);

    return message;
}

__inline void AfxErrorMessageBox(CString& message, DWORD status)
{
	AfxErrorMessage(message, status);
	AfxMessageBox( LPCTSTR(message));
}
#endif
///////////////////////////////////////////////////////////////////////////////
// 
// Change History Log
//
// $Log: /iphook/usr/IpMonitor/ErrorMessage.h $
// 
// 2     1/27/00 10:35p Markr
// Prepare to release!
//
///////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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