C# Class TOAPI.Kernel32.AdvApi

ファイルを表示 Open project: Wiladams/NewTOAPIA

Private Methods

Method Description
AdjustTokenPrivileges ( IntPtr TokenHandle, bool DisableAllPrivileges, TOKEN_PRIVILEGES &NewState, int BufferLength, IntPtr PreviousState, IntPtr ReturnLength ) : bool
CloseServiceHandle ( IntPtr hService ) : bool
ConvertStringSidToSid ( string StringSid, IntPtr &ptrSid ) : bool
CreateProcessAsUser ( IntPtr TokenHandle, String lpApplicationName, String lpCommandLine, SECURITY_ATTRIBUTES &lpProcessAttributes, SECURITY_ATTRIBUTES &lpThreadAttributes, bool bInheritHandle, int dwCreationFlags, IntPtr lpEnvironment, String lpCurrentDirectory, STARTUPINFO &lpStartupInfo, PROCESS_INFORMATION &lpProcessInformation ) : bool
DuplicateToken ( IntPtr ExistingTokenHandle, SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, IntPtr &DuplicateTokenHandle ) : bool
DuplicateTokenEx ( [ TokenHandle, int dwDesiredAccess, [ lpTokenAttributes, SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, TOKEN_TYPE TokenType, IntPtr &phNewToken ) : bool
LookupPrivilegeValue ( IntPtr lpSystemName, string lpname, [ lpLuid ) : bool
OpenProcessToken ( IntPtr ProcessHandle, int DesiredAccess, IntPtr &TokenHandle ) : bool
OpenSCManager ( string machineName, string databaseName, [ dwAccess ) : IntPtr
OpenService ( SafeHandle hSCManager, [ lpServiceName, [ dwDesiredAccess ) : IntPtr
QueryServiceStatusEx ( SafeHandle hService, SC_STATUS_TYPE InfoLevel, SERVICE_STATUS_PROCESS &dwServiceStatus, int cbBufSize, int &pcbBytesNeeded ) : bool
SetTokenInformation ( IntPtr TokenHandle, TOKEN_INFORMATION_CLASS TokenInformationClass, TOKEN_MANDATORY_LABEL &TokenInformation, uint TokenInformationLength ) : bool
SetTokenInformation ( IntPtr TokenHandle, TOKEN_INFORMATION_CLASS TokenInformationClass, uint TokenInformation, uint TokenInformationLength ) : bool