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

📄 request.h

📁 Windows多线程编码随书源码
💻 H
字号:
//
// Define the data structure that will be used to pass
// database requests from the IS2ODBC DLL to DbServer.
// DbServer will fill in the sqlResult field.
//
// Note: It would be much better to use a buffer whose
//			size was not hardcoded. This could be done
//			by using different amounts of memory for
//			commit vs. reserve, but that is beyond the
//			scope of this book.
struct DbRequest
{
	char sqlFilter[512];
	char sqlSort[512];
	char sqlResult[4096];
};

//
// Define names for shared kernel objects.
// This allows both the IS2ODBC DLL and 
// the DbServer to communicate.
// 
const LPCTSTR MUTEX_DB_REQUEST			= _T("IS2ODBC Mutex");
const LPCTSTR EVENT_START_PROCESSING	= _T("IS2ODBC Event Start Processing");
const LPCTSTR EVENT_DONE_PROCESSING		= _T("IS2ODBC Event Done Processing");
const LPCTSTR FILE_DB_REQUEST			= _T("IS2ODBC DbRequest Structure");
const LPCTSTR EVENT_SERVER_RUNNING		= _T("IS2ODBC Server Running");

⌨️ 快捷键说明

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