How to pass buffers to UVCDriver

Hi
I’m using UVC drivers via Media Foundation.
however I need to optimize my buffer copying and I want to send my buffer
to the UVC and let the UVC driver put the new frame in my memory I provided
instead of having it in teh memory the UVC allocated and then to copy it to
the user’s buffer
is this possible ? how can I do this?

This can be done easily with the RtlCopyMemory API. You just need to provide a destination address, a source address and the number of bytes to be copied from the source to the destination.

Don’t forget to use exception handling with user mode buffers or the copy may turn to a holocaust (bugcheck).

Best regards.