Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
To install a minidriver under Stream.sys, the vendor must supply a device-specific INF file that complies with INF file syntax as described in INF File Sections and INF File Directives. In this file, minidrivers running under stream class can set special registry values in the device-specific AddReg section. Queste voci del Registro di sistema fungono da indicatori binari: impostarli sul valore esadecimale 01 per abilitare la funzionalità.
I minidriver della classe stream possono usare i valori del Registro di sistema seguenti:
PageOutWhenUnopened
Questa voce del Registro di sistema indica che il driver di dispositivo deve essere sottoposto a paging quando non è aperto. Se il dispositivo non può essere sottoposto a paging quando non è aperto, questa funzionalità viene disattivata per l'intero driver.
PowerDownWhenUnopened
Questa voce del Registro di sistema indica che il dispositivo deve essere spento quando non è aperto.
DriverUsesSWEnumToLoad
Software-only device drivers should use this registry string to inform stream class that the device driver requires different AddRef/DecRef handling than a hardware device driver.
I flag seguenti sono stati supportati in Windows 9x, ma sono obsoleti nei sistemi operativi basati su NT:
DontSuspendIfStreamsAreRunning
Questa variabile del Registro di sistema è obsoleta nei sistemi operativi windows 2000 e versioni successive basate su NT. (As of this release, DirectShow listens to power queries and puts all streams into pause when it receives a low-power query.) An application can still inform the system that it is in use by calling SetThreadExecutionState. Questa routine è descritta nella documentazione di Microsoft Windows SDK. Alternatively, a driver can use PoSetSystemState.
OkToHibernate
Questa stringa del Registro di sistema è valida solo per i driver in esecuzione in Windows 98. Non viene usato nei sistemi operativi basati su NT.
The following is an extract from the Usbintel.inf file that demonstrates how to set these registry values. Questo file, parte dell'esempio UsbIntel, è disponibile in Driver Development Kit (DDK) e Windows Driver Kit (WDK) per Windows XP tramite Windows 7 (Build 7600).
[Intel.USBDCam]
Include= ks.inf, kscaptur.inf
Needs= KS.Registration,KSCAPTUR.Registration
AddReg= Intel.USBDCam.AddReg
CopyFiles=Intel.USBDCam.Files.Ext
; WIA
SubClass=StillImage
DeviceType=3
DeviceSubType=0x1
Capabilities=0x00000031
DeviceData=Intel.USBDCam.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
[Intel.USBDCam.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbintel.sys
HKR,,PageOutWhenUnopened,3,01
; WIA
HKR,,HardwareConfig,1,1
HKR,,USDClass,,"{0527d1d0-88c2-11d2-82c7-00c04f8ec183}"