예제 #1
0
        public static FanCoolersInfoEntry Create()
        {
            var r = new FanCoolersInfoEntry {
                Reserved = new NvU32[8]
            };

            return(r);
        }
예제 #2
0
        public static PrivateFanCoolersInfoV1 Create()
        {
            var r = new PrivateFanCoolersInfoV1 {
                version  = (uint)(NvapiConst.VERSION1 | (Marshal.SizeOf(typeof(PrivateFanCoolersInfoV1)))),
                Reserved = new NvU32[8],
                FanCoolersInfoEntries = new FanCoolersInfoEntry[NvapiConst.MaxNumberOfFanCoolerInfoEntries]
            };

            for (int i = 0; i < r.FanCoolersInfoEntries.Length; i++)
            {
                r.FanCoolersInfoEntries[i] = FanCoolersInfoEntry.Create();
            }

            return(r);
        }