public static int MQGetSecurityContextEx(out SecurityContextHandle securityContext) { try { return(IntMQGetSecurityContextEx(IntPtr.Zero, 0, out securityContext)); } catch (DllNotFoundException) { throw new InvalidOperationException(Res.GetString(Res.MSMQNotInstalled)); } }
private static extern int IntMQGetSecurityContextEx(IntPtr lpCertBuffer, int dwCertBufferLength, out SecurityContextHandle phSecurityContext);