protected override bool ReleaseHandle() { HandleRef handleRef = new HandleRef(this, handle); int status = NiImaqdxDll.IMAQdxCloseCamera(handleRef); handle = IntPtr.Zero; return((status < 0) ? false : true); }
public static void Close(ImaqdxSessionHandle session) { Debug.Assert(session != null, "The session parameter cannot be null."); Debug.Assert(!session.IsInvalid, "The session parameter must be a valid handle."); int status = NiImaqdxDll.IMAQdxCloseCamera(session); ExceptionBuilder.CheckErrorAndThrow(status); }