Пример #1
0
        public static int AFCConnectionOpen(IntPtr handle, uint io_timeout, ref afc_connection conn)
        {
            IntPtr ptr;
            int    ret;

            ptr = IntPtr.Zero;
            ret = AFCConnectionOpen(handle, io_timeout, ref ptr);
            if ((ret == 0) && (ptr != IntPtr.Zero))
            {
                conn = (afc_connection)Marshal.PtrToStructure(ptr, conn.GetType());
            }
            return(ret);
        }
Пример #2
0
        public static int AMDeviceStartService(ref AMDevice device, string service_name, ref afc_connection conn, IntPtr unknown)
        {
            IntPtr ptr;
            int ret;

            ptr = IntPtr.Zero;
            ret = AMDeviceStartService(ref device, StringToCFString(service_name), ref ptr, unknown);
            if ((ret == 0) && (ptr != IntPtr.Zero)) {
                conn = (afc_connection)Marshal.PtrToStructure(ptr, conn.GetType());
            }
            return ret;
        }
Пример #3
0
        public static int AFCConnectionOpen(IntPtr handle, uint io_timeout, ref afc_connection conn)
        {
            IntPtr ptr;
            int ret;

            ptr = IntPtr.Zero;
            ret = AFCConnectionOpen(handle, io_timeout, ref ptr);
            if ((ret == 0) && (ptr != IntPtr.Zero)) {
                conn = (afc_connection)Marshal.PtrToStructure(ptr, conn.GetType());
            }
            return ret;
        }
Пример #4
0
        public static int AMDeviceStartService(ref AMDevice device, string service_name, ref afc_connection conn, IntPtr unknown)
        {
            IntPtr ptr;
            int    ret;

            ptr = IntPtr.Zero;
            ret = AMDeviceStartService(ref device, StringToCFString(service_name), ref ptr, unknown);
            if ((ret == 0) && (ptr != IntPtr.Zero))
            {
                conn = (afc_connection)Marshal.PtrToStructure(ptr, conn.GetType());
            }
            return(ret);
        }