Impersonating the security context of a pipe client