4 Replies Latest reply on Oct 16, 2018 5:27 AM by dipak

    ADL C# ADL2_Overdrive6_StateInfo_Get

    hego555

      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;
      }