Prev: Read SPD data from EEPROM
Next: mouse beahvior
From: Gary Li on 24 Apr 2010 20:04 Do you mean QueryDeviceCapabilities() in audio WaveRT miniport API? That is the chance our audio driver may modify DEVICE_CAPABILITIES typedef struct _DEVICE_CAPABILITIES { USHORT Size; USHORT Version; ULONG DeviceD1 :1; ULONG DeviceD2 :1; ULONG LockSupported :1; ULONG EjectSupported :1; ULONG Removable :1; ULONG DockDevice :1; ULONG UniqueID :1; ULONG SilentInstall :1; ULONG RawDeviceOK :1; ULONG SurpriseRemovalOK :1; ULONG WakeFromD0 :1; ULONG WakeFromD1 :1; ULONG WakeFromD2 :1; ULONG WakeFromD3 :1; ULONG HardwareDisabled :1; ULONG NonDynamic :1; ULONG WarmEjectSupported :1; ULONG NoDisplayInUI :1; ULONG Reserved1 :1; ULONG Reserved :13; ULONG Address; ULONG UINumber; DEVICE_POWER_STATE DeviceState[POWER_SYSTEM_MAXIMUM]; SYSTEM_POWER_STATE SystemWake; DEVICE_POWER_STATE DeviceWake; ULONG D1Latency; ULONG D2Latency; ULONG D3Latency; } DEVICE_CAPABILITIES, *PDEVICE_CAPABILITIES; However, by reading the definitions of each field, I could find not anyone may affect "disable" option in device manager. Could you point out more clue? Thanks -Gary "Maxim S. Shatskih" wrote: > > Does DriverUnload(), or PnP IRPs affect disableable feature? > > Yes, "query capabilities" one. > > -- > Maxim S. Shatskih > Windows DDK MVP > maxim(a)storagecraft.com > http://www.storagecraft.com > > . >
From: Gary Li on 24 Apr 2010 20:07 Could you say it more specificly? Which portion of device or driver may affect this feature? Thanks -Gary "Doron Holan [MSFT]" wrote: > the HW ID is not the important part, it is other methods/properties that > acpi exposes for the device or the driver itself which is doing this at > runtime > > d > > -- > > This posting is provided "AS IS" with no warranties, and confers no rights. > > > "Gary Li" <garyli(a)verizon.net> wrote in message > news:70D9D3A8-2841-4374-A12B-681768E477C1(a)microsoft.com... > > The device was enumerated by ACPI with PnP ID = ACPI\xxxx > > However, another driver with similar ID can be disabled. > > Does DriverUnload(), or PnP IRPs affect disableable feature? > > > > -Gary > > > > "Doron Holan [MSFT]" wrote: > > > >> a driver or ACPI can be indicating that the device is not disableable > >> > >> d > >> > >> -- > >> > >> This posting is provided "AS IS" with no warranties, and confers no > >> rights. > >> > >> > >> "Gary Li" <garyli(a)verizon.net> wrote in message > >> news:52F34F4D-26E0-4112-84E1-ED84205ED0DA(a)microsoft.com... > >> > I custimized an audio driver based on AC97 sample in WDK, but it does > >> > not > >> > expose "disable" in properties of my device in device manager. > >> > Is it because my driver missed anything, or how to make the option show > >> > up. > >> > > >> > Thanks > >> > > >> > -Gary Li > >> > >> . > >> > . >
From: Maxim S. Shatskih on 25 Apr 2010 12:37
> However, by reading the definitions of each field, I could find not anyone > may affect "disable" option in device manager. Sorry, this is IoInvalidateDeviceState and MN_QUERY_DEVICE_STATE, not the capabilities. -- Maxim S. Shatskih Windows DDK MVP maxim(a)storagecraft.com http://www.storagecraft.com |