1 // Licensed to the .NET Foundation under one or more agreements. 2 // The .NET Foundation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 // ------------------------------------------------------------------------------ 5 // Changes to this file must follow the http://aka.ms/api-review process. 6 // ------------------------------------------------------------------------------ 7 8 // Types moved down into System.Runtime 9 [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.CriticalHandle))] 10 [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.GCHandle))] 11 [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.GCHandleType))] 12 [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.InAttribute))] 13 [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.SafeHandle))] 14 [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.Missing))] 15 16 namespace System 17 { 18 public sealed partial class DataMisalignedException : System.SystemException 19 { DataMisalignedException()20 public DataMisalignedException() { } DataMisalignedException(string message)21 public DataMisalignedException(string message) { } DataMisalignedException(string message, System.Exception innerException)22 public DataMisalignedException(string message, System.Exception innerException) { } 23 } 24 public partial class DllNotFoundException : System.TypeLoadException 25 { DllNotFoundException()26 public DllNotFoundException() { } DllNotFoundException(string message)27 public DllNotFoundException(string message) { } DllNotFoundException(string message, System.Exception inner)28 public DllNotFoundException(string message, System.Exception inner) { } DllNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)29 protected DllNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } 30 } 31 } 32 namespace System.IO 33 { 34 public partial class UnmanagedMemoryAccessor : System.IDisposable 35 { UnmanagedMemoryAccessor()36 protected UnmanagedMemoryAccessor() { } UnmanagedMemoryAccessor(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity)37 public UnmanagedMemoryAccessor(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity) { } UnmanagedMemoryAccessor(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity, System.IO.FileAccess access)38 public UnmanagedMemoryAccessor(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity, System.IO.FileAccess access) { } 39 public bool CanRead { get { throw null; } } 40 public bool CanWrite { get { throw null; } } 41 public long Capacity { get { throw null; } } 42 protected bool IsOpen { get { throw null; } } Dispose()43 public void Dispose() { } Dispose(bool disposing)44 protected virtual void Dispose(bool disposing) { } Initialize(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity, System.IO.FileAccess access)45 protected void Initialize(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity, System.IO.FileAccess access) { } ReadBoolean(long position)46 public bool ReadBoolean(long position) { throw null; } ReadByte(long position)47 public byte ReadByte(long position) { throw null; } ReadChar(long position)48 public char ReadChar(long position) { throw null; } ReadDecimal(long position)49 public decimal ReadDecimal(long position) { throw null; } ReadDouble(long position)50 public double ReadDouble(long position) { throw null; } ReadInt16(long position)51 public short ReadInt16(long position) { throw null; } ReadInt32(long position)52 public int ReadInt32(long position) { throw null; } ReadInt64(long position)53 public long ReadInt64(long position) { throw null; } 54 [System.CLSCompliantAttribute(false)] ReadSByte(long position)55 public sbyte ReadSByte(long position) { throw null; } ReadSingle(long position)56 public float ReadSingle(long position) { throw null; } 57 [System.CLSCompliantAttribute(false)] ReadUInt16(long position)58 public ushort ReadUInt16(long position) { throw null; } 59 [System.CLSCompliantAttribute(false)] ReadUInt32(long position)60 public uint ReadUInt32(long position) { throw null; } 61 [System.CLSCompliantAttribute(false)] ReadUInt64(long position)62 public ulong ReadUInt64(long position) { throw null; } 63 public void Read<T>(long position, out T structure) where T : struct { throw null; } 64 public int ReadArray<T>(long position, T[] array, int offset, int count) where T : struct { throw null; } Write(long position, bool value)65 public void Write(long position, bool value) { } Write(long position, byte value)66 public void Write(long position, byte value) { } Write(long position, char value)67 public void Write(long position, char value) { } Write(long position, decimal value)68 public void Write(long position, decimal value) { } Write(long position, double value)69 public void Write(long position, double value) { } Write(long position, short value)70 public void Write(long position, short value) { } Write(long position, int value)71 public void Write(long position, int value) { } Write(long position, long value)72 public void Write(long position, long value) { } 73 [System.CLSCompliantAttribute(false)] Write(long position, sbyte value)74 public void Write(long position, sbyte value) { } Write(long position, float value)75 public void Write(long position, float value) { } 76 [System.CLSCompliantAttribute(false)] Write(long position, ushort value)77 public void Write(long position, ushort value) { } 78 [System.CLSCompliantAttribute(false)] Write(long position, uint value)79 public void Write(long position, uint value) { } 80 [System.CLSCompliantAttribute(false)] Write(long position, ulong value)81 public void Write(long position, ulong value) { } 82 public void Write<T>(long position, ref T structure) where T : struct { throw null; } 83 public void WriteArray<T>(long position, T[] array, int offset, int count) where T : struct { throw null; } 84 } 85 public partial class UnmanagedMemoryStream : System.IO.Stream 86 { UnmanagedMemoryStream()87 protected UnmanagedMemoryStream() { } 88 [System.CLSCompliantAttribute(false)] UnmanagedMemoryStream(byte* pointer, long length)89 public unsafe UnmanagedMemoryStream(byte* pointer, long length) { } 90 [System.CLSCompliantAttribute(false)] UnmanagedMemoryStream(byte* pointer, long length, long capacity, System.IO.FileAccess access)91 public unsafe UnmanagedMemoryStream(byte* pointer, long length, long capacity, System.IO.FileAccess access) { } UnmanagedMemoryStream(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long length)92 public UnmanagedMemoryStream(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long length) { } UnmanagedMemoryStream(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long length, System.IO.FileAccess access)93 public UnmanagedMemoryStream(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long length, System.IO.FileAccess access) { } 94 public override bool CanRead { get { throw null; } } 95 public override bool CanSeek { get { throw null; } } 96 public override bool CanWrite { get { throw null; } } 97 public long Capacity { get { throw null; } } 98 public override long Length { get { throw null; } } 99 public override long Position { get { throw null; } set { } } 100 [System.CLSCompliantAttribute(false)] 101 public unsafe byte* PositionPointer {get { throw null; } set { } } Dispose(bool disposing)102 protected override void Dispose(bool disposing) { } Flush()103 public override void Flush() { } FlushAsync(System.Threading.CancellationToken cancellationToken)104 public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } 105 [System.CLSCompliantAttribute(false)] Initialize(byte* pointer, long length, long capacity, System.IO.FileAccess access)106 protected unsafe void Initialize(byte* pointer, long length, long capacity, System.IO.FileAccess access) { } Initialize(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long length, System.IO.FileAccess access)107 protected void Initialize(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long length, System.IO.FileAccess access) { } Read(byte[] buffer, int offset, int count)108 public override int Read(byte[] buffer, int offset, int count) { throw null; } Read(System.Span<byte> destination)109 public override int Read(System.Span<byte> destination) { throw null; } ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken)110 public override System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } ReadByte()111 public override int ReadByte() { throw null; } Seek(long offset, System.IO.SeekOrigin loc)112 public override long Seek(long offset, System.IO.SeekOrigin loc) { throw null; } SetLength(long value)113 public override void SetLength(long value) { } Write(byte[] buffer, int offset, int count)114 public override void Write(byte[] buffer, int offset, int count) { } Write(System.ReadOnlySpan<byte> source)115 public override void Write(System.ReadOnlySpan<byte> source) { } WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken)116 public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } WriteByte(byte value)117 public override void WriteByte(byte value) { } 118 } 119 } 120 namespace System.Runtime.CompilerServices 121 { 122 [System.AttributeUsageAttribute((System.AttributeTargets)(2304), Inherited = false)] 123 public sealed partial class IUnknownConstantAttribute : System.Runtime.CompilerServices.CustomConstantAttribute 124 { IUnknownConstantAttribute()125 public IUnknownConstantAttribute() { } 126 public override object Value { get { throw null; } } 127 } 128 } 129 namespace System.Runtime.InteropServices 130 { 131 [System.AttributeUsageAttribute((System.AttributeTargets)(64), AllowMultiple = false, Inherited = false)] 132 public sealed partial class AllowReversePInvokeCallsAttribute : System.Attribute 133 { AllowReversePInvokeCallsAttribute()134 public AllowReversePInvokeCallsAttribute() { } 135 } 136 [System.AttributeUsageAttribute((System.AttributeTargets)(1029), Inherited=false)] 137 public sealed partial class AutomationProxyAttribute : System.Attribute 138 { AutomationProxyAttribute(bool val)139 public AutomationProxyAttribute(bool val) { } 140 public bool Value { get { throw null; } } 141 } 142 public partial struct ArrayWithOffset 143 { 144 private object _dummy; ArrayWithOffsetSystem.Runtime.InteropServices.ArrayWithOffset145 public ArrayWithOffset(object array, int offset) { throw null; } EqualsSystem.Runtime.InteropServices.ArrayWithOffset146 public override bool Equals(object obj) { throw null; } EqualsSystem.Runtime.InteropServices.ArrayWithOffset147 public bool Equals(System.Runtime.InteropServices.ArrayWithOffset obj) { throw null; } GetArraySystem.Runtime.InteropServices.ArrayWithOffset148 public object GetArray() { throw null; } GetHashCodeSystem.Runtime.InteropServices.ArrayWithOffset149 public override int GetHashCode() { throw null; } GetOffsetSystem.Runtime.InteropServices.ArrayWithOffset150 public int GetOffset() { throw null; } operator ==System.Runtime.InteropServices.ArrayWithOffset151 public static bool operator ==(System.Runtime.InteropServices.ArrayWithOffset a, System.Runtime.InteropServices.ArrayWithOffset b) { throw null; } operator !=System.Runtime.InteropServices.ArrayWithOffset152 public static bool operator !=(System.Runtime.InteropServices.ArrayWithOffset a, System.Runtime.InteropServices.ArrayWithOffset b) { throw null; } 153 } 154 [System.AttributeUsageAttribute((System.AttributeTargets)(1037), Inherited = false)] 155 public sealed partial class BestFitMappingAttribute : System.Attribute 156 { 157 public bool ThrowOnUnmappableChar; BestFitMappingAttribute(bool BestFitMapping)158 public BestFitMappingAttribute(bool BestFitMapping) { } 159 public bool BestFitMapping { get { throw null; } } 160 } 161 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 162 [System.ObsoleteAttribute("BStrWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")] 163 public sealed partial class BStrWrapper 164 { BStrWrapper(object value)165 public BStrWrapper(object value) { } BStrWrapper(string value)166 public BStrWrapper(string value) { } 167 public string WrappedObject { get { throw null; } } 168 } 169 public enum CallingConvention 170 { 171 Cdecl = 2, 172 StdCall = 3, 173 ThisCall = 4, 174 Winapi = 1, 175 FastCall = 5, 176 } 177 [System.AttributeUsageAttribute((System.AttributeTargets)(5), Inherited = false)] 178 public sealed partial class ClassInterfaceAttribute : System.Attribute 179 { ClassInterfaceAttribute(short classInterfaceType)180 public ClassInterfaceAttribute(short classInterfaceType) { } ClassInterfaceAttribute(System.Runtime.InteropServices.ClassInterfaceType classInterfaceType)181 public ClassInterfaceAttribute(System.Runtime.InteropServices.ClassInterfaceType classInterfaceType) { } 182 public System.Runtime.InteropServices.ClassInterfaceType Value { get { throw null; } } 183 } 184 public enum ClassInterfaceType 185 { 186 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 187 [System.ObsoleteAttribute("Support for IDispatch may be unavailable in future releases.")] 188 AutoDispatch = 1, 189 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 190 [System.ObsoleteAttribute("Support for IDispatch may be unavailable in future releases.")] 191 AutoDual = 2, 192 None = 0, 193 } 194 [System.AttributeUsageAttribute((System.AttributeTargets)(1024), Inherited = false)] 195 public sealed partial class CoClassAttribute : System.Attribute 196 { CoClassAttribute(System.Type coClass)197 public CoClassAttribute(System.Type coClass) { } 198 public System.Type CoClass { get { throw null; } } 199 } 200 [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.ReturnValue, Inherited = false)] 201 public sealed class ComAliasNameAttribute : System.Attribute 202 { ComAliasNameAttribute(string alias)203 public ComAliasNameAttribute(string alias) { } 204 public string Value { get; } 205 } 206 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 207 [System.ObsoleteAttribute("ComAwareEventInfo may be unavailable in future releases.")] 208 public partial class ComAwareEventInfo : System.Reflection.EventInfo 209 { ComAwareEventInfo(System.Type type, string eventName)210 public ComAwareEventInfo(System.Type type, string eventName) { } 211 public override System.Reflection.EventAttributes Attributes { get { throw null; } } 212 public override System.Type DeclaringType { get { throw null; } } 213 public override string Name { get { throw null; } } AddEventHandler(object target, System.Delegate handler)214 public override void AddEventHandler(object target, System.Delegate handler) { } RemoveEventHandler(object target, System.Delegate handler)215 public override void RemoveEventHandler(object target, System.Delegate handler) { } IsDefined(Type attributeType, bool inherit)216 public override bool IsDefined(Type attributeType, bool inherit) { throw null; } GetCustomAttributes(bool inherit)217 public override object[] GetCustomAttributes(bool inherit) { throw null; } 218 public override System.Type ReflectedType { get { throw null; } } GetRemoveMethod(bool nonPublic)219 public override System.Reflection.MethodInfo GetRemoveMethod(bool nonPublic) { throw null; } GetCustomAttributes(Type attributeType, bool inherit)220 public override object[] GetCustomAttributes(Type attributeType, bool inherit) { throw null; } GetRaiseMethod(bool nonPublic)221 public override System.Reflection.MethodInfo GetRaiseMethod(bool nonPublic) { throw null; } GetAddMethod(bool nonPublic)222 public override System.Reflection.MethodInfo GetAddMethod(bool nonPublic) { throw null; } 223 } 224 [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] 225 public sealed class ComCompatibleVersionAttribute : System.Attribute 226 { ComCompatibleVersionAttribute(int major, int minor, int build, int revision)227 public ComCompatibleVersionAttribute(int major, int minor, int build, int revision) { } 228 public int BuildNumber { get; } 229 public int MajorVersion { get; } 230 public int MinorVersion { get; } 231 public int RevisionNumber { get; } 232 } 233 [AttributeUsage(AttributeTargets.All, Inherited = false)] 234 public sealed class ComConversionLossAttribute : System.Attribute 235 { ComConversionLossAttribute()236 public ComConversionLossAttribute() { } 237 } 238 [System.AttributeUsageAttribute((System.AttributeTargets)(4), Inherited = false)] 239 public sealed partial class ComDefaultInterfaceAttribute : System.Attribute 240 { ComDefaultInterfaceAttribute(System.Type defaultInterface)241 public ComDefaultInterfaceAttribute(System.Type defaultInterface) { } 242 public System.Type Value { get { throw null; } } 243 } 244 [System.AttributeUsageAttribute((System.AttributeTargets)(1024), Inherited = false)] 245 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 246 [System.ObsoleteAttribute("ComEventInterfaceAttribute may be unavailable in future releases.")] 247 public sealed partial class ComEventInterfaceAttribute : System.Attribute 248 { ComEventInterfaceAttribute(System.Type SourceInterface, System.Type EventProvider)249 public ComEventInterfaceAttribute(System.Type SourceInterface, System.Type EventProvider) { } 250 public System.Type EventProvider { get { throw null; } } 251 public System.Type SourceInterface { get { throw null; } } 252 } 253 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 254 [System.ObsoleteAttribute("ComEventsHelper may be unavailable in future releases.")] 255 public static partial class ComEventsHelper 256 { Combine(object rcw, System.Guid iid, int dispid, System.Delegate d)257 public static void Combine(object rcw, System.Guid iid, int dispid, System.Delegate d) { } Remove(object rcw, System.Guid iid, int dispid, System.Delegate d)258 public static System.Delegate Remove(object rcw, System.Guid iid, int dispid, System.Delegate d) { throw null; } 259 } 260 public partial class COMException : ExternalException 261 { COMException()262 public COMException() { } COMException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)263 protected COMException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } COMException(string message)264 public COMException(string message) { } COMException(string message, System.Exception inner)265 public COMException(string message, System.Exception inner) { } COMException(string message, int errorCode)266 public COMException(string message, int errorCode) { } ToString()267 public override string ToString() { throw null; } 268 } 269 [System.AttributeUsageAttribute((System.AttributeTargets)(1028), Inherited = false)] 270 public sealed partial class ComImportAttribute : System.Attribute 271 { ComImportAttribute()272 public ComImportAttribute() { } 273 } 274 public enum ComInterfaceType 275 { 276 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 277 [System.ObsoleteAttribute("Support for IDispatch may be unavailable in future releases.")] 278 InterfaceIsDual = 0, 279 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 280 [System.ObsoleteAttribute("Support for IDispatch may be unavailable in future releases.")] 281 InterfaceIsIDispatch = 2, 282 InterfaceIsIInspectable = 3, 283 InterfaceIsIUnknown = 1, 284 } 285 public enum ComMemberType 286 { 287 Method = 0, 288 PropGet = 1, 289 PropSet = 2, 290 } 291 [AttributeUsage(AttributeTargets.Method, Inherited = false)] 292 public sealed class ComRegisterFunctionAttribute : System.Attribute 293 { ComRegisterFunctionAttribute()294 public ComRegisterFunctionAttribute() { } 295 } 296 [System.AttributeUsageAttribute((System.AttributeTargets)(4), Inherited = true)] 297 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 298 [System.ObsoleteAttribute("ComSourceInterfacesAttribute may be unavailable in future releases.")] 299 public sealed partial class ComSourceInterfacesAttribute : System.Attribute 300 { ComSourceInterfacesAttribute(string sourceInterfaces)301 public ComSourceInterfacesAttribute(string sourceInterfaces) { } ComSourceInterfacesAttribute(System.Type sourceInterface)302 public ComSourceInterfacesAttribute(System.Type sourceInterface) { } ComSourceInterfacesAttribute(System.Type sourceInterface1, System.Type sourceInterface2)303 public ComSourceInterfacesAttribute(System.Type sourceInterface1, System.Type sourceInterface2) { } ComSourceInterfacesAttribute(System.Type sourceInterface1, System.Type sourceInterface2, System.Type sourceInterface3)304 public ComSourceInterfacesAttribute(System.Type sourceInterface1, System.Type sourceInterface2, System.Type sourceInterface3) { } ComSourceInterfacesAttribute(System.Type sourceInterface1, System.Type sourceInterface2, System.Type sourceInterface3, System.Type sourceInterface4)305 public ComSourceInterfacesAttribute(System.Type sourceInterface1, System.Type sourceInterface2, System.Type sourceInterface3, System.Type sourceInterface4) { } 306 public string Value { get { throw null; } } 307 } 308 [AttributeUsage(AttributeTargets.Method, Inherited = false)] 309 public sealed class ComUnregisterFunctionAttribute : System.Attribute 310 { ComUnregisterFunctionAttribute()311 public ComUnregisterFunctionAttribute() { } 312 } 313 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 314 [System.ObsoleteAttribute("CurrencyWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")] 315 public sealed partial class CurrencyWrapper 316 { CurrencyWrapper(decimal obj)317 public CurrencyWrapper(decimal obj) { } CurrencyWrapper(object obj)318 public CurrencyWrapper(object obj) { } 319 public decimal WrappedObject { get { throw null; } } 320 } 321 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 322 public enum CustomQueryInterfaceMode 323 { 324 Allow = 1, 325 Ignore = 0, 326 } 327 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 328 public enum CustomQueryInterfaceResult 329 { 330 Failed = 2, 331 Handled = 0, 332 NotHandled = 1, 333 } 334 [System.AttributeUsageAttribute((System.AttributeTargets)(2), Inherited = false)] 335 public sealed partial class DefaultCharSetAttribute : System.Attribute 336 { DefaultCharSetAttribute(System.Runtime.InteropServices.CharSet charSet)337 public DefaultCharSetAttribute(System.Runtime.InteropServices.CharSet charSet) { } 338 public System.Runtime.InteropServices.CharSet CharSet { get { throw null; } } 339 } 340 [System.AttributeUsageAttribute((System.AttributeTargets)(65), AllowMultiple = false)] 341 public sealed partial class DefaultDllImportSearchPathsAttribute : System.Attribute 342 { DefaultDllImportSearchPathsAttribute(System.Runtime.InteropServices.DllImportSearchPath paths)343 public DefaultDllImportSearchPathsAttribute(System.Runtime.InteropServices.DllImportSearchPath paths) { } 344 public System.Runtime.InteropServices.DllImportSearchPath Paths { get { throw null; } } 345 } 346 [System.AttributeUsageAttribute((System.AttributeTargets)(2048))] 347 public sealed partial class DefaultParameterValueAttribute : System.Attribute 348 { DefaultParameterValueAttribute(object value)349 public DefaultParameterValueAttribute(object value) { } 350 public object Value { get { throw null; } } 351 } 352 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 353 [System.ObsoleteAttribute("DispatchWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")] 354 public sealed partial class DispatchWrapper 355 { DispatchWrapper(object obj)356 public DispatchWrapper(object obj) { } 357 public object WrappedObject { get { throw null; } } 358 } 359 [System.AttributeUsageAttribute((System.AttributeTargets)(960), Inherited = false)] 360 public sealed partial class DispIdAttribute : System.Attribute 361 { DispIdAttribute(int dispId)362 public DispIdAttribute(int dispId) { } 363 public int Value { get { throw null; } } 364 } 365 [System.AttributeUsageAttribute((System.AttributeTargets)(64), Inherited = false)] 366 public sealed partial class DllImportAttribute : System.Attribute 367 { 368 public bool BestFitMapping; 369 public System.Runtime.InteropServices.CallingConvention CallingConvention; 370 public System.Runtime.InteropServices.CharSet CharSet; 371 public string EntryPoint; 372 public bool ExactSpelling; 373 public bool PreserveSig; 374 public bool SetLastError; 375 public bool ThrowOnUnmappableChar; DllImportAttribute(string dllName)376 public DllImportAttribute(string dllName) { } 377 public string Value { get { throw null; } } 378 } 379 [System.FlagsAttribute] 380 public enum DllImportSearchPath 381 { 382 ApplicationDirectory = 512, 383 AssemblyDirectory = 2, 384 LegacyBehavior = 0, 385 SafeDirectories = 4096, 386 System32 = 2048, 387 UseDllDirectoryForDependencies = 256, 388 UserDirectories = 1024, 389 } 390 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 391 [System.ObsoleteAttribute("ErrorWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")] 392 public sealed partial class ErrorWrapper 393 { ErrorWrapper(System.Exception e)394 public ErrorWrapper(System.Exception e) { } ErrorWrapper(int errorCode)395 public ErrorWrapper(int errorCode) { } ErrorWrapper(object errorCode)396 public ErrorWrapper(object errorCode) { } 397 public int ErrorCode { get { throw null; } } 398 } 399 [System.AttributeUsageAttribute((System.AttributeTargets)(5149), Inherited = false)] 400 public sealed partial class GuidAttribute : System.Attribute 401 { GuidAttribute(string guid)402 public GuidAttribute(string guid) { } 403 public string Value { get { throw null; } } 404 } 405 public sealed partial class HandleCollector 406 { HandleCollector(string name, int initialThreshold)407 public HandleCollector(string name, int initialThreshold) { } HandleCollector(string name, int initialThreshold, int maximumThreshold)408 public HandleCollector(string name, int initialThreshold, int maximumThreshold) { } 409 public int Count { get { throw null; } } 410 public int InitialThreshold { get { throw null; } } 411 public int MaximumThreshold { get { throw null; } } 412 public string Name { get { throw null; } } Add()413 public void Add() { } Remove()414 public void Remove() { } 415 } 416 public struct HandleRef 417 { 418 private object _dummy; HandleRefSystem.Runtime.InteropServices.HandleRef419 public HandleRef(object wrapper, System.IntPtr handle) : this() { } 420 public System.IntPtr Handle { get; } 421 public object Wrapper { get; } operator System.IntPtrSystem.Runtime.InteropServices.HandleRef422 public static explicit operator System.IntPtr(HandleRef value) { throw null; } ToIntPtrSystem.Runtime.InteropServices.HandleRef423 public static System.IntPtr ToIntPtr(HandleRef value) { throw null; } 424 } 425 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 426 [System.ObsoleteAttribute("ICustomAdapter may be unavailable in future releases.")] 427 public partial interface ICustomAdapter 428 { GetUnderlyingObject()429 object GetUnderlyingObject(); 430 } 431 public interface ICustomFactory 432 { CreateInstance(Type serverType)433 MarshalByRefObject CreateInstance(Type serverType); 434 } 435 public interface ICustomMarshaler 436 { CleanUpManagedData(object ManagedObj)437 void CleanUpManagedData(object ManagedObj); CleanUpNativeData(System.IntPtr pNativeData)438 void CleanUpNativeData(System.IntPtr pNativeData); GetNativeDataSize()439 int GetNativeDataSize(); MarshalManagedToNative(object ManagedObj)440 System.IntPtr MarshalManagedToNative(object ManagedObj); MarshalNativeToManaged(System.IntPtr pNativeData)441 object MarshalNativeToManaged(System.IntPtr pNativeData); 442 } 443 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 444 public partial interface ICustomQueryInterface 445 { GetInterface(ref System.Guid iid, out System.IntPtr ppv)446 System.Runtime.InteropServices.CustomQueryInterfaceResult GetInterface(ref System.Guid iid, out System.IntPtr ppv); 447 } 448 [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] 449 public sealed class ImportedFromTypeLibAttribute : Attribute 450 { ImportedFromTypeLibAttribute(String tlbFile)451 public ImportedFromTypeLibAttribute(String tlbFile) { } 452 public String Value { get { throw null; } } 453 } 454 [System.AttributeUsageAttribute((System.AttributeTargets)(1024), Inherited = false)] 455 public sealed partial class InterfaceTypeAttribute : System.Attribute 456 { InterfaceTypeAttribute(short interfaceType)457 public InterfaceTypeAttribute(short interfaceType) { } InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType interfaceType)458 public InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType interfaceType) { } 459 public System.Runtime.InteropServices.ComInterfaceType Value { get { throw null; } } 460 } 461 public partial class InvalidComObjectException : System.SystemException 462 { InvalidComObjectException()463 public InvalidComObjectException() { } InvalidComObjectException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)464 protected InvalidComObjectException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } InvalidComObjectException(string message)465 public InvalidComObjectException(string message) { } InvalidComObjectException(string message, System.Exception inner)466 public InvalidComObjectException(string message, System.Exception inner) { } 467 } 468 public partial class InvalidOleVariantTypeException : System.SystemException 469 { InvalidOleVariantTypeException()470 public InvalidOleVariantTypeException() { } InvalidOleVariantTypeException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)471 protected InvalidOleVariantTypeException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } InvalidOleVariantTypeException(string message)472 public InvalidOleVariantTypeException(string message) { } InvalidOleVariantTypeException(string message, System.Exception inner)473 public InvalidOleVariantTypeException(string message, System.Exception inner) { } 474 } 475 [AttributeUsage(AttributeTargets.Method, Inherited = false)] 476 public sealed class LCIDConversionAttribute : Attribute 477 { LCIDConversionAttribute(int lcid)478 public LCIDConversionAttribute(int lcid) { } 479 public int Value { get; } 480 } 481 public static partial class Marshal 482 { 483 public static readonly int SystemDefaultCharSize; 484 public static readonly int SystemMaxDBCSCharSize; AddRef(System.IntPtr pUnk)485 public static int AddRef(System.IntPtr pUnk) { throw null; } AllocCoTaskMem(int cb)486 public static System.IntPtr AllocCoTaskMem(int cb) { throw null; } AllocHGlobal(int cb)487 public static System.IntPtr AllocHGlobal(int cb) { throw null; } AllocHGlobal(System.IntPtr cb)488 public static System.IntPtr AllocHGlobal(System.IntPtr cb) { throw null; } AreComObjectsAvailableForCleanup()489 public static bool AreComObjectsAvailableForCleanup() { throw null; } BindToMoniker(string monikerName)490 public static object BindToMoniker(string monikerName) { throw null; } ChangeWrapperHandleStrength(object otp, bool fIsWeak)491 public static void ChangeWrapperHandleStrength(object otp, bool fIsWeak) { } CleanupUnusedObjectsInCurrentContext()492 public static void CleanupUnusedObjectsInCurrentContext() { } Copy(byte[] source, int startIndex, System.IntPtr destination, int length)493 public static void Copy(byte[] source, int startIndex, System.IntPtr destination, int length) { } Copy(char[] source, int startIndex, System.IntPtr destination, int length)494 public static void Copy(char[] source, int startIndex, System.IntPtr destination, int length) { } Copy(double[] source, int startIndex, System.IntPtr destination, int length)495 public static void Copy(double[] source, int startIndex, System.IntPtr destination, int length) { } Copy(short[] source, int startIndex, System.IntPtr destination, int length)496 public static void Copy(short[] source, int startIndex, System.IntPtr destination, int length) { } Copy(int[] source, int startIndex, System.IntPtr destination, int length)497 public static void Copy(int[] source, int startIndex, System.IntPtr destination, int length) { } Copy(long[] source, int startIndex, System.IntPtr destination, int length)498 public static void Copy(long[] source, int startIndex, System.IntPtr destination, int length) { } Copy(System.IntPtr source, byte[] destination, int startIndex, int length)499 public static void Copy(System.IntPtr source, byte[] destination, int startIndex, int length) { } Copy(System.IntPtr source, char[] destination, int startIndex, int length)500 public static void Copy(System.IntPtr source, char[] destination, int startIndex, int length) { } Copy(System.IntPtr source, double[] destination, int startIndex, int length)501 public static void Copy(System.IntPtr source, double[] destination, int startIndex, int length) { } Copy(System.IntPtr source, short[] destination, int startIndex, int length)502 public static void Copy(System.IntPtr source, short[] destination, int startIndex, int length) { } Copy(System.IntPtr source, int[] destination, int startIndex, int length)503 public static void Copy(System.IntPtr source, int[] destination, int startIndex, int length) { } Copy(System.IntPtr source, long[] destination, int startIndex, int length)504 public static void Copy(System.IntPtr source, long[] destination, int startIndex, int length) { } Copy(System.IntPtr source, System.IntPtr[] destination, int startIndex, int length)505 public static void Copy(System.IntPtr source, System.IntPtr[] destination, int startIndex, int length) { } Copy(System.IntPtr source, float[] destination, int startIndex, int length)506 public static void Copy(System.IntPtr source, float[] destination, int startIndex, int length) { } Copy(System.IntPtr[] source, int startIndex, System.IntPtr destination, int length)507 public static void Copy(System.IntPtr[] source, int startIndex, System.IntPtr destination, int length) { } Copy(float[] source, int startIndex, System.IntPtr destination, int length)508 public static void Copy(float[] source, int startIndex, System.IntPtr destination, int length) { } 509 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] CreateAggregatedObject(System.IntPtr pOuter, object o)510 public static System.IntPtr CreateAggregatedObject(System.IntPtr pOuter, object o) { throw null; } CreateAggregatedObject(System.IntPtr pOuter, T o)511 public static System.IntPtr CreateAggregatedObject<T>(System.IntPtr pOuter, T o) { throw null; } 512 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] CreateWrapperOfType(object o, System.Type t)513 public static object CreateWrapperOfType(object o, System.Type t) { throw null; } CreateWrapperOfType(T o)514 public static TWrapper CreateWrapperOfType<T, TWrapper>(T o) { throw null; } 515 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] DestroyStructure(System.IntPtr ptr, System.Type structuretype)516 public static void DestroyStructure(System.IntPtr ptr, System.Type structuretype) { } DestroyStructure(System.IntPtr ptr)517 public static void DestroyStructure<T>(System.IntPtr ptr) { } FinalReleaseComObject(object o)518 public static int FinalReleaseComObject(object o) { throw null; } FreeBSTR(System.IntPtr ptr)519 public static void FreeBSTR(System.IntPtr ptr) { } FreeCoTaskMem(System.IntPtr ptr)520 public static void FreeCoTaskMem(System.IntPtr ptr) { } FreeHGlobal(System.IntPtr hglobal)521 public static void FreeHGlobal(System.IntPtr hglobal) { } GenerateGuidForType(System.Type type)522 public static Guid GenerateGuidForType(System.Type type) { throw null; } GenerateProgIdForType(System.Type type)523 public static string GenerateProgIdForType(System.Type type) { throw null; } 524 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] GetComInterfaceForObject(object o, System.Type T)525 public static System.IntPtr GetComInterfaceForObject(object o, System.Type T) { throw null; } 526 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] GetComInterfaceForObject(object o, System.Type T, System.Runtime.InteropServices.CustomQueryInterfaceMode mode)527 public static System.IntPtr GetComInterfaceForObject(object o, System.Type T, System.Runtime.InteropServices.CustomQueryInterfaceMode mode) { throw null; } GetComInterfaceForObject(T o)528 public static System.IntPtr GetComInterfaceForObject<T, TInterface>(T o) { throw null; } GetComObjectData(object obj, object key)529 public static object GetComObjectData(object obj, object key) { throw null; } 530 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] GetDelegateForFunctionPointer(System.IntPtr ptr, System.Type t)531 public static System.Delegate GetDelegateForFunctionPointer(System.IntPtr ptr, System.Type t) { throw null; } GetDelegateForFunctionPointer(System.IntPtr ptr)532 public static TDelegate GetDelegateForFunctionPointer<TDelegate>(System.IntPtr ptr) { throw null; } 533 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 534 [System.ObsoleteAttribute("GetExceptionCode() may be unavailable in future releases.")] GetExceptionCode()535 public static int GetExceptionCode() { throw null; } GetExceptionForHR(int errorCode)536 public static System.Exception GetExceptionForHR(int errorCode) { throw null; } GetExceptionForHR(int errorCode, System.IntPtr errorInfo)537 public static System.Exception GetExceptionForHR(int errorCode, System.IntPtr errorInfo) { throw null; } 538 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] GetFunctionPointerForDelegate(System.Delegate d)539 public static System.IntPtr GetFunctionPointerForDelegate(System.Delegate d) { throw null; } GetFunctionPointerForDelegate(TDelegate d)540 public static System.IntPtr GetFunctionPointerForDelegate<TDelegate>(TDelegate d) { throw null; } GetHINSTANCE(System.Reflection.Module m)541 public static System.IntPtr GetHINSTANCE(System.Reflection.Module m) { throw null; } GetHRForException(System.Exception e)542 public static int GetHRForException(System.Exception e) { throw null; } GetHRForLastWin32Error()543 public static int GetHRForLastWin32Error() { throw null; } GetIDispatchForObject(object o)544 public static System.IntPtr GetIDispatchForObject(object o) { throw null; } GetIUnknownForObject(object o)545 public static System.IntPtr GetIUnknownForObject(object o) { throw null; } GetLastWin32Error()546 public static int GetLastWin32Error() { throw null; } 547 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 548 [System.ObsoleteAttribute("GetNativeVariantForObject(Object, IntPtr) may be unavailable in future releases.")] GetNativeVariantForObject(object obj, System.IntPtr pDstNativeVariant)549 public static void GetNativeVariantForObject(object obj, System.IntPtr pDstNativeVariant) { } 550 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 551 [System.ObsoleteAttribute("GetNativeVariantForObject<T>(T, IntPtr) may be unavailable in future releases.")] GetNativeVariantForObject(T obj, System.IntPtr pDstNativeVariant)552 public static void GetNativeVariantForObject<T>(T obj, System.IntPtr pDstNativeVariant) { } GetObjectForIUnknown(System.IntPtr pUnk)553 public static object GetObjectForIUnknown(System.IntPtr pUnk) { throw null; } 554 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 555 [System.ObsoleteAttribute("GetObjectForNativeVariant(IntPtr) may be unavailable in future releases.")] GetObjectForNativeVariant(System.IntPtr pSrcNativeVariant)556 public static object GetObjectForNativeVariant(System.IntPtr pSrcNativeVariant) { throw null; } 557 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 558 [System.ObsoleteAttribute("GetObjectForNativeVariant<T>(IntPtr) may be unavailable in future releases.")] GetObjectForNativeVariant(System.IntPtr pSrcNativeVariant)559 public static T GetObjectForNativeVariant<T>(System.IntPtr pSrcNativeVariant) { throw null; } 560 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 561 [System.ObsoleteAttribute("GetObjectsForNativeVariants(IntPtr, Int32) may be unavailable in future releases.")] GetObjectsForNativeVariants(System.IntPtr aSrcNativeVariant, int cVars)562 public static object[] GetObjectsForNativeVariants(System.IntPtr aSrcNativeVariant, int cVars) { throw null; } 563 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 564 [System.ObsoleteAttribute("GetObjectsForNativeVariants<T>(IntPtr, Int32) may be unavailable in future releases.")] GetObjectsForNativeVariants(System.IntPtr aSrcNativeVariant, int cVars)565 public static T[] GetObjectsForNativeVariants<T>(System.IntPtr aSrcNativeVariant, int cVars) { throw null; } GetStartComSlot(System.Type t)566 public static int GetStartComSlot(System.Type t) { throw null; } GetTypedObjectForIUnknown(System.IntPtr pUnk, System.Type t)567 public static object GetTypedObjectForIUnknown(System.IntPtr pUnk, System.Type t) { throw null; } GetTypeFromCLSID(System.Guid clsid)568 public static System.Type GetTypeFromCLSID(System.Guid clsid) { throw null; } GetTypeInfoName(System.Runtime.InteropServices.ComTypes.ITypeInfo typeInfo)569 public static string GetTypeInfoName(System.Runtime.InteropServices.ComTypes.ITypeInfo typeInfo) { throw null; } GetUniqueObjectForIUnknown(System.IntPtr unknown)570 public static object GetUniqueObjectForIUnknown(System.IntPtr unknown) { throw null; } IsComObject(object o)571 public static bool IsComObject(object o) { throw null; } 572 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] OffsetOf(System.Type t, string fieldName)573 public static System.IntPtr OffsetOf(System.Type t, string fieldName) { throw null; } OffsetOf(string fieldName)574 public static System.IntPtr OffsetOf<T>(string fieldName) { throw null; } Prelink(System.Reflection.MethodInfo m)575 public static void Prelink(System.Reflection.MethodInfo m) { } PrelinkAll(Type c)576 public static void PrelinkAll(Type c) { } PtrToStringAuto(System.IntPtr ptr)577 public static string PtrToStringAuto(System.IntPtr ptr) { throw null; } PtrToStringAuto(System.IntPtr ptr, int len)578 public static string PtrToStringAuto(System.IntPtr ptr, int len) { throw null; } PtrToStringAnsi(System.IntPtr ptr)579 public static string PtrToStringAnsi(System.IntPtr ptr) { throw null; } PtrToStringAnsi(System.IntPtr ptr, int len)580 public static string PtrToStringAnsi(System.IntPtr ptr, int len) { throw null; } PtrToStringBSTR(System.IntPtr ptr)581 public static string PtrToStringBSTR(System.IntPtr ptr) { throw null; } PtrToStringUni(System.IntPtr ptr)582 public static string PtrToStringUni(System.IntPtr ptr) { throw null; } PtrToStringUni(System.IntPtr ptr, int len)583 public static string PtrToStringUni(System.IntPtr ptr, int len) { throw null; } PtrToStringUTF8(System.IntPtr ptr)584 public static string PtrToStringUTF8(System.IntPtr ptr) { throw null; } PtrToStringUTF8(System.IntPtr ptr, int byteLen)585 public static string PtrToStringUTF8(System.IntPtr ptr, int byteLen) { throw null; } 586 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] PtrToStructure(System.IntPtr ptr, object structure)587 public static void PtrToStructure(System.IntPtr ptr, object structure) { } 588 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] PtrToStructure(System.IntPtr ptr, System.Type structureType)589 public static object PtrToStructure(System.IntPtr ptr, System.Type structureType) { throw null; } PtrToStructure(System.IntPtr ptr)590 public static T PtrToStructure<T>(System.IntPtr ptr) { throw null; } PtrToStructure(System.IntPtr ptr, T structure)591 public static void PtrToStructure<T>(System.IntPtr ptr, T structure) { } QueryInterface(System.IntPtr pUnk, ref System.Guid iid, out System.IntPtr ppv)592 public static int QueryInterface(System.IntPtr pUnk, ref System.Guid iid, out System.IntPtr ppv) { throw null; } ReadByte(System.IntPtr ptr)593 public static byte ReadByte(System.IntPtr ptr) { throw null; } ReadByte(System.IntPtr ptr, int ofs)594 public static byte ReadByte(System.IntPtr ptr, int ofs) { throw null; } 595 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 596 [System.ObsoleteAttribute("ReadByte(Object, Int32) may be unavailable in future releases.")] ReadByte(object ptr, int ofs)597 public static byte ReadByte(object ptr, int ofs) { throw null; } ReadInt16(System.IntPtr ptr)598 public static short ReadInt16(System.IntPtr ptr) { throw null; } ReadInt16(System.IntPtr ptr, int ofs)599 public static short ReadInt16(System.IntPtr ptr, int ofs) { throw null; } 600 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 601 [System.ObsoleteAttribute("ReadInt16(Object, Int32) may be unavailable in future releases.")] ReadInt16(object ptr, int ofs)602 public static short ReadInt16(object ptr, int ofs) { throw null; } ReadInt32(System.IntPtr ptr)603 public static int ReadInt32(System.IntPtr ptr) { throw null; } ReadInt32(System.IntPtr ptr, int ofs)604 public static int ReadInt32(System.IntPtr ptr, int ofs) { throw null; } 605 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 606 [System.ObsoleteAttribute("ReadInt32(Object, Int32) may be unavailable in future releases.")] ReadInt32(object ptr, int ofs)607 public static int ReadInt32(object ptr, int ofs) { throw null; } ReadInt64(System.IntPtr ptr)608 public static long ReadInt64(System.IntPtr ptr) { throw null; } ReadInt64(System.IntPtr ptr, int ofs)609 public static long ReadInt64(System.IntPtr ptr, int ofs) { throw null; } 610 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 611 [System.ObsoleteAttribute("ReadInt64(Object, Int32) may be unavailable in future releases.")] ReadInt64(object ptr, int ofs)612 public static long ReadInt64(object ptr, int ofs) { throw null; } ReadIntPtr(System.IntPtr ptr)613 public static System.IntPtr ReadIntPtr(System.IntPtr ptr) { throw null; } ReadIntPtr(System.IntPtr ptr, int ofs)614 public static System.IntPtr ReadIntPtr(System.IntPtr ptr, int ofs) { throw null; } 615 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 616 [System.ObsoleteAttribute("ReadIntPtr(Object, Int32) may be unavailable in future releases.")] ReadIntPtr(object ptr, int ofs)617 public static System.IntPtr ReadIntPtr(object ptr, int ofs) { throw null; } ReAllocCoTaskMem(System.IntPtr pv, int cb)618 public static System.IntPtr ReAllocCoTaskMem(System.IntPtr pv, int cb) { throw null; } ReAllocHGlobal(System.IntPtr pv, System.IntPtr cb)619 public static System.IntPtr ReAllocHGlobal(System.IntPtr pv, System.IntPtr cb) { throw null; } Release(System.IntPtr pUnk)620 public static int Release(System.IntPtr pUnk) { throw null; } ReleaseComObject(object o)621 public static int ReleaseComObject(object o) { throw null; } 622 [System.CLSCompliant(false)] SecureStringToBSTR(System.Security.SecureString s)623 public static IntPtr SecureStringToBSTR(System.Security.SecureString s) { throw null; } 624 [System.CLSCompliant(false)] SecureStringToCoTaskMemAnsi(System.Security.SecureString s)625 public static IntPtr SecureStringToCoTaskMemAnsi(System.Security.SecureString s) { throw null; } 626 [System.CLSCompliant(false)] SecureStringToCoTaskMemUnicode(System.Security.SecureString s)627 public static IntPtr SecureStringToCoTaskMemUnicode(System.Security.SecureString s) { throw null; } 628 [System.CLSCompliant(false)] SecureStringToGlobalAllocAnsi(System.Security.SecureString s)629 public static IntPtr SecureStringToGlobalAllocAnsi(System.Security.SecureString s) { throw null; } 630 [System.CLSCompliant(false)] SecureStringToGlobalAllocUnicode(System.Security.SecureString s)631 public static IntPtr SecureStringToGlobalAllocUnicode(System.Security.SecureString s) { throw null; } SetComObjectData(object obj, object key, object data)632 public static bool SetComObjectData(object obj, object key, object data) { throw null; } 633 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] SizeOf(object structure)634 public static int SizeOf(object structure) { throw null; } 635 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] SizeOf(System.Type t)636 public static int SizeOf(System.Type t) { throw null; } SizeOf()637 public static int SizeOf<T>() { throw null; } SizeOf(T structure)638 public static int SizeOf<T>(T structure) { throw null; } StringToBSTR(string s)639 public static System.IntPtr StringToBSTR(string s) { throw null; } StringToCoTaskMemAnsi(string s)640 public static System.IntPtr StringToCoTaskMemAnsi(string s) { throw null; } StringToCoTaskMemAuto(string s)641 public static System.IntPtr StringToCoTaskMemAuto(string s) { throw null; } StringToCoTaskMemUni(string s)642 public static System.IntPtr StringToCoTaskMemUni(string s) { throw null; } StringToCoTaskMemUTF8(string s)643 public static System.IntPtr StringToCoTaskMemUTF8(string s) { throw null; } StringToHGlobalAnsi(string s)644 public static System.IntPtr StringToHGlobalAnsi(string s) { throw null; } StringToHGlobalAuto(string s)645 public static System.IntPtr StringToHGlobalAuto(string s) { throw null; } StringToHGlobalUni(string s)646 public static System.IntPtr StringToHGlobalUni(string s) { throw null; } 647 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] StructureToPtr(object structure, System.IntPtr ptr, bool fDeleteOld)648 public static void StructureToPtr(object structure, System.IntPtr ptr, bool fDeleteOld) { } StructureToPtr(T structure, System.IntPtr ptr, bool fDeleteOld)649 public static void StructureToPtr<T>(T structure, System.IntPtr ptr, bool fDeleteOld) { } ThrowExceptionForHR(int errorCode)650 public static void ThrowExceptionForHR(int errorCode) { } ThrowExceptionForHR(int errorCode, System.IntPtr errorInfo)651 public static void ThrowExceptionForHR(int errorCode, System.IntPtr errorInfo) { } 652 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] UnsafeAddrOfPinnedArrayElement(System.Array arr, int index)653 public static System.IntPtr UnsafeAddrOfPinnedArrayElement(System.Array arr, int index) { throw null; } UnsafeAddrOfPinnedArrayElement(T[] arr, int index)654 public static System.IntPtr UnsafeAddrOfPinnedArrayElement<T>(T[] arr, int index) { throw null; } WriteByte(System.IntPtr ptr, byte val)655 public static void WriteByte(System.IntPtr ptr, byte val) { } WriteByte(System.IntPtr ptr, int ofs, byte val)656 public static void WriteByte(System.IntPtr ptr, int ofs, byte val) { } 657 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 658 [System.ObsoleteAttribute("WriteByte(Object, Int32, Byte) may be unavailable in future releases.")] WriteByte(object ptr, int ofs, byte val)659 public static void WriteByte(object ptr, int ofs, byte val) { throw null; } WriteInt16(System.IntPtr ptr, char val)660 public static void WriteInt16(System.IntPtr ptr, char val) { } WriteInt16(System.IntPtr ptr, short val)661 public static void WriteInt16(System.IntPtr ptr, short val) { } WriteInt16(System.IntPtr ptr, int ofs, char val)662 public static void WriteInt16(System.IntPtr ptr, int ofs, char val) { } WriteInt16(System.IntPtr ptr, int ofs, short val)663 public static void WriteInt16(System.IntPtr ptr, int ofs, short val) { } 664 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 665 [System.ObsoleteAttribute("WriteInt16(Object, Int32, Char) may be unavailable in future releases.")] WriteInt16(object ptr, int ofs, char val)666 public static void WriteInt16(object ptr, int ofs, char val) { throw null; } 667 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 668 [System.ObsoleteAttribute("WriteInt16(Object, Int32, Int16) may be unavailable in future releases.")] WriteInt16(object ptr, int ofs, short val)669 public static void WriteInt16(object ptr, int ofs, short val) { throw null; } WriteInt32(System.IntPtr ptr, int val)670 public static void WriteInt32(System.IntPtr ptr, int val) { } WriteInt32(System.IntPtr ptr, int ofs, int val)671 public static void WriteInt32(System.IntPtr ptr, int ofs, int val) { } 672 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 673 [System.ObsoleteAttribute("WriteInt32(Object, Int32, Int32) may be unavailable in future releases.")] WriteInt32(object ptr, int ofs, int val)674 public static void WriteInt32(object ptr, int ofs, int val) { throw null; } WriteInt64(System.IntPtr ptr, int ofs, long val)675 public static void WriteInt64(System.IntPtr ptr, int ofs, long val) { } WriteInt64(System.IntPtr ptr, long val)676 public static void WriteInt64(System.IntPtr ptr, long val) { } 677 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 678 [System.ObsoleteAttribute("WriteInt64(Object, Int32, Int64) may be unavailable in future releases.")] WriteInt64(object ptr, int ofs, long val)679 public static void WriteInt64(object ptr, int ofs, long val) { throw null; } WriteIntPtr(System.IntPtr ptr, int ofs, System.IntPtr val)680 public static void WriteIntPtr(System.IntPtr ptr, int ofs, System.IntPtr val) { } WriteIntPtr(System.IntPtr ptr, System.IntPtr val)681 public static void WriteIntPtr(System.IntPtr ptr, System.IntPtr val) { } 682 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 683 [System.ObsoleteAttribute("WriteIntPtr(Object, Int32, IntPtr) may be unavailable in future releases.")] WriteIntPtr(object ptr, int ofs, System.IntPtr val)684 public static void WriteIntPtr(object ptr, int ofs, System.IntPtr val) { throw null; } ZeroFreeBSTR(System.IntPtr s)685 public static void ZeroFreeBSTR(System.IntPtr s) { } ZeroFreeCoTaskMemAnsi(System.IntPtr s)686 public static void ZeroFreeCoTaskMemAnsi(System.IntPtr s) { } ZeroFreeCoTaskMemUnicode(System.IntPtr s)687 public static void ZeroFreeCoTaskMemUnicode(System.IntPtr s) { } ZeroFreeGlobalAllocAnsi(System.IntPtr s)688 public static void ZeroFreeGlobalAllocAnsi(System.IntPtr s) { } ZeroFreeGlobalAllocUnicode(System.IntPtr s)689 public static void ZeroFreeGlobalAllocUnicode(System.IntPtr s) { } ZeroFreeCoTaskMemUTF8(System.IntPtr s)690 public static void ZeroFreeCoTaskMemUTF8(System.IntPtr s) { } 691 } 692 [System.AttributeUsageAttribute((System.AttributeTargets)(64), Inherited=false)] 693 public sealed partial class ManagedToNativeComInteropStubAttribute : System.Attribute 694 { ManagedToNativeComInteropStubAttribute(System.Type classType, string methodName)695 public ManagedToNativeComInteropStubAttribute(System.Type classType, string methodName) { } 696 public System.Type ClassType { get { throw null; } } 697 public string MethodName { get { throw null; } } 698 } 699 [System.AttributeUsageAttribute((System.AttributeTargets)(10496), Inherited = false)] 700 public sealed partial class MarshalAsAttribute : System.Attribute 701 { 702 public System.Runtime.InteropServices.UnmanagedType ArraySubType; 703 public int IidParameterIndex; 704 public string MarshalCookie; 705 public string MarshalType; 706 public System.Type MarshalTypeRef; 707 public System.Runtime.InteropServices.VarEnum SafeArraySubType; 708 public System.Type SafeArrayUserDefinedSubType; 709 public int SizeConst; 710 public short SizeParamIndex; MarshalAsAttribute(short unmanagedType)711 public MarshalAsAttribute(short unmanagedType) { } MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType unmanagedType)712 public MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType unmanagedType) { } 713 public System.Runtime.InteropServices.UnmanagedType Value { get { throw null; } } 714 } 715 public partial class MarshalDirectiveException : System.SystemException 716 { MarshalDirectiveException()717 public MarshalDirectiveException() { } MarshalDirectiveException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)718 protected MarshalDirectiveException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } MarshalDirectiveException(string message)719 public MarshalDirectiveException(string message) { } MarshalDirectiveException(string message, System.Exception inner)720 public MarshalDirectiveException(string message, System.Exception inner) { } 721 } 722 [System.AttributeUsageAttribute((System.AttributeTargets)(2048), Inherited = false)] 723 public sealed partial class OptionalAttribute : System.Attribute 724 { OptionalAttribute()725 public OptionalAttribute() { } 726 } 727 [System.AttributeUsageAttribute((System.AttributeTargets)(64), Inherited = false)] 728 public sealed partial class PreserveSigAttribute : System.Attribute 729 { PreserveSigAttribute()730 public PreserveSigAttribute() { } 731 } 732 [AttributeUsage(AttributeTargets.Assembly, Inherited = false, AllowMultiple = true)] 733 public sealed class PrimaryInteropAssemblyAttribute : Attribute 734 { PrimaryInteropAssemblyAttribute(int major, int minor)735 public PrimaryInteropAssemblyAttribute(int major, int minor) { } 736 public int MajorVersion { get; } 737 public int MinorVersion { get; } 738 } 739 [AttributeUsage(AttributeTargets.Class, Inherited = false)] 740 public sealed class ProgIdAttribute : Attribute 741 { ProgIdAttribute(string progId)742 public ProgIdAttribute(string progId) { } 743 public string Value { get; } 744 } 745 public static class RuntimeEnvironment 746 { 747 public static string SystemConfigurationFile { get; } FromGlobalAccessCache(System.Reflection.Assembly a)748 public static bool FromGlobalAccessCache(System.Reflection.Assembly a) { throw null; } GetRuntimeDirectory()749 public static string GetRuntimeDirectory() { throw null; } GetRuntimeInterfaceAsIntPtr(Guid clsid, Guid riid)750 public static IntPtr GetRuntimeInterfaceAsIntPtr(Guid clsid, Guid riid) { throw null; } GetRuntimeInterfaceAsObject(Guid clsid, Guid riid)751 public static object GetRuntimeInterfaceAsObject(Guid clsid, Guid riid) { throw null; } GetSystemVersion()752 public static string GetSystemVersion() { throw null; } 753 } 754 public partial class SafeArrayRankMismatchException : System.SystemException 755 { SafeArrayRankMismatchException()756 public SafeArrayRankMismatchException() { } SafeArrayRankMismatchException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)757 protected SafeArrayRankMismatchException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } SafeArrayRankMismatchException(string message)758 public SafeArrayRankMismatchException(string message) { } SafeArrayRankMismatchException(string message, System.Exception inner)759 public SafeArrayRankMismatchException(string message, System.Exception inner) { } 760 } 761 public partial class SafeArrayTypeMismatchException : System.SystemException 762 { SafeArrayTypeMismatchException()763 public SafeArrayTypeMismatchException() { } SafeArrayTypeMismatchException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)764 protected SafeArrayTypeMismatchException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } SafeArrayTypeMismatchException(string message)765 public SafeArrayTypeMismatchException(string message) { } SafeArrayTypeMismatchException(string message, System.Exception inner)766 public SafeArrayTypeMismatchException(string message, System.Exception inner) { } 767 } 768 public abstract partial class SafeBuffer : Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid 769 { SafeBuffer(bool ownsHandle)770 protected SafeBuffer(bool ownsHandle) : base(default(bool)) { } 771 [System.CLSCompliantAttribute(false)] 772 public ulong ByteLength { get { throw null; } } 773 [System.CLSCompliantAttribute(false)] AcquirePointer(ref byte* pointer)774 public unsafe void AcquirePointer(ref byte* pointer) { } 775 [System.CLSCompliantAttribute(false)] Initialize(uint numElements, uint sizeOfEachElement)776 public void Initialize(uint numElements, uint sizeOfEachElement) { } 777 [System.CLSCompliantAttribute(false)] Initialize(ulong numBytes)778 public void Initialize(ulong numBytes) { } 779 [System.CLSCompliantAttribute(false)] 780 public void Initialize<T>(uint numElements) where T : struct { } 781 [System.CLSCompliantAttribute(false)] 782 public T Read<T>(ulong byteOffset) where T : struct { throw null; } 783 [System.CLSCompliantAttribute(false)] 784 public void ReadArray<T>(ulong byteOffset, T[] array, int index, int count) where T : struct { } ReleasePointer()785 public void ReleasePointer() { } 786 [System.CLSCompliantAttribute(false)] 787 public void Write<T>(ulong byteOffset, T value) where T : struct { } 788 [System.CLSCompliantAttribute(false)] 789 public void WriteArray<T>(ulong byteOffset, T[] array, int index, int count) where T : struct { } 790 } 791 public partial class SEHException : ExternalException 792 { SEHException()793 public SEHException() { } SEHException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)794 protected SEHException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } SEHException(string message)795 public SEHException(string message) { } SEHException(string message, System.Exception inner)796 public SEHException(string message, System.Exception inner) { } CanResume()797 public virtual bool CanResume() { throw null; } 798 } 799 [System.AttributeUsageAttribute((System.AttributeTargets)(5144), AllowMultiple = false, Inherited = false)] 800 public sealed partial class TypeIdentifierAttribute : System.Attribute 801 { TypeIdentifierAttribute()802 public TypeIdentifierAttribute() { } TypeIdentifierAttribute(string scope, string identifier)803 public TypeIdentifierAttribute(string scope, string identifier) { } 804 public string Identifier { get { throw null; } } 805 public string Scope { get { throw null; } } 806 } 807 [AttributeUsage(AttributeTargets.Interface, Inherited = false)] 808 public sealed class TypeLibImportClassAttribute : Attribute 809 { TypeLibImportClassAttribute(Type importClass)810 public TypeLibImportClassAttribute(Type importClass) { } 811 public String Value { get { throw null; } } 812 } 813 [Flags()] 814 public enum TypeLibTypeFlags 815 { 816 FAppObject = 0x0001, 817 FCanCreate = 0x0002, 818 FLicensed = 0x0004, 819 FPreDeclId = 0x0008, 820 FHidden = 0x0010, 821 FControl = 0x0020, 822 FDual = 0x0040, 823 FNonExtensible = 0x0080, 824 FOleAutomation = 0x0100, 825 FRestricted = 0x0200, 826 FAggregatable = 0x0400, 827 FReplaceable = 0x0800, 828 FDispatchable = 0x1000, 829 FReverseBind = 0x2000, 830 } 831 [Flags()] 832 public enum TypeLibFuncFlags 833 { 834 FRestricted = 0x0001, 835 FSource = 0x0002, 836 FBindable = 0x0004, 837 FRequestEdit = 0x0008, 838 FDisplayBind = 0x0010, 839 FDefaultBind = 0x0020, 840 FHidden = 0x0040, 841 FUsesGetLastError = 0x0080, 842 FDefaultCollelem = 0x0100, 843 FUiDefault = 0x0200, 844 FNonBrowsable = 0x0400, 845 FReplaceable = 0x0800, 846 FImmediateBind = 0x1000, 847 } 848 [Flags()] 849 public enum TypeLibVarFlags 850 { 851 FReadOnly = 0x0001, 852 FSource = 0x0002, 853 FBindable = 0x0004, 854 FRequestEdit = 0x0008, 855 FDisplayBind = 0x0010, 856 FDefaultBind = 0x0020, 857 FHidden = 0x0040, 858 FRestricted = 0x0080, 859 FDefaultCollelem = 0x0100, 860 FUiDefault = 0x0200, 861 FNonBrowsable = 0x0400, 862 FReplaceable = 0x0800, 863 FImmediateBind = 0x1000, 864 } 865 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Enum | AttributeTargets.Struct, Inherited = false)] 866 public sealed class TypeLibTypeAttribute : Attribute 867 { TypeLibTypeAttribute(TypeLibTypeFlags flags)868 public TypeLibTypeAttribute(TypeLibTypeFlags flags) {} TypeLibTypeAttribute(short flags)869 public TypeLibTypeAttribute(short flags) { } 870 public TypeLibTypeFlags Value { get { throw null; } } 871 } 872 [AttributeUsage(AttributeTargets.Method, Inherited = false)] 873 public sealed class TypeLibFuncAttribute : Attribute 874 { TypeLibFuncAttribute(TypeLibFuncFlags flags)875 public TypeLibFuncAttribute(TypeLibFuncFlags flags) { } TypeLibFuncAttribute(short flags)876 public TypeLibFuncAttribute(short flags) { } 877 public TypeLibFuncFlags Value { get { throw null; } } 878 } 879 [AttributeUsage(AttributeTargets.Field, Inherited = false)] 880 public sealed class TypeLibVarAttribute : Attribute 881 { TypeLibVarAttribute(TypeLibVarFlags flags)882 public TypeLibVarAttribute(TypeLibVarFlags flags) { } TypeLibVarAttribute(short flags)883 public TypeLibVarAttribute(short flags) { } 884 public TypeLibVarFlags Value { get { throw null; } } 885 } 886 [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] 887 public sealed class TypeLibVersionAttribute : Attribute 888 { TypeLibVersionAttribute(int major, int minor)889 public TypeLibVersionAttribute(int major, int minor) {} 890 public int MajorVersion { get { throw null; } } 891 public int MinorVersion { get { throw null; } } 892 } 893 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 894 [System.ObsoleteAttribute("UnknownWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")] 895 public sealed partial class UnknownWrapper 896 { UnknownWrapper(object obj)897 public UnknownWrapper(object obj) { } 898 public object WrappedObject { get { throw null; } } 899 } 900 [System.AttributeUsageAttribute((System.AttributeTargets)(4096), AllowMultiple = false, Inherited = false)] 901 public sealed partial class UnmanagedFunctionPointerAttribute : System.Attribute 902 { 903 public bool BestFitMapping; 904 public System.Runtime.InteropServices.CharSet CharSet; 905 public bool SetLastError; 906 public bool ThrowOnUnmappableChar; UnmanagedFunctionPointerAttribute(System.Runtime.InteropServices.CallingConvention callingConvention)907 public UnmanagedFunctionPointerAttribute(System.Runtime.InteropServices.CallingConvention callingConvention) { } 908 public System.Runtime.InteropServices.CallingConvention CallingConvention { get { throw null; } } 909 } 910 public enum UnmanagedType 911 { 912 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 913 [System.ObsoleteAttribute("Marshalling as AnsiBStr may be unavailable in future releases.")] 914 AnsiBStr = 35, 915 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 916 [System.ObsoleteAttribute("Marshalling arbitrary types may be unavailable in future releases. Please specify the type you wish to marshal as.")] 917 AsAny = 40, 918 Bool = 2, 919 BStr = 19, 920 ByValArray = 30, 921 ByValTStr = 23, 922 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 923 [System.ObsoleteAttribute("Marshalling as Currency may be unavailable in future releases.")] 924 Currency = 15, 925 CustomMarshaler = 44, 926 Error = 45, 927 FunctionPtr = 38, 928 HString = 47, 929 I1 = 3, 930 I2 = 5, 931 I4 = 7, 932 I8 = 9, 933 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 934 [System.ObsoleteAttribute("Marshalling as IDispatch may be unavailable in future releases.")] 935 IDispatch = 26, 936 IInspectable = 46, 937 Interface = 28, 938 IUnknown = 25, 939 LPArray = 42, 940 LPStr = 20, 941 LPStruct = 43, 942 LPTStr = 22, 943 LPWStr = 21, 944 LPUTF8Str = 48, 945 R4 = 11, 946 R8 = 12, 947 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 948 [System.ObsoleteAttribute("Marshalling as SafeArray may be unavailable in future releases.")] 949 SafeArray = 29, 950 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 951 [System.ObsoleteAttribute("Applying UnmanagedType.Struct is unnecessary when marshalling a struct. Support for UnmanagedType.Struct when marshalling a reference type may be unavailable in future releases.")] 952 Struct = 27, 953 SysInt = 31, 954 SysUInt = 32, 955 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 956 [System.ObsoleteAttribute("Marshalling as TBstr may be unavailable in future releases.")] 957 TBStr = 36, 958 U1 = 4, 959 U2 = 6, 960 U4 = 8, 961 U8 = 10, 962 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 963 [System.ObsoleteAttribute("Marshalling as VariantBool may be unavailable in future releases.")] 964 VariantBool = 37, 965 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 966 [System.ObsoleteAttribute("Marshalling as VBByRefString may be unavailable in future releases.")] 967 VBByRefStr = 34, 968 } 969 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 970 [System.ObsoleteAttribute("Marshalling VARIANTs may be unavailable in future releases.")] 971 public enum VarEnum 972 { 973 VT_ARRAY = 8192, 974 VT_BLOB = 65, 975 VT_BLOB_OBJECT = 70, 976 VT_BOOL = 11, 977 VT_BSTR = 8, 978 VT_BYREF = 16384, 979 VT_CARRAY = 28, 980 VT_CF = 71, 981 VT_CLSID = 72, 982 VT_CY = 6, 983 VT_DATE = 7, 984 VT_DECIMAL = 14, 985 VT_DISPATCH = 9, 986 VT_EMPTY = 0, 987 VT_ERROR = 10, 988 VT_FILETIME = 64, 989 VT_HRESULT = 25, 990 VT_I1 = 16, 991 VT_I2 = 2, 992 VT_I4 = 3, 993 VT_I8 = 20, 994 VT_INT = 22, 995 VT_LPSTR = 30, 996 VT_LPWSTR = 31, 997 VT_NULL = 1, 998 VT_PTR = 26, 999 VT_R4 = 4, 1000 VT_R8 = 5, 1001 VT_RECORD = 36, 1002 VT_SAFEARRAY = 27, 1003 VT_STORAGE = 67, 1004 VT_STORED_OBJECT = 69, 1005 VT_STREAM = 66, 1006 VT_STREAMED_OBJECT = 68, 1007 VT_UI1 = 17, 1008 VT_UI2 = 18, 1009 VT_UI4 = 19, 1010 VT_UI8 = 21, 1011 VT_UINT = 23, 1012 VT_UNKNOWN = 13, 1013 VT_USERDEFINED = 29, 1014 VT_VARIANT = 12, 1015 VT_VECTOR = 4096, 1016 VT_VOID = 24, 1017 } 1018 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1019 [System.ObsoleteAttribute("VariantWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")] 1020 public sealed partial class VariantWrapper 1021 { VariantWrapper(object obj)1022 public VariantWrapper(object obj) { } 1023 public object WrappedObject { get { throw null; } } 1024 } 1025 } 1026 namespace System.Runtime.InteropServices.ComTypes 1027 { 1028 public interface IDataObject 1029 { DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection)1030 int DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection); DUnadvise(int connection)1031 void DUnadvise(int connection); EnumDAdvise(out IEnumSTATDATA enumAdvise)1032 int EnumDAdvise(out IEnumSTATDATA enumAdvise); EnumFormatEtc(DATADIR direction)1033 IEnumFORMATETC EnumFormatEtc(DATADIR direction); GetCanonicalFormatEtc(ref FORMATETC formatIn, out FORMATETC formatOut)1034 int GetCanonicalFormatEtc(ref FORMATETC formatIn, out FORMATETC formatOut); GetData(ref FORMATETC format, out STGMEDIUM medium)1035 void GetData(ref FORMATETC format, out STGMEDIUM medium); GetDataHere(ref FORMATETC format, ref STGMEDIUM medium)1036 void GetDataHere(ref FORMATETC format, ref STGMEDIUM medium); QueryGetData(ref FORMATETC format)1037 int QueryGetData(ref FORMATETC format); SetData(ref FORMATETC formatIn, ref STGMEDIUM medium, bool release)1038 void SetData(ref FORMATETC formatIn, ref STGMEDIUM medium, bool release); 1039 } 1040 public interface IEnumSTATDATA 1041 { Clone(out IEnumSTATDATA newEnum)1042 void Clone(out IEnumSTATDATA newEnum); Next(int celt, STATDATA[] rgelt, int[] pceltFetched)1043 int Next(int celt, STATDATA[] rgelt, int[] pceltFetched); Reset()1044 int Reset(); Skip(int celt)1045 int Skip(int celt); 1046 } 1047 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1048 [System.FlagsAttribute] 1049 public enum ADVF 1050 { 1051 ADVF_DATAONSTOP = 64, 1052 ADVF_NODATA = 1, 1053 ADVF_ONLYONCE = 4, 1054 ADVF_PRIMEFIRST = 2, 1055 ADVFCACHE_FORCEBUILTIN = 16, 1056 ADVFCACHE_NOHANDLER = 8, 1057 ADVFCACHE_ONSAVE = 32, 1058 } 1059 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1060 [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] 1061 public partial struct BIND_OPTS 1062 { 1063 public int cbStruct; 1064 public int dwTickCountDeadline; 1065 public int grfFlags; 1066 public int grfMode; 1067 } 1068 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1069 [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)] 1070 public partial struct BINDPTR 1071 { 1072 [System.Runtime.InteropServices.FieldOffsetAttribute(0)] 1073 public System.IntPtr lpfuncdesc; 1074 [System.Runtime.InteropServices.FieldOffsetAttribute(0)] 1075 public System.IntPtr lptcomp; 1076 [System.Runtime.InteropServices.FieldOffsetAttribute(0)] 1077 public System.IntPtr lpvardesc; 1078 } 1079 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1080 public enum CALLCONV 1081 { 1082 CC_CDECL = 1, 1083 CC_MACPASCAL = 3, 1084 CC_MAX = 9, 1085 CC_MPWCDECL = 7, 1086 CC_MPWPASCAL = 8, 1087 CC_MSCPASCAL = 2, 1088 CC_PASCAL = 2, 1089 CC_RESERVED = 5, 1090 CC_STDCALL = 4, 1091 CC_SYSCALL = 6, 1092 } 1093 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1094 [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] 1095 public partial struct CONNECTDATA 1096 { 1097 public int dwCookie; 1098 public object pUnk; 1099 } 1100 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1101 public enum DATADIR 1102 { 1103 DATADIR_GET = 1, 1104 DATADIR_SET = 2, 1105 } 1106 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1107 public enum DESCKIND 1108 { 1109 DESCKIND_FUNCDESC = 1, 1110 DESCKIND_IMPLICITAPPOBJ = 4, 1111 DESCKIND_MAX = 5, 1112 DESCKIND_NONE = 0, 1113 DESCKIND_TYPECOMP = 3, 1114 DESCKIND_VARDESC = 2, 1115 } 1116 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1117 [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] 1118 public partial struct DISPPARAMS 1119 { 1120 public int cArgs; 1121 public int cNamedArgs; 1122 public System.IntPtr rgdispidNamedArgs; 1123 public System.IntPtr rgvarg; 1124 } 1125 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1126 [System.FlagsAttribute] 1127 public enum DVASPECT 1128 { 1129 DVASPECT_CONTENT = 1, 1130 DVASPECT_DOCPRINT = 8, 1131 DVASPECT_ICON = 4, 1132 DVASPECT_THUMBNAIL = 2, 1133 } 1134 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1135 [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] 1136 public partial struct ELEMDESC 1137 { 1138 public System.Runtime.InteropServices.ComTypes.ELEMDESC.DESCUNION desc; 1139 public System.Runtime.InteropServices.ComTypes.TYPEDESC tdesc; 1140 [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)] 1141 public partial struct DESCUNION 1142 { 1143 [System.Runtime.InteropServices.FieldOffsetAttribute(0)] 1144 public System.Runtime.InteropServices.ComTypes.IDLDESC idldesc; 1145 [System.Runtime.InteropServices.FieldOffsetAttribute(0)] 1146 public System.Runtime.InteropServices.ComTypes.PARAMDESC paramdesc; 1147 } 1148 } 1149 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1150 [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] 1151 public partial struct EXCEPINFO 1152 { 1153 public string bstrDescription; 1154 public string bstrHelpFile; 1155 public string bstrSource; 1156 public int dwHelpContext; 1157 public System.IntPtr pfnDeferredFillIn; 1158 public System.IntPtr pvReserved; 1159 public int scode; 1160 public short wCode; 1161 public short wReserved; 1162 } 1163 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1164 [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] 1165 public partial struct FILETIME 1166 { 1167 public int dwHighDateTime; 1168 public int dwLowDateTime; 1169 } 1170 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1171 [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] 1172 public partial struct FORMATETC 1173 { 1174 public short cfFormat; 1175 public System.Runtime.InteropServices.ComTypes.DVASPECT dwAspect; 1176 public int lindex; 1177 public System.IntPtr ptd; 1178 public System.Runtime.InteropServices.ComTypes.TYMED tymed; 1179 } 1180 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1181 [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] 1182 public partial struct FUNCDESC 1183 { 1184 public System.Runtime.InteropServices.ComTypes.CALLCONV callconv; 1185 public short cParams; 1186 public short cParamsOpt; 1187 public short cScodes; 1188 public System.Runtime.InteropServices.ComTypes.ELEMDESC elemdescFunc; 1189 public System.Runtime.InteropServices.ComTypes.FUNCKIND funckind; 1190 public System.Runtime.InteropServices.ComTypes.INVOKEKIND invkind; 1191 public System.IntPtr lprgelemdescParam; 1192 public System.IntPtr lprgscode; 1193 public int memid; 1194 public short oVft; 1195 public short wFuncFlags; 1196 } 1197 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1198 [System.FlagsAttribute] 1199 public enum FUNCFLAGS : short 1200 { 1201 FUNCFLAG_FBINDABLE = (short)4, 1202 FUNCFLAG_FDEFAULTBIND = (short)32, 1203 FUNCFLAG_FDEFAULTCOLLELEM = (short)256, 1204 FUNCFLAG_FDISPLAYBIND = (short)16, 1205 FUNCFLAG_FHIDDEN = (short)64, 1206 FUNCFLAG_FIMMEDIATEBIND = (short)4096, 1207 FUNCFLAG_FNONBROWSABLE = (short)1024, 1208 FUNCFLAG_FREPLACEABLE = (short)2048, 1209 FUNCFLAG_FREQUESTEDIT = (short)8, 1210 FUNCFLAG_FRESTRICTED = (short)1, 1211 FUNCFLAG_FSOURCE = (short)2, 1212 FUNCFLAG_FUIDEFAULT = (short)512, 1213 FUNCFLAG_FUSESGETLASTERROR = (short)128, 1214 } 1215 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1216 public enum FUNCKIND 1217 { 1218 FUNC_DISPATCH = 4, 1219 FUNC_NONVIRTUAL = 2, 1220 FUNC_PUREVIRTUAL = 1, 1221 FUNC_STATIC = 3, 1222 FUNC_VIRTUAL = 0, 1223 } 1224 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1225 [System.Runtime.InteropServices.InterfaceTypeAttribute((System.Runtime.InteropServices.ComInterfaceType)(1))] 1226 public partial interface IAdviseSink 1227 { OnClose()1228 void OnClose(); OnDataChange(ref System.Runtime.InteropServices.ComTypes.FORMATETC format, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM stgmedium)1229 void OnDataChange(ref System.Runtime.InteropServices.ComTypes.FORMATETC format, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM stgmedium); OnRename(System.Runtime.InteropServices.ComTypes.IMoniker moniker)1230 void OnRename(System.Runtime.InteropServices.ComTypes.IMoniker moniker); OnSave()1231 void OnSave(); OnViewChange(int aspect, int index)1232 void OnViewChange(int aspect, int index); 1233 } 1234 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1235 [System.Runtime.InteropServices.InterfaceTypeAttribute((System.Runtime.InteropServices.ComInterfaceType)(1))] 1236 public partial interface IBindCtx 1237 { EnumObjectParam(out System.Runtime.InteropServices.ComTypes.IEnumString ppenum)1238 void EnumObjectParam(out System.Runtime.InteropServices.ComTypes.IEnumString ppenum); GetBindOptions(ref System.Runtime.InteropServices.ComTypes.BIND_OPTS pbindopts)1239 void GetBindOptions(ref System.Runtime.InteropServices.ComTypes.BIND_OPTS pbindopts); GetObjectParam(string pszKey, out object ppunk)1240 void GetObjectParam(string pszKey, out object ppunk); GetRunningObjectTable(out System.Runtime.InteropServices.ComTypes.IRunningObjectTable pprot)1241 void GetRunningObjectTable(out System.Runtime.InteropServices.ComTypes.IRunningObjectTable pprot); RegisterObjectBound(object punk)1242 void RegisterObjectBound(object punk); RegisterObjectParam(string pszKey, object punk)1243 void RegisterObjectParam(string pszKey, object punk); ReleaseBoundObjects()1244 void ReleaseBoundObjects(); RevokeObjectBound(object punk)1245 void RevokeObjectBound(object punk); RevokeObjectParam(string pszKey)1246 int RevokeObjectParam(string pszKey); SetBindOptions(ref System.Runtime.InteropServices.ComTypes.BIND_OPTS pbindopts)1247 void SetBindOptions(ref System.Runtime.InteropServices.ComTypes.BIND_OPTS pbindopts); 1248 } 1249 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1250 [System.Runtime.InteropServices.InterfaceTypeAttribute((System.Runtime.InteropServices.ComInterfaceType)(1))] 1251 public partial interface IConnectionPoint 1252 { Advise(object pUnkSink, out int pdwCookie)1253 void Advise(object pUnkSink, out int pdwCookie); EnumConnections(out System.Runtime.InteropServices.ComTypes.IEnumConnections ppEnum)1254 void EnumConnections(out System.Runtime.InteropServices.ComTypes.IEnumConnections ppEnum); GetConnectionInterface(out System.Guid pIID)1255 void GetConnectionInterface(out System.Guid pIID); GetConnectionPointContainer(out System.Runtime.InteropServices.ComTypes.IConnectionPointContainer ppCPC)1256 void GetConnectionPointContainer(out System.Runtime.InteropServices.ComTypes.IConnectionPointContainer ppCPC); Unadvise(int dwCookie)1257 void Unadvise(int dwCookie); 1258 } 1259 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1260 [System.Runtime.InteropServices.InterfaceTypeAttribute((System.Runtime.InteropServices.ComInterfaceType)(1))] 1261 public partial interface IConnectionPointContainer 1262 { EnumConnectionPoints(out System.Runtime.InteropServices.ComTypes.IEnumConnectionPoints ppEnum)1263 void EnumConnectionPoints(out System.Runtime.InteropServices.ComTypes.IEnumConnectionPoints ppEnum); FindConnectionPoint(ref System.Guid riid, out System.Runtime.InteropServices.ComTypes.IConnectionPoint ppCP)1264 void FindConnectionPoint(ref System.Guid riid, out System.Runtime.InteropServices.ComTypes.IConnectionPoint ppCP); 1265 } 1266 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1267 [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] 1268 public partial struct IDLDESC 1269 { 1270 public System.IntPtr dwReserved; 1271 public System.Runtime.InteropServices.ComTypes.IDLFLAG wIDLFlags; 1272 } 1273 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1274 [System.FlagsAttribute] 1275 public enum IDLFLAG : short 1276 { 1277 IDLFLAG_FIN = (short)1, 1278 IDLFLAG_FLCID = (short)4, 1279 IDLFLAG_FOUT = (short)2, 1280 IDLFLAG_FRETVAL = (short)8, 1281 IDLFLAG_NONE = (short)0, 1282 } 1283 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 1284 [System.Runtime.InteropServices.InterfaceTypeAttribute((System.Runtime.InteropServices.ComInterfaceType)(1))] 1285 public partial interface IEnumConnectionPoints 1286 { Clone(out System.Runtime.InteropServices.ComTypes.IEnumConnectionPoints ppenum)1287 void Clone(out System.Runtime.InteropServices.ComTypes.IEnumConnectionPoints ppenum); Next(int celt, System.Runtime.InteropServices.ComTypes.IConnectionPoint[] rgelt, System.IntPtr pceltFetched)1288 int Next(int celt, System.Runtime.InteropServices.ComTypes.IConnectionPoint[] rgelt, System.IntPtr pceltFetched); Reset()1289