Share via


CAccessToken::Attach

Call this method to take ownership of the given access token handle.

void Attach(
   HANDLE hToken
) throw( );

Parameters

  • hToken
    A handle to the access token.

Remarks

In debug builds, an assertion error will occur if the CAccessToken object already has ownership of an access token.

Requirements

Header: atlsecurity.h

See Also

Reference

CAccessToken Class

CAccessToken::Detach

Other Resources

CAccessToken Members