C# Class PoshExecSvr.NativeMethods

Datei anzeigen Open project: adamdriscoll/PoshInternals

Public Methods

Method Description
EnableSecurityRights ( string desiredAccess, bool on ) : void

Private Methods

Method Description
AdjustTokenPrivileges ( [ TokenHandle, [ DisableAllPrivileges, [ NewState, [ BufferLength, [ PreviousState, [ ReturnLength ) : bool
CloseHandle ( IntPtr handle ) : bool
DuplicateTokenEx ( [ ExistingToken, [ DesiredAccess, [ TokenAttributes, [ ImpersonationLevel, [ TokenType, [ NewToken ) : bool
GetCurrentProcess ( ) : IntPtr
GetCurrentThread ( ) : IntPtr
LookupPrivilegeValue ( [ lpSystemName, [ lpName, [ Luid ) : bool
OpenProcessToken ( [ ProcessToken, [ DesiredAccess, [ TokenHandle ) : bool
OpenThreadToken ( [ ThreadToken, [ DesiredAccess, [ OpenAsSelf, [ TokenHandle ) : bool
RevertToSelf ( ) : bool
SetThreadToken ( [ Thread, [ Token ) : bool

Method Details

EnableSecurityRights() public static method

public static EnableSecurityRights ( string desiredAccess, bool on ) : void
desiredAccess string
on bool
return void