using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Interop.NmxAdptr; [ComImport] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [Guid("04C4A1E4-4541-11D3-87EC-00A0C982C01C")] public interface IBootstrapRegistryAccess { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void GetRootKey([MarshalAs(UnmanagedType.BStr)] out string pbstrRootpath); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void GetObjectRuntimeFilepath([In][MarshalAs(UnmanagedType.LPWStr)] string szObjectName, [In][MarshalAs(UnmanagedType.LPWStr)] string szIndex, [MarshalAs(UnmanagedType.BStr)] out string pbstrPathname); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] void SetObjectRuntimeFilepath([In][MarshalAs(UnmanagedType.LPWStr)] string szObjectName, [In][MarshalAs(UnmanagedType.LPWStr)] string szIndex, [In][MarshalAs(UnmanagedType.LPWStr)] string szPathname); }