示例#1
0
 public static int MQGetSecurityContextEx(out SecurityContextHandle securityContext)
 {
     try
     {
         return(IntMQGetSecurityContextEx(IntPtr.Zero, 0, out securityContext));
     }
     catch (DllNotFoundException)
     {
         throw new InvalidOperationException(Res.GetString(Res.MSMQNotInstalled));
     }
 }
 public static int MQGetSecurityContextEx(out SecurityContextHandle securityContext)
 {
     int num;
     try
     {
         num = IntMQGetSecurityContextEx(IntPtr.Zero, 0, out securityContext);
     }
     catch (DllNotFoundException)
     {
         throw new InvalidOperationException(Res.GetString("MSMQNotInstalled"));
     }
     return num;
 }
 private static extern int IntMQGetSecurityContextEx(IntPtr lpCertBuffer, int dwCertBufferLength, out SecurityContextHandle phSecurityContext);
示例#4
0
 internal SecurityContext(SecurityContextHandle securityContext)
 {
     handle = securityContext;
 }
示例#5
0
 private static extern int IntMQGetSecurityContextEx(IntPtr lpCertBuffer, int dwCertBufferLength, out SecurityContextHandle phSecurityContext);