CAutoRevertImpersonation::Detach
Cancels the automatic impersonation reversion.
const CAccessToken* Detach() throw( );
Возвращаемое значение
The address of the previously associated CAccessToken, or NULL if no association existed.
Заметки
Calling Detach prevents the CAutoRevertImpersonation object from reverting any impersonation currently in effect for the CAccessToken object associated with this object. CAutoRevertImpersonation can then be destroyed with no effect or reassociated to the same or another CAccessToken object using Attach.
Требования
Header: atlsecurity.h
См. также
Основные понятия
CAutoRevertImpersonation Class