Esempio n. 1
0
 public static byte[] CaptureWindowImage(IntPtr windowHandle, bool includeCursor)
 {
     try
     {
         if (SharedFunctions.CaptureRequest != null)
         {
             return(SharedFunctions.CaptureRequest(windowHandle, includeCursor));
         }
     }
     catch
     {
         return(null);
     }
     return(null);
 }
Esempio n. 2
0
 /// <summary>
 /// Unsets the dynmaic environment variables.
 /// </summary>
 /// <param name="self">Application profile.</param>
 public static void UnsetVariables(this IApplicationProfile self)
 {
     SharedFunctions.UnsetDynamicVariables();
 }
Esempio n. 3
0
 /// <summary>
 /// Unsets the dynmaic environment variables.
 /// </summary>
 /// <param name="self">Executable profile.</param>
 public static void UnsetVariables(this IExecutable self)
 {
     SharedFunctions.UnsetDynamicVariables();
 }
Esempio n. 4
0
 /// <summary>
 /// Sets the dynamic environment variables to match this application profile.
 /// </summary>
 /// <param name="self">Application profile.</param>
 public static void SetVariables(this IApplicationProfile self)
 {
     SharedFunctions.SetDynamicVarriables(self);
 }
Esempio n. 5
0
 /// <summary>
 /// Sets the dynamic environment variables to match this executable profile.
 /// </summary>
 /// <param name="self">Executable profile.</param>
 public static void SetVariables(this IExecutable self)
 {
     SharedFunctions.SetDynamicVarriables(self);
 }