public bool ImpersonateUser(string domain, string userName, string userPassword)
        {
            if (RevertToSelf())
            {
                m_impersonationContext = m_impersonator.ImpersonateUser(domain, userName, userPassword);

                return(m_impersonationContext != null);
            }
            else
            {
                return(false);
            }
        }