ImpersonatePrinterClient - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// winsplp.h

BOOL ImpersonatePrinterClient(
  [in] HANDLE hToken
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-winsplp-impersonateprinterclient)

ImpersonatePrinterClient function

Description

ImpersonatePrinterClient resumes impersonation of the client, completing the operation begun by RevertToPrinterSelf.

Parameters

hToken [in]

Caller-supplied handle to a thread. This parameter must have been previously returned by a call to RevertToPrinterSelf.

Return value

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).

Remarks

This function must be called after a successful call to RevertToPrinterSelf. It resumes impersonation of the client and cleans up the thread handle.

See also

RevertToPrinterSelf