CMOS Camera OV9650 resolution

Cristiano
Hello,

I'm trying to chance the camera resolution, but don't know how...
in the driver header files there is a 

camera.h

#define CAM_IOCTL_SET_RESOLUTION  0x50D

but I don't know how to use the DeviceIoControl function ( in C# ) to
change it. I'm able to start the movie and take a picture.

Take a picture:
DeviceIoControl(hPort, CAM_IOCTL_GET_LATEST_FRAME, null, 0, imageData,
imageDataSize, ref bytesReturned, IntPtr.Zero);

Start Working:
DeviceIoControl(hPort, CAM_IOCTL_MOVIE_START, null, 0, null, 0, ref
bytesReturned, IntPtr.Zero);

So, if anyone know how to change the resolution, it will help me !

thanks in advice,

vmroa
I am trying to take a picture without success. As i can see you have the
same allevo code, did you get to take a picture?