Platform SDK: Access Control |
The ImpersonateAnonymousToken function enables the specified thread to impersonate the system's anonymous logon token.
BOOL ImpersonateAnonymousToken( HANDLE ThreadHandle // handle to thread );
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Advapi32.lib.