Exemplo n.º 1
0
 private AcmDriverDetails GetDetails(IntPtr driverHandle)
 {
     AcmDriverDetails result = new AcmDriverDetails();
     result.cbStruct = Marshal.SizeOf(result);
     var r = AcmInterop.acmDriverDetails(driverHandle, ref result, IntPtr.Zero);
     MmException.Try(r, "acmDriverDetails");
     return result;
 }
Exemplo n.º 2
0
        public AcmDriver(IntPtr acmDriverHandle)
        {
            if (acmDriverHandle == IntPtr.Zero)
                throw new ArgumentNullException("acmDriverHandle");

            _acmDriverHandle = acmDriverHandle;
            _details = GetDetails(acmDriverHandle);
        }
Exemplo n.º 3
0
        private AcmDriverDetails GetDetails(IntPtr driverHandle)
        {
            AcmDriverDetails result = new AcmDriverDetails();

            result.cbStruct = Marshal.SizeOf(result);
            var r = AcmInterop.acmDriverDetails(driverHandle, ref result, IntPtr.Zero);

            MmException.Try(r, "acmDriverDetails");
            return(result);
        }
Exemplo n.º 4
0
        public AcmDriver(IntPtr acmDriverHandle)
        {
            if (acmDriverHandle == IntPtr.Zero)
            {
                throw new ArgumentNullException("acmDriverHandle");
            }

            _acmDriverHandle = acmDriverHandle;
            _details         = GetDetails(acmDriverHandle);
        }
Exemplo n.º 5
0
 public static extern MmResult acmDriverDetails(
     IntPtr acmDriverHandle,
     ref AcmDriverDetails details,
     IntPtr reserved);