Platform SDK: Access Control

Client Impersonation

Impersonation is the ability of a thread to execute in a security context different from that of the process that owns the thread. Typically, a thread in a server application impersonates a client. This allows the server thread to act on behalf of that client to access objects or validate access to its own objects.

The Microsoft® Win32® API provides the following functions a thread can use 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.