Closed 3F closed 7 years ago
I added variant through new IExVar (plans for v1.3):
l.ExVar.get<UInt32>("ADDR_SPEC"); // 0x00001CE8
l.ExVar.getField(typeof(UInt32).NativeSize(), "ADDR_SPEC"); // Native.Core.Field via raw size
l.Svc.native("lpProcName"); // Raw access via NativeData & Native.Core !
For old versions you can also use exported variables, but only via Provider or ConariL frontend + your custom wrapper:
class MyConari: ConariL
{
public MyConari(string lib, string prefix = null)
: base((Config)lib, prefix)
{ }
// ... now you can get pointer via IProvider/IBinder and use NativeData, etc.
}
+DLR:
((dynamic)l.ExVar).ADDR_SPEC
l.ExVar.DLR.ADDR_SPEC
l.ExVar.DLR.ADDR_SPEC<UInt32>()
https://github.com/3F/DllExport/issues/24
Something like:
anyway, do not use
l.DLR
node