C# Class cMsmq.Security

显示文件 Open project: SNikalaichyk/cMsmq

Public Methods

Method Description
GetAccessMask ( QueuePath queuePath, string userName ) : MessageQueueAccessRights
GetOwner ( QueuePath queuePath ) : string

Private Methods

Method Description
ConvertSidToStringSid ( [ pSid, IntPtr &pStringSid ) : bool
GetAce ( IntPtr pSecurityDescriptor, string sid ) : ACCESS_ALLOWED_ACE
GetAce ( IntPtr pAcl, int dwAceIndex, IntPtr &pAce ) : int
GetAclInformation ( IntPtr pAcl, ACL_SIZE_INFORMATION &pAclInformation, uint nAclInformationLength, ACL_INFORMATION_CLASS dwAclInformationClass ) : bool
GetErrorMessage ( uint errorCode ) : string
GetLengthSid ( IntPtr pSid ) : int
GetSecurityDescriptorDacl ( IntPtr pSecurityDescriptor, [ lpbDaclPresent, IntPtr &pDacl, [ lpbDaclDefaulted ) : bool
GetSecurityDescriptorHandle ( QueuePath queuePath, int securityInformation ) : GCHandle
GetSecurityDescriptorOwner ( IntPtr pSecurityDescriptor, IntPtr &pOwner, [ lpbOwnerDefaulted ) : bool
MQGetQueueSecurity ( [ lpwcsFormatName, int SecurityInformation, IntPtr pSecurityDescriptor, int nLength, int &lpnLengthNeeded ) : uint
TranslateSidToUserName ( System.Security.Principal.SecurityIdentifier sid ) : string
TranslateUserNameToSid ( string userName ) : string

Method Details

GetAccessMask() public static method

public static GetAccessMask ( QueuePath queuePath, string userName ) : MessageQueueAccessRights
queuePath QueuePath
userName string
return MessageQueueAccessRights

GetOwner() public static method

public static GetOwner ( QueuePath queuePath ) : string
queuePath QueuePath
return string