5.5 Windows API Impersonation Functions

The Windows API provides the following functions to begin an impersonation:

For most of these impersonations, the impersonating thread can revert to its own security context by calling the RevertToSelf function. The exception is the RPC impersonation, in which the RPC server application calls RpcRevertToSelf or RpcRevertToSelfEx to revert to its own security context.

For more information about the Windows API impersonation functions, visit the MSDN home page.