Home |
Media Transfer Protocol Class Driver Function USBMTPDeleteFile Function USBMTPGetFileProperty Function USBMTPSetFileProperty |
Function USBMTPDeleteFileUSBMTPDeleteFile deletes a file or directory on a USB MTP device: int USBMTPDeleteFile(int Dev, USBMTPHandle Handle); ParametersDevIndex of the MTP device. This value should be in range 0 .. RTUSBMTPConfig.MaxDevices - 1. HandleHandle of the file or directory to delete. This handle could have been retrieved through functions USBMTPFindFirstFile/USBMTPFindNextFile. return valueIf successful, a value >= RTU_SUCCESS is returned, otherwise, a negative error code. The required handle can be retrieved with functions USBMTPFindFirstFile/USBMTPFindNextFile or USBMTPGetFileInfo. This function can delete directories. If a directory is deleted, all of its subdirectories and files are also automatically deleted. Function Del of demo program MTPDemo show how this function is used. Function USBMTPGetFileProperty
|