C# Class BelhardTraining.LessonMultithreading.NativeMethods

显示文件 Open project: bazile/Training

Public Properties

Property Type Description
SECURITY_MANDATORY_LABEL_AUTHORITY SID_IDENTIFIER_AUTHORITY

Private Methods

Method Description
AllocateAndInitializeSid ( SID_IDENTIFIER_AUTHORITY &pIdentifierAuthority, byte nSubAuthorityCount, int dwSubAuthority0, int dwSubAuthority1, int dwSubAuthority2, int dwSubAuthority3, int dwSubAuthority4, int dwSubAuthority5, int dwSubAuthority6, int dwSubAuthority7, IntPtr &pSid ) : bool
CloseHandle ( IntPtr handle ) : bool
CreateProcessAsUser ( SafeTokenHandle hToken, string applicationName, string commandLine, IntPtr pProcessAttributes, IntPtr pThreadAttributes, bool bInheritHandles, uint dwCreationFlags, IntPtr pEnvironment, string currentDirectory, STARTUPINFO &startupInfo, PROCESS_INFORMATION &processInformation ) : bool
DuplicateTokenEx ( SafeTokenHandle hExistingToken, UInt32 desiredAccess, IntPtr pTokenAttributes, SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, TOKEN_TYPE TokenType, SafeTokenHandle &hNewToken ) : bool
FreeSid ( IntPtr pSid ) : IntPtr
GetLengthSid ( IntPtr pSID ) : int
GetSidSubAuthority ( IntPtr pSid, UInt32 nSubAuthority ) : IntPtr
GetTokenInformation ( SafeTokenHandle hToken, TOKEN_INFORMATION_CLASS tokenInfoClass, IntPtr pTokenInfo, Int32 tokenInfoLength, Int32 &returnLength ) : bool
OpenProcessToken ( IntPtr hProcess, UInt32 desiredAccess, SafeTokenHandle &hToken ) : bool
SetTokenInformation ( SafeTokenHandle hToken, TOKEN_INFORMATION_CLASS tokenInfoClass, IntPtr pTokenInfo, Int32 tokenInfoLength ) : bool

Property Details

SECURITY_MANDATORY_LABEL_AUTHORITY public_oe static_oe property

public static SID_IDENTIFIER_AUTHORITY,BelhardTraining.LessonMultithreading SECURITY_MANDATORY_LABEL_AUTHORITY
return SID_IDENTIFIER_AUTHORITY