#endregion
- private static Guid IID_IManagedObject = new Guid("{C3FCC19E-A970-11D2-8B5A-00A0C9B7C9C4}");
-
CustomQueryInterfaceResult ICustomQueryInterface.GetInterface(ref Guid iid, out IntPtr ppv)
{
ppv = IntPtr.Zero;
ppv = Marshal.GetComInterfaceForObject(this, typeof(IDispatch), CustomQueryInterfaceMode.Ignore);
return CustomQueryInterfaceResult.Handled;
}
- else if (iid == IID_IManagedObject)
- {
- return CustomQueryInterfaceResult.Failed;
- }
return CustomQueryInterfaceResult.NotHandled;
}
public static partial class Marshal
{
#if FEATURE_COMINTEROP
- internal static Guid IID_IUnknown = new Guid("00000000-0000-0000-C000-000000000046");
+ /// <summary>
+ /// IUnknown is {00000000-0000-0000-C000-000000000046}
+ /// </summary>
+ internal static Guid IID_IUnknown = new Guid(0, 0, 0, 0xC0, 0, 0, 0, 0, 0, 0, 0x46);
#endif //FEATURE_COMINTEROP
private const int LMEM_FIXED = 0;