예제 #1
0
 protected TElement[] EndGetArray <TElement>(IAsyncResult ar) where TElement : struct
 {
     return(DeviceIO.EndGetArray <TElement>(ar));
 }
예제 #2
0
 protected TElement[] GetArray <TElement>(DeviceControlCode deviceControlCode, Object inBuffer, Int32 maxElements) where TElement : struct
 {
     return(DeviceIO.GetArray <TElement>(m_device, deviceControlCode, inBuffer, maxElements));
 }
예제 #3
0
 protected IAsyncResult BeginGetArray <TElement>(DeviceControlCode deviceControlCode, Object inBuffer,
                                                 Int32 maxElements, AsyncCallback asyncCallback, Object state) where TElement : struct
 {
     return(DeviceIO.BeginGetArray <TElement>(m_device, deviceControlCode, inBuffer, maxElements, asyncCallback, state));
 }
예제 #4
0
 protected IAsyncResult BeginGetObject <TResult>(DeviceControlCode deviceControlCode, Object inBuffer,
                                                 AsyncCallback asyncCallback, Object state) where TResult : new()
 {
     return(DeviceIO.BeginGetObject <TResult>(m_device, deviceControlCode, inBuffer, asyncCallback, state));
 }
예제 #5
0
 protected TResult EndGetObject <TResult>(IAsyncResult ar) where TResult : new()
 {
     return(DeviceIO.EndGetObject <TResult>(ar));
 }
예제 #6
0
 protected TResult GetObject <TResult>(DeviceControlCode deviceControlCode) where TResult : new()
 {
     return(DeviceIO.GetObject <TResult>(m_device, deviceControlCode, null));
 }
예제 #7
0
 protected TResult GetObject <TResult>(DeviceControlCode deviceControlCode, Object inBuffer) where TResult : new()
 {
     return(DeviceIO.GetObject <TResult>(m_device, deviceControlCode, inBuffer));
 }
예제 #8
0
 protected void EndControl(IAsyncResult result)
 {
     DeviceIO.EndControl(result);
 }
예제 #9
0
 protected IAsyncResult BeginControl(DeviceControlCode deviceControlCode,
                                     Object inBuffer, AsyncCallback asyncCallback, Object state)
 {
     return(DeviceIO.BeginControl(m_device, deviceControlCode, inBuffer, asyncCallback, state));
 }
예제 #10
0
 protected void Control(DeviceControlCode deviceControlCode, Object inBuffer)
 {
     DeviceIO.Control(m_device, deviceControlCode, inBuffer);
 }
예제 #11
0
 protected void Control(DeviceControlCode deviceControlCode)
 {
     DeviceIO.Control(m_device, deviceControlCode);
 }
예제 #12
0
        private SafeFileHandle m_device; // Device driver handle

        #region Protected Constructors and Public Dispose
        protected DeviceIOInfo(String deviceName, FileAccess access, FileShare share, Boolean useAsync)
        {
            m_device = DeviceIO.OpenDevice(deviceName, access, share, useAsync);
        }