internal static Interop.SECURITY_STATUS GetInteropFromSecurityStatusPal(SecurityStatusPal status) { Interop.SECURITY_STATUS interopStatus; if (!s_statusDictionary.TryGetBackward(status.ErrorCode, out interopStatus)) { Debug.Fail("Unknown SecurityStatus value: " + status); throw new InternalException(status.ErrorCode); } return(interopStatus); }