internal COMProcessEntry(int pid, string path, List <COMIPIDEntry> ipids,
                          bool is64bit, Guid appid, string access_perm, string lrpc_perm, string user,
                          string user_sid, string rpc_endpoint, EOLE_AUTHENTICATION_CAPABILITIES capabilities,
                          RPC_AUTHN_LEVEL authn_level, RPC_IMP_LEVEL imp_level,
                          IntPtr access_control, IntPtr sta_main_hwnd)
 {
     Pid               = pid;
     ExecutablePath    = path;
     Ipids             = ipids.AsReadOnly();
     Is64Bit           = is64bit;
     AppId             = appid;
     AccessPermissions = access_perm;
     LRpcPermissions   = lrpc_perm;
     User              = user;
     UserSid           = user_sid;
     if (!String.IsNullOrWhiteSpace(rpc_endpoint))
     {
         RpcEndpoint = "OLE" + rpc_endpoint;
     }
     else
     {
         RpcEndpoint = String.Empty;
     }
     Capabilities  = capabilities;
     AuthnLevel    = authn_level;
     ImpLevel      = imp_level;
     AccessControl = access_control;
     STAMainHWnd   = sta_main_hwnd;
 }
 static extern void CoInitializeSecurity(
     IntPtr pSecDesc,
     int cAuthSvc,
     IntPtr asAuthSvc,
     IntPtr pReserved1,
     AuthnLevel dwAuthnLevel,
     ImpLevel dwImpLevel,
     IntPtr pAuthList,
     EOLE_AUTHENTICATION_CAPABILITIES dwCapabilities,
     IntPtr pReserved3
 );
Beispiel #3
0
 static extern void CoInitializeSecurity(
     IntPtr pSecDesc,
     int cAuthSvc,
     IntPtr asAuthSvc,
     IntPtr pReserved1,
     AuthnLevel dwAuthnLevel,
     ImpLevel dwImpLevel,
     IntPtr pAuthList,
     EOLE_AUTHENTICATION_CAPABILITIES dwCapabilities,
     IntPtr pReserved3
     );
Beispiel #4
0
 public static extern int CoInitializeSecurity(
     IntPtr securityDescriptor,  // Access permissions
     int cAuthSvc,               // Count of entries in asAuthSvc
     IntPtr asAuthSvc,           // Array of authentication services
     IntPtr pReserved1,          // Reserved for future use
     RPC_C_AUTHN_LEVEL level,    // Default authentication level
     RPC_C_IMP_LEVEL impers,     // Default impersonation level
     IntPtr pAuthList,
     EOLE_AUTHENTICATION_CAPABILITIES dwCapabilities,
     IntPtr pReserved3           // Reserved for future use
     );
Beispiel #5
0
 public static extern int CoInitializeSecurity(
     IntPtr securityDescriptor,  // Access permissions 
     int cAuthSvc,               // Count of entries in asAuthSvc
     IntPtr asAuthSvc,           // Array of authentication services 
     IntPtr pReserved1,          // Reserved for future use
     RPC_C_AUTHN_LEVEL level,    // Default authentication level
     RPC_C_IMP_LEVEL impers,     // Default impersonation level
     IntPtr pAuthList,
     EOLE_AUTHENTICATION_CAPABILITIES dwCapabilities,
     IntPtr pReserved3           // Reserved for future use
     );