<Member Name="FinalReleaseComObject(System.Object)" />
<Member Name="FreeHGlobal(System.IntPtr)" />
<Member Name="FreeCoTaskMem(System.IntPtr)" />
+ <Member Name="GenerateGuidForType(System.Type)" />
+ <Member Name="GenerateProgIdForType(System.Type)" />
<Member Name="GetComInterfaceForObject(System.Object,System.Type)" />
<Member Name="GetComInterfaceForObject(System.Object,System.Type,System.Runtime.InteropServices.CustomQueryInterfaceMode)" />
+ <Member Name="GetComObjectData(System.Object,System.Object)" />
<Member Name="GetDelegateForFunctionPointer(System.IntPtr,System.Type)" />
<Member Name="GetExceptionForHR(System.Int32)" />
<Member Name="GetExceptionForHR(System.Int32,System.IntPtr)" />
<Member Name="GetFunctionPointerForDelegate(System.Delegate)" />
<Member Name="GetHRForException(System.Exception)" />
+ <Member Name="GetHINSTANCE(System.Reflection.Module)" />
+ <Member Name="GetIDispatchForObject(System.Object)" />
<Member Name="GetIUnknownForObject(System.Object)" />
<Member Name="GetLastWin32Error" />
<Member Name="GetHRForLastWin32Error" />
<Member Name="ReadIntPtr(System.IntPtr,System.Int32)" />
<Member Name="Release(System.IntPtr)" />
<Member Name="ReleaseComObject(System.Object)" />
+ <Member Name="SetComObjectData(System.Object,System.Object,System.Object)" />
<Member Name="SetLastWin32Error(System.Int32)" />
<Member Name="SizeOf(System.Object)" />
<Member Name="SizeOf(System.Type)" />
<Member Name="StructureToPtr(System.Object,System.IntPtr,System.Boolean)" />
<Member Name="ThrowExceptionForHR(System.Int32)" />
<Member Name="ThrowExceptionForHR(System.Int32,System.IntPtr)" />
+ <Member Name="GetTypedObjectForIUnknown(System.IntPtr,System.Type)" />
<Member Name="UnsafeAddrOfPinnedArrayElement(System.Array,System.Int32)" />
<Member Name="WriteByte(System.IntPtr,System.Byte)" />
<Member Name="WriteByte(System.IntPtr,System.Int32,System.Byte)" />
[System.Security.SecurityCriticalAttribute]
public static void FreeHGlobal(System.IntPtr hglobal) { }
[System.Security.SecurityCriticalAttribute]
+ public static Guid GenerateGuidForType(System.Type type) { throw null; }
+ [System.Security.SecurityCritical]
+ public static string GenerateProgIdForType(System.Type type) { throw null; }
+ [System.Security.SecurityCriticalAttribute]
public static System.IntPtr GetComInterfaceForObject(object o, System.Type T) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static System.IntPtr GetComInterfaceForObject(object o, System.Type T, System.Runtime.InteropServices.CustomQueryInterfaceMode mode) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static System.IntPtr GetComInterfaceForObject<T, TInterface>(T o) { throw null; }
+ [System.Security.SecurityCritical]
+ public static object GetComObjectData(object obj, object key) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static System.Delegate GetDelegateForFunctionPointer(System.IntPtr ptr, System.Type t) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static System.IntPtr GetFunctionPointerForDelegate(System.Delegate d) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static System.IntPtr GetFunctionPointerForDelegate<TDelegate>(TDelegate d) { throw null; }
+ [System.Security.SecurityCritical]
+ public static System.IntPtr GetHINSTANCE(System.Reflection.Module m) { throw null; }
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.Security.SecurityCriticalAttribute]
public static int GetHRForException(System.Exception e) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static int GetHRForLastWin32Error() { throw null; }
+ [System.Security.SecurityCritical]
+ public static System.IntPtr GetIDispatchForObject(object o) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static System.IntPtr GetIUnknownForObject(object o) { throw null; }
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.Security.SecurityCriticalAttribute]
public static T[] GetObjectsForNativeVariants<T>(System.IntPtr aSrcNativeVariant, int cVars) { throw null; }
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.Security.SecurityCriticalAttribute]
public static int GetStartComSlot(System.Type t) { throw null; }
+ [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.Security.SecurityCritical]
+ public static object GetTypedObjectForIUnknown(System.IntPtr pUnk, System.Type t) { throw null; }
public static System.Type GetTypeFromCLSID(System.Guid clsid) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static string GetTypeInfoName(System.Runtime.InteropServices.ComTypes.ITypeInfo typeInfo) { throw null; }
public static string PtrToStringAnsi(System.IntPtr ptr) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static string PtrToStringAnsi(System.IntPtr ptr, int len) { throw null; }
+ [System.Security.SecurityCritical]
+ public static string PtrToStringAuto(System.IntPtr ptr) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static string PtrToStringBSTR(System.IntPtr ptr) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static int Release(System.IntPtr pUnk) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static int ReleaseComObject(object o) { throw null; }
+ [System.Security.SecurityCritical]
+ public static bool SetComObjectData(object obj, object key, object data) { throw null; }
[System.Runtime.InteropServices.ComVisibleAttribute(true)]
public static int SizeOf(object structure) { throw null; }
public static int SizeOf(System.Type t) { throw null; }
public static System.IntPtr StringToBSTR(string s) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static System.IntPtr StringToCoTaskMemAnsi(string s) { throw null; }
+ [System.Security.SecurityCritical]
+ public static System.IntPtr StringToCoTaskMemAuto(string s) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static System.IntPtr StringToCoTaskMemUni(string s) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static System.IntPtr StringToCoTaskMemUTF8(string s) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static System.IntPtr StringToHGlobalAnsi(string s) { throw null; }
+ [System.Security.SecurityCritical]
+ public static System.IntPtr StringToHGlobalAuto(string s) { throw null; }
[System.Security.SecurityCriticalAttribute]
public static System.IntPtr StringToHGlobalUni(string s) { throw null; }
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.Runtime.InteropServices.ComVisibleAttribute(true)]
DestroyStructure(ptr, typeof(T));
}
+#if FEATURE_COMINTEROP
//====================================================================
// Returns the HInstance for this module. Returns -1 if the module
// doesn't have an HInstance. In Memory (Dynamic) Modules won't have
[DllImport(JitHelpers.QCall, CharSet = CharSet.Unicode), SuppressUnmanagedCodeSecurity]
private extern static IntPtr GetHINSTANCE(RuntimeModule m);
+#endif // FEATURE_COMINTEROP
//====================================================================
// Throws a CLR exception based on the HRESULT.
//====================================================================
//====================================================================
[MethodImplAttribute(MethodImplOptions.InternalCall)]
internal static extern IntPtr /* IUnknown* */ GetRawIUnknownForComObjectNoAddRef(Object o);
+#endif // FEATURE_COMINTEROP
//====================================================================
// return the IDispatch* for an Object
[System.Security.SecurityCritical] // auto-generated_required
public static IntPtr /* IDispatch */ GetIDispatchForObject(Object o)
{
+#if FEATURE_CORECLR
+ throw new PlatformNotSupportedException();
+#else
return GetIDispatchForObjectNative(o, false);
+#endif // FEATURE_CORECLR
}
-
+
+#if FEATURE_COMINTEROP
//====================================================================
// return the IDispatch* for an Object if the current context
// is the one where the RCW was first seen. Will return null
[MethodImplAttribute(MethodImplOptions.InternalCall)]
internal static extern void InternalFinalReleaseComObject(Object o);
+#endif // FEATURE_COMINTEROP
//====================================================================
// This method retrieves data from the COM object.
[System.Security.SecurityCritical] // auto-generated_required
public static Object GetComObjectData(Object obj, Object key)
{
+#if FEATURE_CORECLR
+ throw new PlatformNotSupportedException();
+#else
// Validate that the arguments aren't null.
if (obj == null)
throw new ArgumentNullException("obj");
// Retrieve the data from the __ComObject.
return comObj.GetData(key);
+#endif // FEATURE_CORECLR
}
//====================================================================
[System.Security.SecurityCritical] // auto-generated_required
public static bool SetComObjectData(Object obj, Object key, Object data)
{
+#if FEATURE_CORECLR
+ throw new PlatformNotSupportedException();
+#else
// Validate that the arguments aren't null. The data can validly be null.
if (obj == null)
throw new ArgumentNullException("obj");
// Retrieve the data from the __ComObject.
return comObj.SetData(key, data);
+#endif // FEATURE_CORECLR
}
+#if FEATURE_COMINTEROP
//====================================================================
// This method takes the given COM object and wraps it in an object
// of the specified type. The type must be derived from __ComObject.
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern int InternalGetComSlotForMethodInfo(IRuntimeMethodInfo m);
+#endif // FEATURE_COMINTEROP
//====================================================================
// This method generates a GUID for the specified type. If the type
[System.Security.SecurityCritical] // auto-generated_required
public static Guid GenerateGuidForType(Type type)
{
+#if FEATURE_CORECLR
+ throw new PlatformNotSupportedException();
+ }
+#else
Guid result = new Guid ();
FCallGenerateGuidForType (ref result, type);
return result;
// The full assembly name is used to compute the GUID, so this should be SxS-safe
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern void FCallGenerateGuidForType(ref Guid result, Type type);
+#endif // FEATURE_CORECLR
//====================================================================
// This method generates a PROGID for the specified type. If the type
[System.Security.SecurityCritical] // auto-generated_required
public static String GenerateProgIdForType(Type type)
{
+#if FEATURE_CORECLR
+ throw new PlatformNotSupportedException();
+#else
if (type == null)
throw new ArgumentNullException("type");
if (type.IsImport)
// If there is no prog ID attribute then use the full name of the type as the prog id.
return type.FullName;
+#endif // FEATURE_CORECLR
}
+#if FEATURE_COMINTEROP
//====================================================================
// This method binds to the specified moniker.
//====================================================================
{
throw new PlatformNotSupportedException();
}
+
+ [System.Security.SecurityCriticalAttribute]
+ public static Object GetTypedObjectForIUnknown(System.IntPtr pUnk, System.Type t)
+ {
+ throw new PlatformNotSupportedException();
+ }
+
+ [System.Security.SecurityCritical] // auto-generated_required
+ public static System.IntPtr GetHINSTANCE(System.Reflection.Module m)
+ {
+ return (System.IntPtr) (-1);
+ }
[System.Security.SecurityCriticalAttribute]
public static System.IntPtr CreateAggregatedObject<T>(System.IntPtr pOuter, T o)
FCFuncElement("DestroyStructure", MarshalNative::DestroyStructure)
FCFuncElement("UnsafeAddrOfPinnedArrayElement", MarshalNative::FCUnsafeAddrOfPinnedArrayElement)
FCFuncElement("GetExceptionCode", ExceptionNative::GetExceptionCode)
+ QCFuncElement("GetHINSTANCE", COMModule::GetHINSTANCE)
#ifndef FEATURE_CORECLR
QCFuncElement("InternalNumParamBytes", MarshalNative::NumParamBytes)
FCFuncElement("GetExceptionPointers", ExceptionNative::GetExceptionPointers)
- QCFuncElement("GetHINSTANCE", COMModule::GetHINSTANCE)
FCFuncElement("GetUnmanagedThunkForManagedMethodPtr", MarshalNative::GetUnmanagedThunkForManagedMethodPtr)
FCFuncElement("GetManagedThunkForUnmanagedMethodPtr", MarshalNative::GetManagedThunkForUnmanagedMethodPtr)
FCFuncElement("InternalGetThreadFromFiberCookie", MarshalNative::GetThreadFromFiberCookie)
FCFuncElement("InternalReleaseComObject", MarshalNative::ReleaseComObject)
FCFuncElement("Release", MarshalNative::Release)
FCFuncElement("InitializeWrapperForWinRT", MarshalNative::InitializeWrapperForWinRT)
+ FCFuncElement("GetTypedObjectForIUnknown", MarshalNative::GetTypedObjectForIUnknown)
#ifndef FEATURE_CORECLR
FCFuncElement("GetLoadedTypeForGUID", MarshalNative::GetLoadedTypeForGUID)
FCFuncElement("GetITypeInfoForType", MarshalNative::GetITypeInfoForType)
- FCFuncElement("GetTypedObjectForIUnknown", MarshalNative::GetTypedObjectForIUnknown)
FCFuncElement("CleanupUnusedObjectsInCurrentContext", MarshalNative::CleanupUnusedObjectsInCurrentContext)
FCFuncElement("IsTypeVisibleFromCom", MarshalNative::IsTypeVisibleFromCom)
FCFuncElement("FCallGenerateGuidForType", MarshalNative::DoGenerateGuidForType)