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