 |
ImpersonateLoggedOnUser ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The ImpersonateLoggedOnUser function lets the calling thread impersonate the security context of a logged-on user. The user is represented by a token handle. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL ImpersonateLoggedOnUser(
HANDLE hToken
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER ImpersonateLoggedOnUser IN advapi32;
INTEGER hToken
|
 |
 |
 |
| Parameters: |
 |
hToken
[in] Handle to a primary or impersonation access token that represents a logged-on user. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| My comment: |
 |
| hToken can be a token handle returned by a call to LogonUser, CreateRestrictedToken, DuplicateToken, DuplicateTokenEx, OpenProcessToken, or OpenThreadToken functions. |
 |
 |
| Word Index links for the ImpersonateLoggedOnUser : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-10-06 12:01:17 | | Modified: | 2004-10-06 12:03:03 | Visited in last 7 days: 26 |