Initial project state: .NET reference, design, Rust port (M0+M1), evidence
rust / build / test / clippy / fmt (push) Has been cancelled
rust / build / test / clippy / fmt (push) Has been cancelled
Layout:
- src/ .NET 10 x64 reference: MxNativeCodec, MxNativeClient,
MxAsbClient, probes, tests, harnesses. Executable spec.
- design/ Architectural plan for the Rust port (M0–M6), error
model, protocol invariants, risks (R1–R16), adversarial
review log (review.md).
- rust/ Rust workspace. M0 skeleton + M1 codec parity.
mxaccess-codec: 215 unit tests + 2 cross-implementation
parity tests (byte-identical against .NET reference).
Other crates are M0 stubs awaiting M2+.
- captures/ Frida + netsh + pcap evidence per CLAUDE.md
("captures are evidence, not throwaway logs").
- analysis/ Decompiled C# (frida/proxy/decompiled-*),
Ghidra exports for native DLLs (`exports/` only —
working state at `projects/` and AVEVA's input
binaries at `input/` are gitignored).
- docs/ Reverse-engineering reference docs.
- tools/ Setup-LiveProbeEnv.ps1 (Infisical credential fetcher),
Compute-Crc.ps1 (.NET parity helper).
- .github/workflows/ Rust CI: fmt + build + test + clippy on Windows.
- LICENSE MIT (Joseph Doherty, 2026).
Verified:
- cargo test --workspace → 217 passed (215 unit + 2 .NET parity), 0 failed
- cargo clippy --workspace -- -D warnings → clean
- cargo fmt --all -- --check → clean
- cargo publish --dry-run -p mxaccess-codec → packages cleanly
Excluded from history (see .gitignore):
- **/bin, **/obj, **/target — build artifacts
- analysis/ghidra/projects/ — Ghidra working state (regenerable)
- analysis/ghidra/input/ — AVEVA proprietary DLLs (vendor IP)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Interop.NmxAdptr;
|
||||
|
||||
[ComImport]
|
||||
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
||||
[Guid("95EBDC41-C2F7-48AA-B0A0-B3577E165905")]
|
||||
public interface IMxSystemConnection3 : IMxSystemConnection2
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
new int SystemRegisterReference([In][MarshalAs(UnmanagedType.Interface)] MxReference pMxReference, [In] bool subscribe);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
new void SystemUnregisterReference([In] int hRef);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
[return: MarshalAs(UnmanagedType.Interface)]
|
||||
new MxValue SystemGetAttribute([In] int hRef, out short pMxDataQuality, out MxStatus pMxStatus, [MarshalAs(UnmanagedType.BStr)] out string pStatusDescription);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
[return: MarshalAs(UnmanagedType.Interface)]
|
||||
new MxValue SystemGetAttributeBlocking([In] int hRef, out short pMxDataQuality, out MxStatus pMxStatus, [MarshalAs(UnmanagedType.BStr)] out string pStatusDescription);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
new void SystemSetAttribute([In] int hRef, [In][MarshalAs(UnmanagedType.Interface)] MxValue pMxValueIn, [In][MarshalAs(UnmanagedType.Interface)] IMxCallback pMxCallback);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
new void SystemSetAttributeGuaranteed([In] int hRef, [In][MarshalAs(UnmanagedType.Interface)] MxValue pMxValue);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
[return: MarshalAs(UnmanagedType.Interface)]
|
||||
new MxValue SystemSetAttributeBlocking([In] int hRef, [In][MarshalAs(UnmanagedType.Interface)] MxValue pMxValueIn, out MxStatus pMxStatus, [MarshalAs(UnmanagedType.BStr)] out string pStatusDescription);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
[return: MarshalAs(UnmanagedType.BStr)]
|
||||
new string SystemGetQualityDescription([In] ref short mxDataQuality);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
new void SystemSetResponse([In] int callbackId, [In] ref MxStatus pMxStatus);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
new void SystemSetAttribute2([In] int hRef, [In][MarshalAs(UnmanagedType.Interface)] MxValue pMxValueIn, [In][MarshalAs(UnmanagedType.Interface)] IMxCallback pMxCallback, [In] byte msgPriority);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
[return: MarshalAs(UnmanagedType.Interface)]
|
||||
MxValue SystemGetAttribute3([In] int hRef, out short pMxDataQuality, out _FILETIME pMxTime, out MxStatus pMxStatus, [MarshalAs(UnmanagedType.BStr)] out string pStatusDescription);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
void SystemSetAttribute3([In] int hRef, [In][MarshalAs(UnmanagedType.Interface)] MxValue pMxValueIn, [In] short Quality, [In] _FILETIME Timestamp, [In][MarshalAs(UnmanagedType.Interface)] IMxCallback pMxCallback, [In] byte msgPriority = 0);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
[return: MarshalAs(UnmanagedType.Interface)]
|
||||
MxValue SystemGetAttributeBlocking3([In] int hRef, out short pMxDataQuality, out _FILETIME pMxTime, out MxStatus pMxStatus, [MarshalAs(UnmanagedType.BStr)] out string pStatusDescription);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
void SystemSetAttributeGuaranteed3([In] int hRef, [In][MarshalAs(UnmanagedType.Interface)] MxValue pMxValue, [In] short Quality, [In] _FILETIME Timestamp);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
[return: MarshalAs(UnmanagedType.Interface)]
|
||||
MxValue SystemSetAttributeBlocking3([In] int hRef, [In][MarshalAs(UnmanagedType.Interface)] MxValue pMxValueIn, [In] short QualityIn, [In] _FILETIME TimestampIn, out MxStatus pMxStatus, [MarshalAs(UnmanagedType.BStr)] out string pStatusDescription, out short pMxDataQualityOut, out _FILETIME pMxTimeOut);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
||||
void SystemGetAttributesSupportedProperties([In] int hRef, out int SupportedProperties, out MxStatus pMxStatus);
|
||||
}
|
||||
Reference in New Issue
Block a user