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

📄 idevxd.h

📁 wince host 和 target PCI驱动程序
💻 H
字号:
/*
 *  IDEVXD.H
 *
 *  Notes:
 *  The declaration for the Service table is not needed here.  I just put
 *  this down as a reference.  If the other VxD want to use this VxD
 *  service, it include in it H file like this and use the service like the
 *  below example:
 *
 *  VxDCall(_IDEVXD_Get_Version);
 *	 _asm mov pdwVersion, eax
 *
 *  Where pwdVersion is pointing to a DWORD value in IDEVXD
 */

#ifndef IDEVXD_H
#define IDEVXD_H
#define WANTVXDWRAPS

#ifndef _INC_WINDOWS
#include <basedef.h>
#endif

#include <vmm.h>
#include <vmmreg.h>
#include <debug.h>
#include <vwin32.h>
#include <winerror.h>
#include <vxdwraps.h>
#include "dvdcom.h"
typedef DIOCPARAMETERS *LPDIOC;

#define IDEVXD_DEVICE_ID	0xBEE

#define IDEVXD_Service  Declare_Service
#pragma warning (disable:4003) //***turn off not enough params warning from
										 //***C VxDCall!
Begin_Service_Table(IDEVXD)	
IDEVXD_Service	(_IDEVXD_Get_Version, VxD_LOCKED_CODE)
End_Service_Table(IDEVXD)

//***Prototype function
DWORD	CDECL GetPhysicalFromLinear(DWORD dwLinearAddr);
void    CDECL CritEnter(void);
void    CDECL CritLeave(void);
//***extern functions
void SetControllerAddress(WORD wController);
void Initialize(void);
void SelectDrive(BYTE bDriveNumber);
BOOL SendDeviceCommand(WORD *pwCommand, WORD *pwData, DWORD dwNumWord);
BOOL ReadDataBuffer(WORD *pwData, DWORD dwNumWord);
DWORD CDECL Sleep(DWORD dwMiliSecond);
BOOL GetDVDDriveStatus(DWORD *pdwErrorCode);
BOOL IsDriveOpen(BOOL *pfOpen);
#endif	//*** ifndef IDEVXD_H







⌨️ 快捷键说明

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