English 中文(简体)
无支持的MONO使用UNITY3D 和MATLAB MUARRAY“系统安全.特等.WindowsIdentity.GetCurrent(bool)” DLL
原标题:unsupported MONO function " System.Security.Principal.WindowsIdentity.GetCurrent(bool)" using UNITY3D and MATLAB s MWARRAY.DLL

the problem starts with a function call to a mono function that is not supported yet. the call is made from a close matlab DLL called MWARRAY.DLL (.net version 2.x), this dll is normally used with VS .NET and is working if you use .net 3.5.

该职能是:[scorlib]System. Security. Principal.WindowsIdentity:GetCurrent(bool)

我可以想到几个可能的解决办法,但我不敢肯定如何做到:

  1. decompile dll and replace byte code with a similar and working function: [mscorlib]System.Security.Principal.WindowsIdentity::GetCurrent() notice that there is no boolean passed to the function
  2. compile mono and write the function myself
  3. using an old version of MWARRAY.DLL (couldnt find, but might still use the same code)

for the decompilation i used IDA. i found the location where there is a call to the first function, CIL + HEX below

loc_38B1:    
ldsfld  native     
int [mscorlib]System.IntPtr::Zero   
stloc.s 7    
ldc.i4.0
stloc.s 8
ldc.i4.1
stloc.s 9
ldc.i4.1
call    class [mscorlib]System.Security.Principal.WindowsIdentity::GetCurrent(bool)
stloc.s 0xA
call    void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::PrepareConstrainedRegions()
  .try {
ldc.i4.0
stloc.s 0xB
br      loc_3982

<>呼唤和中型指挥的HEX:

28 96 00 00 0A 

i还汇编和编篡了我自己的批号,要求这两个职能都看看其他指挥如何按代号看:

loc_3AE:
call    class [mscorlib]System.Security.Principal.WindowsIdentity [mscorlib]System.Security.Principal.WindowsIdentity::GetCurrent()
callvirt class System.String [mscorlib]System.Security.Principal.WindowsIdentity::get_Name()
stloc.s 8
ldc.i4.1

http://www.un.org/Depts/DGACM/index_french.htm

28  00 00 0A 6F 1B 00 00 0A  13 08 17

i 想知道是否有任何人对拟议解决办法有想法,或者可能想到什么东西?

最佳回答

这个问题已经解决。

利用蚊帐反射器提取 m。 dll 有可能从视力室内部改写。

在MCR(MCR)第330条左右,有人呼吁加入。 改为:

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签