home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softwarová Záchrana 3
/
Softwarova-zachrana-3.bin
/
pserv.cpl
/
pserv-2.4.exe
/
source
/
CNTMachineAccount.h
< prev
next >
Wrap
C/C++ Source or Header
|
2005-01-05
|
574b
|
25 lines
#ifndef CNtMachineAccount_H
#define CNtMachineAccount_H
class PNtMachineAccount
{
public:
PNtMachineAccount();
virtual ~PNtMachineAccount();
BOOL Impersonate();
BOOL RevertToSelf();
protected:
DWORD DetermineSystemPID();
BOOL Refresh();
BOOL ModifySecurity(HANDLE hProc, DWORD dwAccess);
HANDLE m_hToken;
HANDLE m_hProcess;
};
BOOL PAdjustTokenPrivileges( LPCTSTR lpszPrivileges );
extern PNtMachineAccount theMachineAccount;
#endif // PNtMachineAccount_H