NVAPI interop struct packing improved.
1.1 --- a/Hardware/Nvidia/NVAPI.cs Mon Feb 22 09:57:02 2010 +0000
1.2 +++ b/Hardware/Nvidia/NVAPI.cs Mon Feb 22 20:54:49 2010 +0000
1.3 @@ -122,7 +122,7 @@
1.4 UNKNOWN = -1
1.5 };
1.6
1.7 - [StructLayout(LayoutKind.Sequential, Pack = 1)]
1.8 + [StructLayout(LayoutKind.Sequential, Pack = 8)]
1.9 public struct NvSensor {
1.10 public NvThermalController Controller;
1.11 public int DefaultMinTemp;
1.12 @@ -131,7 +131,7 @@
1.13 public NvThermalTarget Target;
1.14 }
1.15
1.16 - [StructLayout(LayoutKind.Sequential, Pack = 1)]
1.17 + [StructLayout(LayoutKind.Sequential, Pack = 8)]
1.18 public struct NvGPUThermalSettings {
1.19 public int Version;
1.20 public int Count;
1.21 @@ -140,14 +140,14 @@
1.22 public NvSensor[] Sensor;
1.23 }
1.24
1.25 - [StructLayout(LayoutKind.Sequential, Pack = 1)]
1.26 + [StructLayout(LayoutKind.Sequential)]
1.27 public struct NvDisplayHandle {
1.28 - private int handle;
1.29 + private IntPtr ptr;
1.30 }
1.31
1.32 - [StructLayout(LayoutKind.Sequential, Pack = 1)]
1.33 + [StructLayout(LayoutKind.Sequential)]
1.34 public struct NvPhysicalGpuHandle {
1.35 - private int handle;
1.36 + private IntPtr ptr;
1.37 }
1.38
1.39 public class NVAPI {
2.1 --- a/Properties/AssemblyInfo.cs Mon Feb 22 09:57:02 2010 +0000
2.2 +++ b/Properties/AssemblyInfo.cs Mon Feb 22 20:54:49 2010 +0000
2.3 @@ -69,5 +69,5 @@
2.4 // You can specify all the values or you can default the Build and Revision Numbers
2.5 // by using the '*' as shown below:
2.6 // [assembly: AssemblyVersion("1.0.*")]
2.7 -[assembly: AssemblyVersion("0.1.23.1")]
2.8 -[assembly: AssemblyFileVersion("0.1.23.1")]
2.9 +[assembly: AssemblyVersion("0.1.23.2")]
2.10 +[assembly: AssemblyFileVersion("0.1.23.2")]