public static void SetBottomBar(IntPtr bar) { if (bar == IntPtr.Zero) { throw new ArgumentOutOfRangeException("bar"); } if (!NativeMethods.TwSetBottomBar(bar)) { throw new AntTweakBarException("TwSetBottomBar failed."); } }