コード例 #1
0
 internal static extern int FormatMessage(
     FormatFlags dwFlags,
     IntPtr lpSource,
     uint dwMessageId,
     int dwLanguageId,
     out SafeLocalAllocBuffer lpBuffer,
     int nSize,
     IntPtr Arguments
     );
 internal static extern Win32Error GetSecurityInfo(
     SafeHandle handle,
     SeObjectType ObjectType,
     SecurityInformation SecurityInfo,
     OptionalPointer ppsidOwner,
     OptionalPointer ppsidGroup,
     OptionalPointer ppDacl,
     OptionalPointer ppSacl,
     out SafeLocalAllocBuffer ppSecurityDescriptor
     );
コード例 #3
0
 internal static extern bool ConvertStringSidToSid(
     string StringSid,
     out SafeLocalAllocBuffer Sid);
コード例 #4
0
 internal static extern bool ConvertStringSecurityDescriptorToSecurityDescriptor(
     string StringSecurityDescriptor,
     int StringSDRevision,
     out SafeLocalAllocBuffer SecurityDescriptor,
     out int SecurityDescriptorSize);
コード例 #5
0
 internal static extern bool ConvertSecurityDescriptorToStringSecurityDescriptor(
     SafeBuffer SecurityDescriptor,
     int RequestedStringSDRevision,
     SecurityInformation SecurityInformation,
     out SafeLocalAllocBuffer StringSecurityDescriptor,
     out int StringSecurityDescriptorLen);