# HG changeset patch # User moel.mich # Date 1266872089 0 # Node ID cffcbf8a1401c70844a7e48b86876c5a2354a48d # Parent 0e62c377c08c3fd9c34a2d2c7ae7564b40cebb95 NVAPI interop struct packing improved. diff -r 0e62c377c08c -r cffcbf8a1401 Hardware/Nvidia/NVAPI.cs --- a/Hardware/Nvidia/NVAPI.cs Mon Feb 22 09:57:02 2010 +0000 +++ b/Hardware/Nvidia/NVAPI.cs Mon Feb 22 20:54:49 2010 +0000 @@ -122,7 +122,7 @@ UNKNOWN = -1 }; - [StructLayout(LayoutKind.Sequential, Pack = 1)] + [StructLayout(LayoutKind.Sequential, Pack = 8)] public struct NvSensor { public NvThermalController Controller; public int DefaultMinTemp; @@ -131,7 +131,7 @@ public NvThermalTarget Target; } - [StructLayout(LayoutKind.Sequential, Pack = 1)] + [StructLayout(LayoutKind.Sequential, Pack = 8)] public struct NvGPUThermalSettings { public int Version; public int Count; @@ -140,14 +140,14 @@ public NvSensor[] Sensor; } - [StructLayout(LayoutKind.Sequential, Pack = 1)] + [StructLayout(LayoutKind.Sequential)] public struct NvDisplayHandle { - private int handle; + private IntPtr ptr; } - [StructLayout(LayoutKind.Sequential, Pack = 1)] + [StructLayout(LayoutKind.Sequential)] public struct NvPhysicalGpuHandle { - private int handle; + private IntPtr ptr; } public class NVAPI { diff -r 0e62c377c08c -r cffcbf8a1401 Properties/AssemblyInfo.cs --- a/Properties/AssemblyInfo.cs Mon Feb 22 09:57:02 2010 +0000 +++ b/Properties/AssemblyInfo.cs Mon Feb 22 20:54:49 2010 +0000 @@ -69,5 +69,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.1.23.1")] -[assembly: AssemblyFileVersion("0.1.23.1")] +[assembly: AssemblyVersion("0.1.23.2")] +[assembly: AssemblyFileVersion("0.1.23.2")]