Exemple #1
0
        private Difx()
        {
            _mLogCallback = new DIFLOGCALLBACK(Logger);

            Log.Debug("Preparing to load DIFxAPI");

            if (Environment.Is64BitProcess)
            {
                Log.InfoFormat("Running as 64-Bit process");

                var libwdi64 = Path.Combine(WorkingDirectory, @"DIFxApi\amd64\DIFxAPI.dll");
                Log.DebugFormat("DIFxAPI path: {0}", libwdi64);

                LoadLibrary(libwdi64);

                Log.DebugFormat("Loaded library: {0}", libwdi64);
            }
            else
            {
                Log.InfoFormat("Running as 32-Bit process");

                var libwdi32 = Path.Combine(WorkingDirectory, @"DIFxApi\x86\DIFxAPI.dll");
                Log.DebugFormat("DIFxAPI path: {0}", libwdi32);

                LoadLibrary(libwdi32);

                Log.DebugFormat("Loaded library: {0}", libwdi32);
            }

            SetDifxLogCallback(_mLogCallback, IntPtr.Zero);
        }
Exemple #2
0
        private Difx()
        {
            _mLogCallback = new DIFLOGCALLBACK(Logger);

            Log.Debug("Preparing to load DIFxAPI");

            if (Environment.Is64BitProcess)
            {
                Log.InfoFormat("Running as 64-Bit process");

                var libwdi64 = Path.Combine(WorkingDirectory, @"DIFxApi\amd64\DIFxAPI.dll");
                Log.DebugFormat("DIFxAPI path: {0}", libwdi64);

                LoadLibrary(libwdi64);

                Log.DebugFormat("Loaded library: {0}", libwdi64);
            }
            else
            {
                Log.InfoFormat("Running as 32-Bit process");

                var libwdi32 = Path.Combine(WorkingDirectory, @"DIFxApi\x86\DIFxAPI.dll");
                Log.DebugFormat("DIFxAPI path: {0}", libwdi32);

                LoadLibrary(libwdi32);

                Log.DebugFormat("Loaded library: {0}", libwdi32);
            }

            SetDifxLogCallback(_mLogCallback, IntPtr.Zero);
        }
Exemple #3
0
        /// <summary>
        ///     Automatically loads the correct native library.
        /// </summary>
        private Difx()
        {
            LoadNativeLibrary("DIFxAPI", @"DIFxApi\x86\DIFxAPI.dll", @"DIFxApi\amd64\DIFxAPI.dll");

            _mLogCallback = Logger;

            SetDifxLogCallback(_mLogCallback, IntPtr.Zero);
        }
Exemple #4
0
 protected Difx()
 {
     m_LogCallback = new DIFLOGCALLBACK(Logger);
 }
Exemple #5
0
 public static extern void SetDifxLogCallback(DIFLOGCALLBACK LogCallback, IntPtr CallbackContext);
Exemple #6
0
 protected Difx()
 {
     m_LogCallback = new DIFLOGCALLBACK(Logger);
 }
Exemple #7
0
 public static extern void SetDifxLogCallback(DIFLOGCALLBACK LogCallback, IntPtr CallbackContext);
Exemple #8
0
 public Difx(DIFLOGCALLBACK logCallback)
 {
     SetDifxLogCallback(logCallback, IntPtr.Zero);
 }
Exemple #9
0
 private static extern void SetDifxLogCallback(DIFLOGCALLBACK logCallback, IntPtr callbackContext);
Exemple #10
0
 private static extern void SetDifxLogCallback(DIFLOGCALLBACK logCallback, IntPtr callbackContext);