common.h
来自「direct show」· C头文件 代码 · 共 44 行
H
44 行
#ifndef COMMON_H
#define COMMON_H
#ifdef RING_3
//#define RING_0 //for vxd
//#ifndef RING_0
#include <windows.h>
#endif
#include "sdatabuf.h"
//******************** Compiler control *************
//for simulate pci int
//in release version you must undefine SIMINT
//#define SIMINT 1
//#define SIMINT 0
#define DEBUG_S1000 1
////////////////////////////////////////////////////////////////////////////////
// Types, Constants and Structures used in DLL and VxD
////////////////////////////////////////////////////////////////////////////////
#define DLL_EXPORT __declspec(dllexport)
#define DLL_IMPORT __declspec( dllimport)
#define ISR_TABLE_ENTRIES 32 // max entries in the interrupt service table
#define VXD_CALL_FAILED 0xFFFFFFFF
#define VXD_CALL_SUCESS 0x0
#define MAX_DEVICES 1 //Devices is the the numbers of S1000 in one system
//#define SIMINT 1
typedef void (* VOIDINTFUN)();
typedef void (* VOIDINTFUNP)(void *);
typedef struct { // Register entry
int nIndex; // Reg. index
DWORD dwMask; // Register data mask - 0 to ignore
DWORD dwData; // Register data
} tRegEntry, *ptRegEntry;
typedef struct { // Register list
int nEntries; // Number of register entries
ptRegEntry pRegEntries; // Ptr to register entries
} tRegList, *ptRegList;
#endif // COMMON_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?