private void ErrorStateChangedCallback(UInt32 status, IntPtr cookie) { if (this.errorStateChanged != null) { if (status == 0) { this.errorStateChanged(null); } else { this.errorStateChanged(WrapperUtils.GetErrorMessage(status)); } } }