Share via


DeviceSpecificDescriptor Property

The DeviceSpecificDescriptor property gets or sets a SAFEARRAY of VARIANT values that represents device-specific data.

This property is read/write.

Syntax

HRESULT put_DeviceSpecificDescriptor(
  [in]           SAFEARRAY psaDeviceSpecificData
);

HRESULT get_DeviceSpecificDescriptor(
  [out, retval]  SAFEARRAY ppsaDeviceSpecificData
);

Property Value

The new device-specific array of data for the endpoint.

Error Codes

DeviceSpecificDescriptor returns an HRESULT value.

Remarks

The expected device-specific data is of VARIANT type VT_UI1.

The following VBScript code example shows to set and get the DeviceSpecficDescriptor property.

Dim Endpoint
Set Endpoint = CreateObject("SOFTUSB.SoftUSBEndpoint")
` Allocate an array that is the size of the device-specific data
Dim Array1 : Array1 = Array(1,2,3,4,5)
Dim i

` Get the current device-specific data from the endpoint
Array1 = Endpoint.DeviceSpecificDescriptor

` Update the second element
i=1
Array1(i) = 34;

` Update the third element
i=2
Array1(i) = 64;

` Write the array back to the endpoint
Endpoint.DeviceSpecificDescriptor = Array1

Requirements

Header

SoftUSBif.h

See Also

ISoftUSBEndpoint

 

 

Send comments about this topic to Microsoft

Build date: 9/21/2010