AnsweredAssumed Answered

ADL C# ADL2_Overdrive6_StateInfo_Get

Question asked by hego555 on Oct 14, 2018
Latest reply on Oct 16, 2018 by dipak

No matter why I tried I keep getting ADL_ERR_INVALID_PARAM_SIZE

 

These are the relevant structs I have

 

[StructLayout(LayoutKind.Sequential)]
internal struct PerformanceLevel
{
      public int iEngineClock;
      public int iMemoryClock;
}

 

[StructLayout(LayoutKind.Sequential)]
internal struct StateInfo
{
      public int NumberOfPerformanceLevels;
      public int ExtValue;
      public int ExtMask;
      [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1)]
      public PerformanceLevel[] aLevels;
}

Outcomes