Beispiel #1
0
 public COAUTHINFO(Authn authnSvc, Authz authzSvc, AuthnLevel AuthnLevel, ImpLevel ImpersonationLevel)
 {
     this.dwAuthnSvc           = authnSvc;
     this.dwAuthzSvc           = authzSvc;
     this.pwszServerPrincName  = null;
     this.dwAuthnLevel         = AuthnLevel;
     this.dwImpersonationLevel = ImpersonationLevel;
     this.pAuthIdentityData    = IntPtr.Zero;
     this.dwCapabilities       = 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 #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
     );