Imported Upstream version 4.3.2.467

Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
Xamarin Public Jenkins
2016-02-22 11:00:01 -05:00
parent f302175246
commit f3e3aab35a
4097 changed files with 122406 additions and 82300 deletions

View File

@ -11,4 +11,4 @@ internal interface IClassFactory
[return: MarshalAs(UnmanagedType.Interface)]
object CreateInstance([In, MarshalAs(UnmanagedType.IUnknown)] object pUnkOuter, [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid);
void LockServer([In, MarshalAs(UnmanagedType.Bool)]bool fLock);
}
}

View File

@ -16,4 +16,4 @@ namespace System.ServiceModel.ComIntegration
void SetPerimeterFlag([MarshalAs(UnmanagedType.Bool)] bool flag);
}
}
}

View File

@ -30,4 +30,4 @@ namespace System.ServiceModel.ComIntegration
bool IsImpersonating();
}
}
}

View File

@ -56,7 +56,7 @@ namespace System.ServiceModel.ComIntegration
ACTIVATE_LOCAL = 0x08,
ACTIVATE_REMOTE = 0x10
}
enum TOKEN_INFORMATION_CLASS
{
TokenUser = 1,
@ -96,6 +96,7 @@ namespace System.ServiceModel.ComIntegration
ERROR_INSUFFICIENT_BUFFER = 122,
ERROR_NO_TOKEN = 1008,
ERROR_NONE_MAPPED = 1332,
ERROR_NO_SUCH_DOMAIN = 1355,
}
enum EXTENDED_NAME_FORMAT
@ -112,6 +113,32 @@ namespace System.ServiceModel.ComIntegration
NameDnsDomainName = 12
}
[Flags]
enum DSFlags : uint
{
DS_FORCE_REDISCOVERY = 0x00000001,
DS_DIRECTORY_SERVICE_REQUIRED = 0x00000010,
DS_DIRECTORY_SERVICE_PREFERRED = 0x00000020,
DS_GC_SERVER_REQUIRED = 0x00000040,
DS_PDC_REQUIRED = 0x00000080,
DS_BACKGROUND_ONLY = 0x00000100,
DS_IP_REQUIRED = 0x00000200,
DS_KDC_REQUIRED = 0x00000400,
DS_TIMESERV_REQUIRED = 0x00000800,
DS_WRITABLE_REQUIRED = 0x00001000,
DS_GOOD_TIMESERV_PREFERRED = 0x00002000,
DS_AVOID_SELF = 0x00004000,
DS_ONLY_LDAP_NEEDED = 0x00008000,
DS_IS_FLAT_NAME = 0x00010000,
DS_IS_DNS_NAME = 0x00020000,
DS_TRY_NEXTCLOSEST_SITE = 0x00040000,
DS_DIRECTORY_SERVICE_6_REQUIRED = 0x00080000,
DS_WEB_SERVICE_REQUIRED = 0x00100000,
DS_DIRECTORY_SERVICE_8_REQUIRED = 0x00200000,
DS_RETURN_DNS_NAME = 0x40000000,
DS_RETURN_FLAT_NAME = 0x80000000,
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
struct TagVariant
{
@ -228,6 +255,7 @@ namespace System.ServiceModel.ComIntegration
internal const String OLEAUT32 = "oleaut32.dll";
internal const String COMSVCS = "comsvcs.dll";
internal const String SECUR32 = "secur32.dll";
internal const String NETAPI32 = "netapi32.dll";
internal const int ERROR_MORE_DATA = 0xEA;
internal const int ERROR_SUCCESS = 0;
@ -493,7 +521,21 @@ namespace System.ServiceModel.ComIntegration
[DllImport(SECUR32, CharSet = CharSet.Unicode, SetLastError = true)]
[return: MarshalAs(UnmanagedType.U1)]
[ResourceExposure(ResourceScope.None)]
internal extern static bool TranslateName(string input, EXTENDED_NAME_FORMAT inputFormat, EXTENDED_NAME_FORMAT outputFormat, StringBuilder outputString, out uint size);
internal static extern bool TranslateName(string input, EXTENDED_NAME_FORMAT inputFormat, EXTENDED_NAME_FORMAT outputFormat, StringBuilder outputString, out uint size);
[DllImport(NETAPI32, ExactSpelling = true, EntryPoint = "DsGetDcNameW", CharSet = CharSet.Unicode, SetLastError = true)]
[ResourceExposure(ResourceScope.None)]
internal static extern int DsGetDcName(
[In] string computerName,
[In] string domainName,
[In] IntPtr domainGuid,
[In] string siteName,
[In] uint flags,
[Out] out IntPtr domainControllerInfo);
[DllImport(NETAPI32)]
[ResourceExposure(ResourceScope.None)]
internal static extern int NetApiBufferFree([In] IntPtr buffer);
}
internal static class InterfaceHelper