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

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

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

            return(r);
        }