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

📄 common.h

📁 direct show
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -