Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image Capture SDK Question



Stefan,

The PTPPassThroughPB has provision for both sending and receiving data. Your set up will be similar to the sample code, but change the commandCode to kSetDeviceProp, numOfImputParams to 1, params[0] to the property you want to change, the dataSize should be 2, data[0] to low byte of new value, data[1] to high byte of new value, and dataUsageMode to kPTPPassThruSend. The msgPB.message.dataSize should be set to 2 + sizeof(PTPPassThrough) - 1 assuming that you are allocating the right amount of buffer.

--Dino

On Feb 15, 2005, at 11:06 AM, Stefan Hanshans wrote:

I can read the properties of a Canon PowerShot camera and now would like to set some of them, but don't know which parameters I have to set.
Is this possible with the PTPPassThroughPB structure, defined in the PTP.h file of the PTPPassTroughTester app?
If so, what do I have to do? Which values are needed for the parameters of the ICAObjectSendMessagePB structure?

_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.