Ejemplo n.º 1
0
 unsafe static extern System.Int32 FilterConnectCommunicationPort
 (
     [MarshalAs(UnmanagedType.LPWStr)] System.String lpPortName,
     System.UInt32 dwOptions,
     System.IntPtr lpContext,
     System.UInt16 dwSizeOfContext,
     SECURITY_ATTRIBUTES *lpSecurityAttributes,
     System.IntPtr *hPort
 );
 public unsafe static Il2CppSystem.Type GetIl2CppTypeSafe(this object that)
 {
     if (that is Il2CppObjectBase obj)
     {
         UnhollowerBaseLib.IL2CPP.Il2CppObjectBaseToPtrNotNull(obj);
         System.IntPtr *param  = null;
         System.IntPtr  exc    = IntPtr.Zero;
         System.IntPtr  intPtr = UnhollowerBaseLib.IL2CPP.il2cpp_runtime_invoke(
             GetIl2CppType,
             UnhollowerBaseLib.IL2CPP.Il2CppObjectBaseToPtrNotNull(obj),
             (void **)param,
             ref exc);
         Il2CppException.RaiseExceptionIfNecessary(exc);
         return(intPtr != IntPtr.Zero ? new Il2CppSystem.Type(intPtr) : null);
     }
     return(null);
 }