[RESOLVED] [2008] Webcam Control.
Just a quick question, does anybody know how to invoke and display a web cams settings page from within an application.
I can display and record the video but I am looking to control frame rate and exposure etc.
I've have a couple of 3rd party applications that show my webcams settings page from within the application so I know it can be done I just don't know how :o
Thanks in advance for any info.
Re: [2008] Webcam Control.
Think I may have found part of the answer but this raises another question, how do I declare this structure in vb.net ?
http://msdn2.microsoft.com/en-gb/lib...73(VS.85).aspx
Re: [2008] Webcam Control.
That is an unmanaged type. You can't create an instance of that type in managed code. You'd need to declare a managed type that corresponded first:
vb.net Code:
Public Structure CAPDRIVERCAPS
Public wDeviceIndex As UInteger
Public fHasOverlay As Boolean
Public fHasDlgVideoSource As Boolean
Public fHasDlgVideoFormat As Boolean
Public fHasDlgVideoDisplay As Boolean
Public fCaptureInitialized As Boolean
Public fDriverSuppliesPalettes As Boolean
Public hVideoIn As IntPtr
Public hVideoOut As IntPtr
Public hVideoExtIn As IntPtr
Public hVideoExtOut As IntPtr
End Structure
Now you can create an instance of your managed type and pass it to any unmanaged functions that require an instance of the corresponding unmanaged type.
Re: [2008] Webcam Control.