再次感谢各位:
请问下面这段是什么意思呢?
typedef HWOBJ const *PCHWOBJ;
const PCHWOBJ HWObjects[] = {
&IoObj,
&IrObj
};
// GetSerialObj : The purpose of this function is to allow multiple PDDs to be
// linked with a single MDD creating a multiport driver. In such a driver, the
// MDD must be able to determine the correct vtbl and associated parameters for
// each PDD. Immediately prior to calling HWInit, the MDD calls GetSerialObject
// to get the correct function pointers and parameters.
//
PHWOBJ
GetSerialObject(
DWORD DeviceArrayIndex
)
{
PHWOBJ pSerObj;
RETAILMSG(DEBUGMODE,(TEXT("GetSerialObject : DeviceArrayIndex = %d\r\n"), DeviceArrayIndex));
// Now return this structure to the MDD.
if ( DeviceArrayIndex == 1 )
pSerObj = (PHWOBJ)(&IrObj);
else
pSerObj = (PHWOBJ)(&IoObj);
return (pSerObj);
}
详情回复
发表于 2008-7-31 09:36
* Design Tools
* Development Tools and Languages
* Mobile and Embedded Development
* .NET Development
* Office Development
* Open Specifications
* Servers and Enterprise Development
* Web Development
* Win32 and COM Development
Mobile and Embedded Development
* Windows Embedded
* Windows Mobile
* Shared Windows Mobile 6 and Windows Embedded CE 6.0 Library
* .NET Compact Framework
* Mobile Web Development
* Windows Automotive
Windows Embedded
Please Wait
Windows Embedded CE
* Windows Embedded CE 6.0 Documentation
* Windows Embedded CE 6.0 Technical Articles
* Windows CE 5.0
* Windows CE .NET
* Windows CE 3.0
* Windows CE 2.1
Windows CE 5.0
* Product Documentation
* Technical Articles
Product Documentation
Please Wait
Developing a Device Driver
* Device Driver Development Overview
* Device Driver Development Concepts
* Device Driver Development Helper Libraries
* Device Driver Development How-to Topics
* Best Practices for Developing a Device Driver
* Device Manager
* Power Management
* Windows CE Drivers
Windows CE Drivers
* Driver Catalog Items
* Audio Drivers
* Battery Drivers
* Block Drivers
* Bluetooth HCI Transport Driver
* Direct3D Mobile Display Drivers
* DirectDraw Display Drivers
* Display Drivers
* DVD-Video Renderer
* Flash Media Drivers
* HID Drivers
* IEEE 1394 Drivers
* Keyboard Drivers
* Network Drivers
* Notification LED Drivers
* Parallel Port Drivers
* PC Card Drivers
* PCI Bus Driver
* Printer Drivers
* Root Bus Driver
* Secure Digital Card Drivers
* Serial Port Drivers
* Smart Card Drivers
* Stream Interface Drivers
* Timer Driver
* Touch Screen Drivers
* USB Function Drivers
* USB Host Drivers
* USB Serial Host Driver