fe2a6db786
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>
103 lines
5.9 KiB
C#
103 lines
5.9 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Interop.NmxAdptr;
|
|
|
|
[ComImport]
|
|
[Guid("361A8B77-C77A-4A70-B220-FB502D6F847E")]
|
|
[ComConversionLoss]
|
|
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
|
public interface IPlatformInformationClerk2 : IPlatformInformationClerk
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void GetPlatformIdentity([In] int platformId, out tagPlatformRegistrationInformation pPlatformIdentity);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void GetPlatformIdentityFromPlatformName([In][MarshalAs(UnmanagedType.LPWStr)] string pPlatformName, out tagPlatformRegistrationInformation pPlatformIdentity);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void SetPlatformIdentity([In] int platformId, [In] ref tagPlatformRegistrationInformation pPlatformIdentity);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void GetOwnPlatformId(out int platformId);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void GetPlatformServicesNames([In] int maxIn, out int serviceCount, [MarshalAs(UnmanagedType.BStr)] out string names, [MarshalAs(UnmanagedType.BStr)] out string options);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void SetPlatformServicesNames([In][MarshalAs(UnmanagedType.BStr)] string names, [In][MarshalAs(UnmanagedType.BStr)] string options);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void AppendPlatformServicesNames([In][MarshalAs(UnmanagedType.BStr)] string names, [In][MarshalAs(UnmanagedType.BStr)] string options);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void GetPlatformEngineName([MarshalAs(UnmanagedType.BStr)] out string pVendorName, [MarshalAs(UnmanagedType.BStr)] out string pFileName, [MarshalAs(UnmanagedType.BStr)] out string pStartupOptions, [MarshalAs(UnmanagedType.BStr)] out string pConfigOptions);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void SetPlatformEngineName([In][MarshalAs(UnmanagedType.LPWStr)] string pVendorName, [In][MarshalAs(UnmanagedType.LPWStr)] string pFileName, [In][MarshalAs(UnmanagedType.LPWStr)] string pStartupOptions, [In][MarshalAs(UnmanagedType.LPWStr)] string pConfigOptions);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void CreateFilePath([In][MarshalAs(UnmanagedType.LPWStr)] string pVendorName, [In][MarshalAs(UnmanagedType.LPWStr)] string pFileName, [MarshalAs(UnmanagedType.BStr)] out string pbstrFilePath);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void UnregisterClusterInformation();
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void RegisterClusterInformation([In] tagClusterRegistrationInformation clusterRegInfo);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void GetClusterInformation(out tagClusterRegistrationInformation pClusterInformation);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void ResetPlatformList(out int numPlatforms);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void GetNextPlatform(out int pId);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void GetPlatformList(out int plTotalPlatforms, [Out] IntPtr ppPlatformList);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void DeletePlatformIdentity([In] int platformId);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void GetStartupState(out tagPlatformStartupSetting pStartupState);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void SetStartupState([In] tagPlatformStartupSetting startupState);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void GetPlatformRegister(out int pPlatformId);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void SetPlatformRegister([In] int platformId);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void DeletePlatformInfo();
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void DeleteObjectRuntimeInfo();
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void DeletePlatformList();
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void SetCmdStartOptions([In][MarshalAs(UnmanagedType.LPWStr)] string szCmdOption);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
new void GetCmdStartOptions([MarshalAs(UnmanagedType.BStr)] out string pszCmdOption);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
void SetPlatformIdentity2([In] int platformId, [In] ref tagPlatformRegistrationInformation2 pPlatformIdentity);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
void GetPlatformIdentity2([In] int platformId, out tagPlatformRegistrationInformation2 pPlatformIdentity);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
void GetPlatformIdentityFromPlatformName2([In][MarshalAs(UnmanagedType.LPWStr)] string pPlatformName, out tagPlatformRegistrationInformation2 pPlatformIdentity);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
void GetPlatformList2(out int plTotalPlatforms, [Out] IntPtr ppPlatformList);
|
|
}
|