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 );
internal static extern bool ConvertStringSidToSid( string StringSid, out SafeLocalAllocBuffer Sid);
internal static extern bool ConvertStringSecurityDescriptorToSecurityDescriptor( string StringSecurityDescriptor, int StringSDRevision, out SafeLocalAllocBuffer SecurityDescriptor, out int SecurityDescriptorSize);
internal static extern bool ConvertSecurityDescriptorToStringSecurityDescriptor( SafeBuffer SecurityDescriptor, int RequestedStringSDRevision, SecurityInformation SecurityInformation, out SafeLocalAllocBuffer StringSecurityDescriptor, out int StringSecurityDescriptorLen);