[return: MarshalAs(UnmanagedType.I1)]
[DllImport("ximcamera.dll", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool Open(string cam); //open camera
[DllImport("ximcamera.dll", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool OnStart(); // start camera
[DllImport("ximcamera.dll", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool OnStop(); // stop camera