Sign in to follow this  
Uthman

createfile

Recommended Posts

hi I am trying to download all files (jpeg images and avi/mpg movies) from a digital camera automatically with my application. Ideally, my application would be running and once it notices the usb camera has been plugged in, it grabs the files and saves them to folder on my hard drive. unfortunately, this specific camera it needs to work for is a canon powershot a410, which doesnt assign the camera a drive letter, but a port "\\.\Usbscan0" or 1 or 2, etc, depending on how many cameras are plugged in at the time. Of course I cannot just type \\.\usbscan0 in explorer (or pass that as a foldername in my application), because it is the port; so instead, I know I'll have to use CreateFile and all that fun. My question is, how do I grab all of the individual files stored, given the handle to the port returned by createfile?

Share this post


Link to post
Share on other sites
You'll most likely need to use the Canon provided SDK to do this:
http://consumer.usa.canon.com/ir/controller?act=SDKHomePageAct&keycode=Sdk_Lic&fcategoryid=320&modelid=10468&id=3464

Some subset of USB API might work as well.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Judging from the filename, the camera provides an image aquisition (scanner) interface, so you might need to check the twain interface standard. This way you can write a generic application (like gimp), that can read the pictures from any twain compatible digital camera. (or scanner)

Viktor

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this