// winsplp.h
BOOL ImpersonatePrinterClient(
[in] HANDLE hToken
);
View the official Windows Driver Kit DDI referenceNo description available.
ImpersonatePrinterClient resumes impersonation of the client, completing the operation begun by RevertToPrinterSelf.
hToken [in]Caller-supplied handle to a thread. This parameter must have been previously returned by a call to RevertToPrinterSelf.
If the operation succeeds, the function returns TRUE. Otherwise the function returns FALSE. The caller can obtain an error code by calling GetLastError (described in the Microsoft Windows SDK documentation).
This function must be called after a successful call to RevertToPrinterSelf. It resumes impersonation of the client and cleans up the thread handle.