public static extern int SendMessageW([In] IntPtr hWnd, int Msg, uint wParam, ref CAPSTATUS waveFormat);
protected bool capGetStatus(ref CAPSTATUS s) { int wSize = Marshal.SizeOf(s); bool success = 1 == SendMessageW(fWindowHandle, Vfw.WM_CAP_GET_STATUS, (uint)wSize, ref s); return success; }