/// <summary> /// Creates a new ACM Driver object /// </summary> /// <param name="hAcmDriver">Driver handle</param> private AcmDriver(IntPtr hAcmDriver) { driverId = hAcmDriver; details = new AcmDriverDetails(); details.structureSize = System.Runtime.InteropServices.Marshal.SizeOf(details); MmException.Try(AcmInterop.acmDriverDetails(hAcmDriver, ref details, 0), "acmDriverDetails"); }
private AcmDriver(IntPtr hAcmDriver) { this.driverId = hAcmDriver; this.details = default(AcmDriverDetails); this.details.structureSize = Marshal.SizeOf(this.details); MmException.Try(AcmInterop.acmDriverDetails(hAcmDriver, ref this.details, 0), "acmDriverDetails"); }