Exemple #1
0
 public static void LoadAssembly(WindowsAppFriend app, string assemblyString, string filePath)
 {
     if (app == null)
     {
         throw new ArgumentNullException("app");
     }
     app[typeof(WindowsAppExpanderInApp), "LoadAssembly"](assemblyString, filePath);
 }
Exemple #2
0
 public static void LoadAssemblyFromFullName(WindowsAppFriend app, string assemblyString)
 {
     if (app == null)
     {
         throw new ArgumentNullException("app");
     }
     app[typeof(WindowsAppExpanderInApp), "Load"](assemblyString);
 }
Exemple #3
0
        public static bool LoadLibrary(WindowsAppFriend app, string fileName)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }
            AppVar ptr = app[typeof(WindowsAppExpanderInApp), "LoadLibrary"](fileName);

            return((IntPtr)ptr.Core != IntPtr.Zero);
        }
Exemple #4
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="app">Application manipulation object.</param>
        /// <param name="executeThreadWindowControl">AppVar for a .Net window object in the thread where test operations will be carried out.</param>
#else
        /// <summary>
        /// コンストラクタ。
        /// </summary>
        /// <param name="app">アプリケーション操作クラス。</param>
        /// <param name="executeThreadWindowControl">処理を実行させるスレッドで動作するウィンドウの.Netオブジェクトの入ったアプリケーション内変数です。</param>
#endif
        public ExecuteContext(WindowsAppFriend app, AppVar executeThreadWindowControl)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }
            _systemController = app.SystemController;
            IntPtr handle = (IntPtr)app[typeof(ExecuteContext), "GetHandleThreadSafe"](executeThreadWindowControl).Core;

            _friendlyConnector = _systemController.StartFriendlyConnector(handle);
        }
Exemple #5
0
 public static void LoadAssembly(WindowsAppFriend app, Assembly assembly)
 {
     if (app == null)
     {
         throw new ArgumentNullException("app");
     }
     if (assembly == null)
     {
         throw new ArgumentNullException("assembly");
     }
     app[typeof(WindowsAppExpanderInApp), "LoadAssembly"](assembly.FullName, assembly.Location);
 }
Exemple #6
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="app">Application manipulation object.</param>
        /// <param name="executeThreadWindowHandle">Window handle in the thread where test operations will be carried out.</param>
#else
        /// <summary>
        /// コンストラクタ。
        /// </summary>
        /// <param name="app">アプリケーション操作クラス。</param>
        /// <param name="executeThreadWindowHandle">処理を実行させるスレッドで動作するウィンドウのハンドルです。</param>
#endif
        public ExecuteContext(WindowsAppFriend app, IntPtr executeThreadWindowHandle)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }
            _systemController  = app.SystemController;
            _friendlyConnector = _systemController.StartFriendlyConnector(executeThreadWindowHandle);
        }
Exemple #7
0
 /// <summary>
 /// コンストラクタ。
 /// </summary>
 /// <param name="app">アプリケーション操作クラス。</param>
 public FriendlyConnectorWrap(WindowsAppFriend app)
 {
     _app = app;
 }