VideoPortCheckForDeviceExistence function (video.h)
The VideoPortCheckForDeviceExistence function determines whether the specified PCI device exists in the system.
Syntax
VIDEOPORT_DEPRECATED VIDEOPORT_API BOOLEAN VideoPortCheckForDeviceExistence(
[in] IN PVOID HwDeviceExtension,
[in] IN USHORT VendorId,
[in] IN USHORT DeviceId,
[in] IN UCHAR RevisionId,
[in] IN USHORT SubVendorId,
[in] IN USHORT SubSystemId,
[in] IN ULONG Flags
);
Parameters
[in] HwDeviceExtension
Pointer to the miniport driver's device extension.
[in] VendorId
Specifies the vendor ID.
[in] DeviceId
Specifies the device ID.
[in] RevisionId
Specifies the revision ID.
[in] SubVendorId
Specifies the subvendor ID.
[in] SubSystemId
Specifies the subsystem ID.
[in] Flags
Is a set of flags that determine whether the RevisionID and SubSystemID parameters should be used in checking for the new device. This parameter can be the logical OR of the following values:
Value | Meaning |
---|---|
CDE_USE_REVISION | Use the value in the RevisionID parameter in checking for the new device. |
CDE_USE_SUBSYSTEM_IDS | Use the value in the SubSystemID parameter in checking for the new device. |
Return value
VideoPortCheckForDeviceExistence returns TRUE if the device exists in the system, and FALSE otherwise.
Remarks
For more information about PCI identifiers, see Identifiers for PCI Devices.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows XP and later versions of the Windows operating systems. |
Target Platform | Desktop |
Header | video.h (include Video.h) |
Library | Videoprt.lib |
DLL | Videoprt.sys |
IRQL | PASSIVE_LEVEL |