public static byte[] CaptureWindowImage(IntPtr windowHandle, bool includeCursor) { try { if (SharedFunctions.CaptureRequest != null) { return(SharedFunctions.CaptureRequest(windowHandle, includeCursor)); } } catch { return(null); } return(null); }
/// <summary> /// Unsets the dynmaic environment variables. /// </summary> /// <param name="self">Application profile.</param> public static void UnsetVariables(this IApplicationProfile self) { SharedFunctions.UnsetDynamicVariables(); }
/// <summary> /// Unsets the dynmaic environment variables. /// </summary> /// <param name="self">Executable profile.</param> public static void UnsetVariables(this IExecutable self) { SharedFunctions.UnsetDynamicVariables(); }
/// <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); }
/// <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); }