Пример #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);