Home |
Media Transfer Protocol Class Driver Function USBMTPSetDevProperty Function USBMTPGetFileProperty Function USBMTPSetFileProperty |
Function USBMTPSetDevPropertyUSBMTPSetDevProperty sets a Property of a connected USB MTP device: int USBMTPSetDevProperty(int Dev, WORD PropertyCode, void * Property, UINT Len); ParametersDevIndex of the MTP device. This value should be in range 0 .. RTUSBMTPConfig.MaxDevices - 1. PropertyCodeThe code value of the property to set. PropertyPointer to a buffer containing the property. LenNumber of bytes in the buffer pointed to by parameter Property. return valueIf successful, a value >= RTU_SUCCESS is returned, otherwise, a negative error code. Details about all available MTP device properties are listed in Appendix C of the USB Media Transfer Protocol Specification, Revision 1.1. For each property, the PropertyCode and data type is listed. Please note that the device property passed to this function must be in little endian format. Function Name of demo program MTPDemo show how this function is used.
|