PTP_VENDOR_DATA_OUT structure (ptpusd.h)

The PTP_VENDOR_DATA_OUT structure contains information that the device sends to an application, in response to a command the application issued to the device.

Syntax

typedef struct _PTP_VENDOR_DATA_OUT {
  WORD  ResponseCode;
  DWORD SessionId;
  DWORD TransactionId;
  DWORD Params[PTP_MAX_PARAMS];
  BYTE  VendorReadData[1];
} PTP_VENDOR_DATA_OUT, *PPTP_VENDOR_DATA_OUT;

Members

ResponseCode

Specifies the response code. For more information, see ISO 15740:2013 Photography − Electronic still picture imaging − Picture Transfer Protocol (PTP) for Digital Still Photography Devices.

SessionId

Specifies the session ID. This member is not currently used by the PTP driver and should be set to 0.

TransactionId

Specifies the transaction ID. This member is not currently used by the PTP driver and should be set to 0.

Params[PTP_MAX_PARAMS]

Is an array consisting of PTP_MAX_PARAMS (defined in Ptpusd.h) elements, representing the parameters of the response.

VendorReadData[1]

Is an array containing an (optional) first byte to read from the device.

Remarks

See Vendor-Extended Commands for more information and example code that uses this structure.

For more information about the opcodes used in the OpCode member, see ISO 15740:2013 Photography − Electronic still picture imaging − Picture Transfer Protocol (PTP) for Digital Still Photography Devices.

Requirements

Requirement Value
Header ptpusd.h (include Ptpusd.h)

See also

PTP_VENDOR_DATA_IN