Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
If the PnP manager rejects a request to perform an operation, the PNP_VETO_TYPE enumeration is used to identify the reason for the rejection.
Syntax
typedef enum _PNP_VETO_TYPE {
PNP_VetoTypeUnknown,
PNP_VetoLegacyDevice,
PNP_VetoPendingClose,
PNP_VetoWindowsApp,
PNP_VetoWindowsService,
PNP_VetoOutstandingOpen,
PNP_VetoDevice,
PNP_VetoDriver,
PNP_VetoIllegalDeviceRequest,
PNP_VetoInsufficientPower,
PNP_VetoNonDisableable,
PNP_VetoLegacyDriver,
PNP_VetoInsufficientRights,
PNP_VetoAlreadyRemoved
} PNP_VETO_TYPE, *PPNP_VETO_TYPE;
Constants
PNP_VetoTypeUnknownThe specified operation was rejected for an unknown reason. |
PNP_VetoLegacyDeviceThe device does not support the specified PnP operation. |
PNP_VetoPendingCloseThe specified operation cannot be completed because of a pending close operation. |
PNP_VetoWindowsAppA Microsoft Win32 application vetoed the specified operation. |
PNP_VetoWindowsServiceA Win32 service vetoed the specified operation. |
PNP_VetoOutstandingOpenThe requested operation was rejected because of outstanding open handles. |
PNP_VetoDeviceThe device supports the specified operation, but the device rejected the operation. |
PNP_VetoDriverThe driver supports the specified operation, but the driver rejected the operation. |
PNP_VetoIllegalDeviceRequestThe device does not support the specified operation. |
PNP_VetoInsufficientPowerThere is insufficient power to perform the requested operation. |
PNP_VetoNonDisableableThe device cannot be disabled. |
PNP_VetoLegacyDriverThe driver does not support the specified PnP operation. |
PNP_VetoInsufficientRightsThe caller has insufficient privileges to complete the operation. |
Remarks
Text strings are associated with most of the veto types, and a function that receives a veto type value can typically request to also receive the value's associated text string. The following table identifies the text string associated with each value.
| pVeto type value | Text String |
|---|---|
| PNP_VetoTypeUnknown | None. |
| PNP_VetoLegacyDevice | A device instance path. |
| PNP_VetoPendingClose | A device instance path. |
| PNP_VetoWindowsApp | An application module name. |
| PNP_VetoWindowsService | A Windows service name. |
| PNP_VetoOutstandingOpen | A device instance path. |
| PNP_VetoDevice | A device instance path. |
| PNP_VetoDriver | A driver name. |
| PNP_VetoIllegalDeviceRequest | A device instance path. |
| PNP_VetoInsufficientPower | None. |
| PNP_VetoNonDisableable | A device instance path. |
| PNP_VetoLegacyDriver | A Windows service name. |
Requirements
| Requirement | Value |
|---|---|
| Header | cfg.h (include Cfgmgr32.h) |