/** * Instantiates a new windows security context impersonation context impl. * * @param newCtx * the new ctx */ public WindowsSecurityContextImpersonationContextImpl(final CtxtHandle newCtx) { final int rc = Secur32.INSTANCE.ImpersonateSecurityContext(newCtx); if (rc != WinError.SEC_E_OK) { throw new Win32Exception(rc); } this.ctx = newCtx; }
/** * Instantiates a new windows security context impersonation context impl. * * @param newCtx * the new ctx */ public WindowsSecurityContextImpersonationContextImpl(final CtxtHandle newCtx) { final int rc = Secur32.INSTANCE.ImpersonateSecurityContext(newCtx); if (rc != WinError.SEC_E_OK) { throw new Win32Exception(rc); } this.ctx = newCtx; }
/** * Instantiates a new windows security context impersonation context impl. * * @param newCtx * the new ctx */ public WindowsSecurityContextImpersonationContextImpl(final CtxtHandle newCtx) { final int rc = Secur32.INSTANCE.ImpersonateSecurityContext(newCtx); if (rc != WinError.SEC_E_OK) { throw new Win32Exception(rc); } this.ctx = newCtx; }