Exemplo n.º 1
0
 /// <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 List<AcmFormat> tempFormatsList; // used by enumerator

        #endregion Fields

        #region Constructors

        /// <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");
        }
Exemplo n.º 3
0
 public static extern MmResult acmDriverDetails(IntPtr hAcmDriver, ref AcmDriverDetails driverDetails, int reserved);