コード例 #1
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int IsValidSecurityDescriptor(ref SECURITY_DESCRIPTOR pSecurityDescriptor);
コード例 #2
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int MakeAbsoluteSD(ref SECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor, ref SECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor, ref int lpdwAbsoluteSecurityDescriptorSize, ref ACL pDacl, ref int lpdwDaclSize, ref ACL pSacl, ref int lpdwSaclSize, IntPtr pOwner, ref int lpdwOwnerSize, IntPtr pPrimaryGroup, ref int lpdwPrimaryGroupSize);
コード例 #3
0
ファイル: User.cs プロジェクト: dusdong/BaseComponent
		[DllImport("user32")] public static extern int SetUserObjectSecurity(HANDLE hObj, ref int pSIRequested, ref SECURITY_DESCRIPTOR pSd);
コード例 #4
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int InitializeSecurityDescriptor(ref SECURITY_DESCRIPTOR pSecurityDescriptor, int dwRevision);
コード例 #5
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int SetPrivateObjectSecurity(int SecurityInformation, SECURITY_DESCRIPTOR ModificationDescriptor, SECURITY_DESCRIPTOR ObjectsSecurityDescriptor, GENERIC_MAPPING GenericMapping, int Token);
コード例 #6
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int SetSecurityDescriptorOwner(ref SECURITY_DESCRIPTOR pSecurityDescriptor, IntPtr pOwner, int bOwnerDefaulted);
コード例 #7
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int GetKernelObjectSecurity(HANDLE handle, int RequestedInformation, ref SECURITY_DESCRIPTOR pSecurityDescriptor, int nLength, ref int lpnLengthNeeded);
コード例 #8
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int SetFileSecurity(string lpFileName, int SecurityInformation, ref SECURITY_DESCRIPTOR pSecurityDescriptor);
コード例 #9
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int DestroyPrivateObjectSecurity(ref SECURITY_DESCRIPTOR ObjectDescriptor);
コード例 #10
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int GetFileSecurity(string lpFileName, int RequestedInformation, ref SECURITY_DESCRIPTOR pSecurityDescriptor, int nLength, ref int lpnLengthNeeded);
コード例 #11
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int CreatePrivateObjectSecurity(ref SECURITY_DESCRIPTOR ParentDescriptor, SECURITY_DESCRIPTOR CreatorDescriptor, SECURITY_DESCRIPTOR NewDescriptor, int IsDirectoryObject, int Token, GENERIC_MAPPING GenericMapping);
コード例 #12
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int AccessCheckAndAuditAlarm(string SubsystemName, IntPtr HandleId, string ObjectTypeName, string ObjectName, SECURITY_DESCRIPTOR SecurityDescriptor, int DesiredAccess, GENERIC_MAPPING GenericMapping, int ObjectCreation, int GrantedAccess, int AccessStatus, ref int pfGenerateOnClose);
コード例 #13
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int AccessCheck(ref SECURITY_DESCRIPTOR pSecurityDescriptor, int ClientToken, int DesiredAccess, GENERIC_MAPPING GenericMapping, PRIVILEGE_SET PrivilegeSet, int PrivilegeSetLength, int GrantedAccess, int Status);
コード例 #14
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int MakeSelfRelativeSD(ref SECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor, ref SECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor, ref int lpdwBufferLength);
コード例 #15
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int GetPrivateObjectSecurity(ref SECURITY_DESCRIPTOR ObjectDescriptor, int SecurityInformation, SECURITY_DESCRIPTOR ResultantDescriptor, int DescriptorLength, int ReturnLength);
コード例 #16
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int RegSetKeySecurity(HANDLE hKey, int SecurityInformation, ref SECURITY_DESCRIPTOR pSecurityDescriptor);
コード例 #17
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int GetSecurityDescriptorControl(ref SECURITY_DESCRIPTOR pSecurityDescriptor, short pControl, ref int lpdwRevision);
コード例 #18
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int SetKernelObjectSecurity(HANDLE handle, int SecurityInformation, SECURITY_DESCRIPTOR SecurityDescriptor);
コード例 #19
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int GetSecurityDescriptorDacl(ref SECURITY_DESCRIPTOR pSecurityDescriptor, ref int lpbDaclPresent, ref ACL pDacl, ref int lpbDaclDefaulted);
コード例 #20
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int SetSecurityDescriptorGroup(ref SECURITY_DESCRIPTOR pSecurityDescriptor, IntPtr pGroup, int bGroupDefaulted);
コード例 #21
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int GetSecurityDescriptorLength(ref SECURITY_DESCRIPTOR pSecurityDescriptor);
コード例 #22
0
ファイル: Kernel.cs プロジェクト: dusdong/BaseComponent
		[DllImport("advapi32")] public static extern int SetSecurityDescriptorSacl(ref SECURITY_DESCRIPTOR pSecurityDescriptor, int bSaclPresent, ref ACL pSacl, int bSaclDefaulted);
コード例 #23
0
ファイル: User.cs プロジェクト: dusdong/BaseComponent
		[DllImport("user32")] public static extern int GetUserObjectSecurity(HANDLE hObj, ref int pSIRequested, ref SECURITY_DESCRIPTOR pSd, int nLength, ref int lpnLengthNeeded);