Книга: 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. |
- Accessing Registry Settings in a Driver
- Для чего нужны папки Windows, Documents and Settings, Program Files и Temp?
- После переустановки Windows нет доступа к папке Мои документы или нельзя удалить оставшуюся от старой системы папку Docu...
- 11.7 Soft Timers and Timer Related Operations
- Editing Printer Settings
- Runtime Server Configuration Settings
- Remote Registry Editor
- 17.4.5. Interrupt Off Timing
- 17.4.6. Interrupt Off History
- 1.3.6 Interrupts
- 2.1.12 Interrupts
- PROJECT 6.7 — Two-Digit Multiplexed 7-Segment LED Counter with Timer Interrupt