private void _AuthenticationComplete(IntPtr context, IntPtr authMechanism, IntPtr peerName, int success) { AuthenticationComplete(Marshal.PtrToStringAuto(authMechanism), Marshal.PtrToStringAuto(peerName), success == 1 ? true : false); }