Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit

Interrupt-Related Registry Settings

Interrupt-Related Registry Settings

If your device driver must load an installable ISR for a device and you want to increase the portability of your code, you can register the ISR handler, IRQ, and SYSINTR values in registry keys, read these values from the registry when initializing the driver, verify that the IRQ and SYSINTR values are valid, and then install the specified ISR by using the LoadIntChainHandler function.

Table 6-9 lists the registry entries that you can configure for this purpose. By calling the DDKReg_GetIsrInfo function, you can then read these values and pass them to the LoadIntChainHandler function dynamically. For more information about interrupt handing in device drivers, see Lesson 4, "Implementing an Interrupt Mechanism in a Device Driver," earlier in this chapter.

Table 6-9 Interrupt-related registry entries for device drivers

Registry Entry Type Description
IRQ REG_DWORD Specifies the IRQ used to request a SYSINTR for setting up an IST within the driver.
SYSINTR REG_DWORD Specifies a SYSINTR value to use for setting up an IST within the driver.
IsrDll REG_SZ The filename of the DLL containing the installable ISR.
IsrHandler REG_SZ Specifies the entry point for the installable ISR that the specified DLL exposes.

Оглавление книги


Генерация: 1.126. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз