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