DEVPKEY_Device_InstallState
DEVPKEY_Device_InstallState裝置屬性代表裝置實例的安裝狀態。
屬性 | 值 |
---|---|
屬性索引鍵 |
DEVPKEY_Device_InstallState |
Property-data-type 標識符 |
|
屬性存取 |
安裝應用程式和安裝程式唯讀 |
對應SPDRP_Xxx標識符 |
SPDRP_INSTALL_STATE |
當地語系化? |
No |
備註
Windows 會將 DEVPKEY_Device_InstallState 的值設定為 Cfgmgr32.h 中定義的其中一個 CM_INSTALL_STATE_Xxx 值。 CM_INSTALL_STATE_Xxx 值會對應至DEVICE_INSTALL_STATE列舉值。
您可以呼叫 CM_Get_DevNode_Property 或 SetupDiGetDeviceProperty 來擷取DEVPKEY_Device_InstallState的值。
Windows Server 2003 和 Windows XP 支援此屬性,但不支援DEVPKEY_Device_InstallState屬性索引鍵。 相反地,您可以使用對應的SPDRP_INSTALL_STATE標識符來存取這些舊版 Windows 上的 屬性值。 如需有關如何在這些舊版 Windows 上存取這個屬性值的資訊,請參閱 存取裝置實例SPDRP_Xxx屬性。
需求
版本:Windows Vista 和更新版本的 Windows 標頭:D evpkey.h (包括 Devpkey.h)