title: How do I pInvoke the function SHCameraCapture (camera dialog) from Aygshell.dll from WinMO6
body: <p>I need to show a camera capture dialog in a compact framework 3.7 application by pinvoking SHCameraCapture from the dll Aygshell.dll.  I cannont use the managed object CameraCaptureDialog because of limitations with the technology I'm working with.  Instead, I need to access it by Pinvoking it.</p>
  
  <p>See <a href="http://msdn.microsoft.com/en-us/library/aa454995.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/aa454995.aspx</a> for documentation on the function.  The function takes in a struct that defines the parameters of the dialog.  e.g. where to save the file, what resolution to use.</p>
  
  <p>I would imaging that I would have to define a copy of the struct in C# and decorate the sturct with the attribute StructLayout.  I also imagine that the code would involve [DllImport("aygshell.dll")].  Any sample code of how to call this would be much appreciated.</p>