|
Writing Windows WDM Device DriversFor example, if you were trying to install a driver called AbcXyz, you would use the following steps. • Copy the driver executable, AbcXyz.sys, to the Windows System32\Drivers directory. • Make a new registry key HKLM\System\CurrentControl Set\Services\AbcXyz\, replacing AbcXyz with your driver name. • In this registry key, set the values according to Table 11.6. • Restart Windows 98. Table 11.6 Windows 98 registry values Value Type Contents Type DWORD 1 Start DWORD 2 as per Table 11.4 DisplayName REG_SZ AbcXyz" driver name ErrorControl DWORD 1 as per Table 11.5 Conclusion This chapter first looked at how to install WDM device drivers using INF files. It then described the installation process for NT style kernel mode drivers. The device driver management tools were discussed. The Servicer program can start and stop NT style drivers. Our tour of the core device driver functionality continues in the next chapter by looking at how to interact with the Windows Management Instrumentation system. Listing 11.2 NTMnstall.Cpp ...» | Код для вставки книги в блог HTML
phpBB
текст
|
|