This function retrieves the video card information.
[C++Builder/Visual C++] BOOL
PK3QueryVideoID(LPLONG lpVendorID, LPSTR lpszVendorName, LPLONG
lpVendorNameLen, LPLONG lpDeviceID);
[Delphi] function
PK3QueryVideoID(var lpVendorID: Longint; lpszVendorName: PAnsiChar;
var lpVendorNameLen, lpDeviceID: Longint): LongBool;
[Visual Basic] Function
PK3QueryVideoID(lpVendorID As Long, ByVal lpszVendorName As String,
lpVendorNameLen As Long, lpDeviceID As Long) As Long
Parameters
Name | Explanation |
lpVendorID | The retrieved vendor number |
lpszVendorName | The retrieved vendor name In C++Builder, Visual C++, and Delphi. this is a string terminating with Null. In Visual Basic, this is a string of specified size. |
lpVendorNameLen | The length (in digits) of the retrieved vendor name. |
lpDeviceID | The retrieved product number. |
Return Value
Returns the True (nonzero) if successful, otherwise returns False (0).
Explanation
The PK3QueryVideoID function retrieves the video card information from the PC.
The PK3QueryVideoID function is disabled if the PK3Initialize function has not been executed.
The video card information is part of the PcID as retrieved by the PK3QueryPcID function and takes the form: VendorID (4 digits) + DeviceID (4 digits). This 8 digit number is converted to a string.