mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
463 B
40 lines
463 B
/*++
|
|
|
|
Copyright (c) 1995 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
impersn.h
|
|
|
|
Abstract:
|
|
|
|
Definitions for impersonation routines
|
|
|
|
Author:
|
|
|
|
Anthony Discolo (adiscolo) 04-Aug-1995
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#ifndef _IMPERSON_
|
|
#define _IMPERSON_
|
|
|
|
VOID
|
|
RevertImpersonation();
|
|
|
|
BOOLEAN
|
|
GetCurrentlyLoggedOnUser(
|
|
HANDLE *phProcess
|
|
);
|
|
|
|
BOOLEAN
|
|
SetProcessImpersonationToken(
|
|
HANDLE hProcess
|
|
);
|
|
|
|
VOID
|
|
ClearImpersonationToken();
|
|
|
|
#endif // _IMPERSON_
|