/// <summary> /// Sets the fields of the object from a NATIVE_THREADSTATS struct. /// </summary> /// <param name="value"> /// The native threadstats to set the values from. /// </param> internal void SetFromNativeThreadstats(NATIVE_THREADSTATS value) { this.cPageReferenced = checked ((int)value.cPageReferenced); this.cPageRead = checked ((int)value.cPageRead); this.cPagePreread = checked ((int)value.cPagePreread); this.cPageDirtied = checked ((int)value.cPageDirtied); this.cPageRedirtied = checked ((int)value.cPageRedirtied); this.cLogRecord = checked ((int)value.cLogRecord); this.cbLogRecord = checked ((int)value.cbLogRecord); }
public void Setup() { this.native = new NATIVE_THREADSTATS { cPageReferenced = 1, cPageRead = 2, cPagePreread = 3, cPageDirtied = 4, cPageRedirtied = 5, cLogRecord = 6, cbLogRecord = 7, }; this.managed = new JET_THREADSTATS(); this.managed.SetFromNativeThreadstats(this.native); }
/// <summary> /// Sets the fields of the object from a NATIVE_THREADSTATS struct. /// </summary> /// <param name="value"> /// The native threadstats to set the values from. /// </param> internal void SetFromNativeThreadstats(NATIVE_THREADSTATS value) { this.cPageReferenced = checked((int)value.cPageReferenced); this.cPageRead = checked((int)value.cPageRead); this.cPagePreread = checked((int)value.cPagePreread); this.cPageDirtied = checked((int)value.cPageDirtied); this.cPageRedirtied = checked((int)value.cPageRedirtied); this.cLogRecord = checked((int)value.cLogRecord); this.cbLogRecord = checked((int)value.cbLogRecord); }
public static extern int JetGetThreadStats(out NATIVE_THREADSTATS pvResult, uint cbMax);