public static extern bool SendMessage(IntPtr hWnd, int wMsg, int wParam, ref CAPSTATUS lParam);
public static bool capDriverGetCaps(IntPtr lwnd, ref CAPSTATUS s, int wSize) { return SendMessage(lwnd, WM_CAP_GET_STATUS, wSize, ref s); }