static extern bool CameraSetGain(int val); [DllImport("cam8sll05.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]