B4J Library Win32 Release: Window Control, Clipboard, Services, Power, Processes, System Info +

Hello everyone,
Yet another library from early last year whilst I was trying to learn more about B4X libraries. This is not converted from an existing library, all methods were written from scratch. I created this library for myself, as I was creating a personal app and needed three or four of these functions. After finishing my personal project, I crazily decided to expand the functinality of the library.

This library provides a broad and practical collection of Win32 functionality for B4J developers who want deeper access to the Windows platform without writing native code. It is built on top of JNA and exposes a clean, consistent set of methods that cover window management, clipboard access, system information, power control, services, input simulation and more. The aim is to make common Windows tasks simple to call from B4J while keeping everything reliable and easy to integrate.

The library includes full support for working with windows, monitors and the desktop environment. You can retrieve titles, handles and class names, move and resize windows, control visibility and topmost state, and enumerate all visible windows. It also provides access to screen metrics, taskbar information and monitor layouts, which makes it useful for multi screen applications and layout aware tools (I believe).

Beyond window control, the library offers a wide range of system level features. These include clipboard text handling, registry access under HKCU, environment variables, file attributes, process information, system uptime, memory statistics and power management commands. There is also support for Windows services, allowing you to check for service existence and query service status directly from B4J.

The goal of this release is to give B4J developers a dependable and well structured way to interact with Windows at a low level while keeping the code readable and straightforward. You can focus on building your application rather than dealing with native API details.

Please note:
Some functions may trigger Windows security prompts or require elevated permissions depending on system configuration. This is normal behaviour for certain Win32 APIs.

SS_Win32

Author: Peter Simpson
Version: 1.0
  • Win32
    • Fields:
      • SC_MONITORPOWER As Int
    • Functions:
      • AllowSleep
        Clears sleep prevention.
      • BringToFront (hwndValue As Long) As Boolean
        Brings a window to the foreground using its handle.
      • CloseWindow (hwndValue As Long)
        Closes a window (sends WM_CLOSE).
      • EnumWindowsTitles As String()
        Enumerates top-level windows and returns their titles as an array.
      • FileExists (path As String) As Boolean
        Checks if a file exists.
      • FlashWindow (hwndValue As Long, count As Int)
        Flashes a window in the taskbar.
      • GetActiveWindowClass As String
        Returns the class name of the active window.
      • GetActiveWindowHandle As Long
        Returns the handle (pointer value) of the active window.
      • GetActiveWindowTitle As String
        Returns the title of the current foreground window.
      • GetAppDataFolder As String
        Returns the AppData folder path.
      • GetAvailablePhysicalMemoryMB As Long
        Returns available physical memory in MB.
      • GetBatteryPercent As Int
        Returns battery percentage (0-100) or -1 if unknown.
      • GetClipboardText As String
        Gets text from the clipboard.
        Returns empty string if unavailable.
      • GetCurrentPID As Int
        Returns the current process ID.
      • GetDefaultGateway As String
        Returns the default IPv4 gateway by parsing 'route print'.
      • GetDesktopFolder As String
        Returns the Desktop folder path.
      • GetDesktopRect As Int()
        Returns the desktop rectangle. [left, top, right, bottom]
      • GetDiskSpace (path As String) As String
        Returns disk space info for a path: "freeMB,totalMB,usableMB".
      • GetDocumentsFolder As String
        Returns the Documents folder path.
      • GetEnv (name As String) As String
        Gets an environment variable value.
      • GetFileAttributes (path As String) As Int
        Returns file attributes as a bitmask.
      • GetInterfaceAddresses (interfaceName As String) As String()
        Returns IP addresses for a given interface name.
      • GetInterfaceIPv4 (interfaceName As String) As String
        Returns the first IPv4 address for a specific interface name.
      • GetIPAddress As String
        Returns the first non-loopback IPv4 address, or empty string if none found.
      • GetIPAddresses As String()
        Returns all non-loopback IPv4 addresses.
      • GetMACAddress As String
        Returns the MAC address of the first active IPv4 interface.
      • GetMonitorCount As Int
        Returns the number of monitors.
      • GetMonitorRects As Int()
        Returns monitor rectangles as [ [l,t,r,b], ... ].
      • GetNetworkInterfaces As String()
        Returns a list of network interfaces as "Name:DisplayName".
      • GetParentPID As Int
        Returns the parent process ID.
      • GetProcessList As String()
        Returns a list of processes as "PID:Name".
      • GetProcessMemoryMB (pid As Int) As Int
        Returns memory usage (MB) of a process by PID, or -1 if unavailable.
      • GetProcessorCount As Int
        Returns the number of processors.
      • GetScreenHeight As Int
        Returns the primary screen height.
      • GetScreenWidth As Int
        Returns the primary screen width.
      • GetSystemBootTime As String
        Returns system boot time as a formatted string.
      • GetSystemCPUUsage As Int
        Returns accurate system-wide CPU usage percentage (0–100).
      • GetSystemDirectory As String
        Returns the system directory path.
      • GetSystemUptime As Long
        Returns system uptime in milliseconds.
      • GetTaskbarRect As Int()
        Returns the taskbar rectangle. [left, top, right, bottom] or zeros if not found.
      • GetTotalPhysicalMemoryMB As Long
        Returns total physical memory in MB.
      • GetWindowClass (hwndValue As Long) As String
        Returns the class name of a window by handle.
      • GetWindowExStyle (hwndValue As Long) As Int
        Gets the extended window style (GWL_EXSTYLE).
      • GetWindowRect (hwndValue As Long) As Int()
        Returns the rectangle of a window.
        [left, top, right, bottom]
      • GetWindowsDirectory As String
        Returns the Windows directory path.
      • GetWindowStyle (hwndValue As Long) As Int
        Gets the window style (GWL_STYLE).
      • GetWorkAreaHeight As Int
        Returns the work area height (excluding taskbar).
      • GetWorkAreaWidth As Int
        Returns the work area width (excluding taskbar).
      • Hibernate
        Hibernates the system.
      • IsInterfaceUp (interfaceName As String) As Boolean
        Returns whether the interface is up.
      • KeyDown (vk As Int)
        Sends a key down event.
      • KeyUp (vk As Int)
        Sends a key up event.
      • LockWorkstation
        Locks the workstation (same as Win+L).
      • MaximiseWindow (hwndValue As Long)
        Maximises a window.
      • MinimiseWindow (hwndValue As Long)
        Minimises a window.
      • MonitorOff
        Turns the monitor off.
      • MonitorOn
        Turns the monitor on.
      • MouseClick
        Sends a left mouse click.
      • MouseMove (dx As Int, dy As Int)
        Moves the mouse by dx, dy relative to current position.
      • MouseRightClick
        Sends a right mouse click.
      • MouseWheel (delta As Int)
        Scrolls the mouse wheel by the given delta (positive = up, negative = down).
      • MoveWindow (hwndValue As Long, x As Int, y As Int, width As Int, height As Int, repaint As Boolean)
        Moves and resizes a window.
      • PreventSleep
        Prevents system sleep until cleared.
      • RegDeleteKey (key As String)
        Deletes a key from HKCU.
      • RegDeleteValue (key As String, valueName As String)
        Deletes a value from HKCU.
      • RegKeyExists (key As String) As Boolean
        Checks if a key exists in HKCU.
      • RegReadBinary (key As String, valueName As String) As Byte()
        Reads a binary value from HKCU.
      • RegReadDword (key As String, valueName As String) As Int
        Reads a DWORD value from HKCU.
      • RegReadString (key As String, valueName As String) As String
        Reads a string value from HKCU.
      • RegWriteBinary (key As String, valueName As String, value As Byte())
        Writes a binary value to HKCU.
      • RegWriteDword (key As String, valueName As String, value As Int)
        Writes a DWORD value to HKCU.
      • RegWriteString (key As String, valueName As String, value As String)
        Writes a string value to HKCU.
      • Restart
        Restarts Windows.
      • RestoreWindow (hwndValue As Long)
        Restores a window.
      • RunAsAdmin (command As String) As Boolean
        Runs a command with UAC elevation (Run as Administrator).
      • RunCommand (command As String) As Boolean
        Runs a command using cmd.exe /c (like Windows Run dialog).
      • RunGetOutput (command As String) As String
        Runs a command and returns its stdout output as a string.
      • RunHidden (command As String) As Boolean
        Runs a command hidden (no console window).
      • RunWait (command As String) As Int
        Runs a command and waits for it to finish.
        Returns exit code.
      • RunWaitGetOutput (command As String) As String
        Runs a command, waits for it to finish, and returns its stdout output.
      • RunWaitGetOutputFull (command As String) As String
        Runs a command, waits for it to finish, and returns both output and exit code.
      • SendKey (vk As Int)
        Sends a single key press (virtual key code).
      • ServiceExists (serviceName As String) As Boolean
        Returns true if a service exists.
      • ServiceGetStatus (serviceName As String) As String
        Returns the status of a service as a string.
      • ServiceStart (serviceName As String) As Boolean
        Starts a service.
      • ServiceStop (serviceName As String) As Boolean
        Stops a service.
      • SetClipboardText (text As String) As Boolean
        Sets text to the clipboard.
      • SetEnv (name As String, value As String) As Boolean
        Sets an environment variable value for the current process.
      • SetFileAttributes (path As String, attrs As Int) As Boolean
        Sets file attributes (bitmask).
      • SetTopMost (hwndValue As Long, topMost As Boolean)
        Sets or clears the topmost flag for a window.
      • SetWindowExStyle (hwndValue As Long, style As Int)
        Sets the extended window style (GWL_EXSTYLE).
      • SetWindowStyle (hwndValue As Long, style As Int)
        Sets the window style (GWL_STYLE).
      • ShellOpen (target As String) As Boolean
        Opens a file or URL with the default associated application.
      • ShowInExplorer (path As String)
        Shows a file in Explorer (selects it).
      • Shutdown
        Shuts down Windows.
      • Sleep
        Puts the system to sleep.

The attached example will start notepad (in two different ways), cmd window, and the calculator.


Enjoy...
 

Attachments

  • SS_Win32 Lib.zip
    20.3 KB · Views: 50
  • SS_Win32.zip
    9.3 KB · Views: 38

Peter Simpson

Expert
Licensed User
Longtime User
Hello @Mashiane,
Thank you for the positive feedback, I really do seriously appreciate it.

In my mind, this is a quick 15 minute update, which in reality took just over 2 hours o_O
I'm currently beta testing APIs for a client of mine, so I had some time to spare to do this update, just about.

Awesome stuff. Wow. Thank you so much for this.
No problemooooooo

I think your tool will get closer to a dream of having a b4x app that lists software on your pc and software versions.
Done my man :cool:

A software updater.
Well, that will be upto you to develop ;)

But for now, installed on my main development machine
7-Zip 24.09 (x64) | 24.09
Active Directory Authentication Library for SQL Server (x86) | 13.0.1601.5
Active Directory Authentication Library for SQL Server | 13.0.1601.5
Adobe Acrobat (64-bit) | 25.001.21184
Adobe Dreamweaver 2020 | 20.0
Adobe Photoshop 2020 | 21.0.2
Adobe Refresh Manager | 1.8.0
Allway Sync | 22.0.1
Application Insights Tools for Visual Studio 2015 | 7.0.20622.1
Arduino IDE 2.3.5 | 2.3.5
AT Caller ID ActiveX | 1.0
Avast Free Antivirus | 26.1.10738.3400
Azure AD Authentication Connected Service | 14.0.25420
AzureTools.Notifications | 2.7.30611.1601
B4A v13.40 |
B4i v10.0 |
B4J v10.30 |
B4R v4.00 |
Blend for Visual Studio SDK for .NET 4.5 | 3.0.40218.0
Bullzip MS Access to MSSQL 5.5.0.281 |
Bullzip MS Access to MySQL 5.5.0.282 |
Bullzip MS Access to PostgreSQL 5.5.0.281 |
Bullzip PDF Printer 14.5.0.2974 | 14.5.0.2974
Canon IJ Network Scan Utility |
Canon IJ Network Tool | 3.1.1
Canon MG5200 series MP Drivers |
Canon MP Navigator EX 4.0 |
CCleaner | 6.37
DB Browser for SQLite | 3.12.2
DBeaver 25.2.0 (current user) | 25.2.0
Devart dbForge Studio for MySQL, v6.0 Professional Edition | 6.0.128
DiskGenius V6.0.1 |
Dotfuscator and Analytics Community Edition 5.22.0 | 5.22.0.3788
draw.io 28.0.6 | 28.0.6
Dropbox Update Helper | 1.3.983.1
Dropbox | 243.3.6895
Entity Framework 6.1.3 Tools for Visual Studio 2015 Update 1 | 14.0.41103.0
FileZilla 3.69.5 | 3.69.5
Fritzing | 0.9.6.0
GIMP 3.0.6-1 | 3.0.6.1
Git | 2.51.0
Glary Utilities 6.33 | 6.33.0.37
Google Chrome | 145.0.7632.76
Google Drive | 121.0.1.0
HeidiSQL 12.11.0.7065 | 12.11
HHD Software Virtual Serial Port Tools 7.07 | 7.07.00.1636
Honeywell Software Downloader Setup | 1.0.0.0
IIS 10.0 Express | 10.0.1736
ImgBurn | 2.5.8.0
Inno Setup version 6.4.3 | 6.4.3
InstallShield 2015 Limited Edition | 22.00.1
Intel® Hardware Accelerated Execution Manager | 7.8.0
Java 10.0.2 (64-bit) | 10.0.2.0
Java 8 Update 451 (64-bit) | 8.0.4510.10
Java Auto Updater | 10.0.2.0
Java SE Development Kit 8 Update 202 (64-bit) | 8.0.2020.8
Java SE Development Kit 8 Update 381 (64-bit) | 8.0.3810.9
Java(TM) SE Development Kit 10.0.2 (64-bit) | 10.0.2.0
Java(TM) SE Development Kit 11.0.20 (64-bit) | 11.0.20.0
JavaFX Scene Builder 2.0 | 2.0
K-Lite Codec Pack 19.3.6 Full | 19.3.6
Launch4j 3.50 | 3.50
Microsoft .NET Core 5.0 SDK | 1.0.23902
Microsoft .NET Framework 4 Multi-Targeting Pack | 4.0.30319
Microsoft .NET Framework 4.5 Multi-Targeting Pack | 4.5.50710
Microsoft .NET Framework 4.5.1 Multi-Targeting Pack (ENU) | 4.5.50932
Microsoft .NET Framework 4.5.1 Multi-Targeting Pack | 4.5.50932
Microsoft .NET Framework 4.5.1 RC Multi-Targeting Pack for Windows Store Apps (ENU) | 4.5.21005
Microsoft .NET Framework 4.5.1 RC Multi-Targeting Pack for Windows Store Apps | 4.5.21005
Microsoft .NET Framework 4.5.1 SDK | 4.5.51641
Microsoft .NET Framework 4.5.2 Multi-Targeting Pack (ENU) | 4.5.51209
Microsoft .NET Framework 4.5.2 Multi-Targeting Pack | 4.5.51651
Microsoft .NET Framework 4.6 SDK | 4.6.00081
Microsoft .NET Framework 4.6 Targeting Pack (ENU) | 4.6.00127
Microsoft .NET Framework 4.6 Targeting Pack | 4.6.00081
Microsoft .NET Framework 4.6.1 Developer Pack | 4.6.1055
Microsoft .NET Framework 4.6.1 SDK | 4.6.01055
Microsoft .NET Framework 4.6.1 Targeting Pack (ENU) | 4.6.01055
Microsoft .NET Framework 4.6.1 Targeting Pack | 4.6.01055
Microsoft .NET Host - 6.0.36 (x86) | 48.144.23141
Microsoft .NET Host - 8.0.16 (x64) | 64.64.32758
Microsoft .NET Host FX Resolver - 6.0.36 (x86) | 48.144.23141
Microsoft .NET Host FX Resolver - 8.0.16 (x64) | 64.64.32758
Microsoft .NET Runtime - 6.0.36 (x86) | 48.144.23141
Microsoft .NET Runtime - 8.0.16 (x64) | 64.64.32758
Microsoft .NET Version Manager (x64) 1.0.0-beta5 | 1.0.10609.0
Microsoft Access database engine 2016 (English) | 16.0.5044.1000
Microsoft Agents for Visual Studio 2015 Preview - ENU | 14.0.23102
Microsoft Agents for Visual Studio 2015 Preview | 14.0.23102
Microsoft ASP.NET and Web Tools 2015.1 (Beta8) - Visual Studio 2015 | 14.1.11107.0
Microsoft ASP.NET MVC 4 - Visual Studio 2015 - ENU | 4.1.41102.0
Microsoft ASP.NET Web Frameworks and Tools - Visual Studio 2015 - ENU | 5.2.40314.0
Microsoft ASP.NET Web Pages 2 - Visual Studio 2015 - ENU | 4.1.41102.0
Microsoft Azure Mobile Services Connected Service | 14.0.25420
Microsoft Azure Mobile Services SDK V2.0 | 2.0.20908.0
Microsoft Azure Mobile Services Tools for Visual Studio - v1.4 | 1.4.30611.1601
Microsoft Azure Shared Components for Visual Studio 2015 - v1.8 | 1.8.40521.1
Microsoft Azure Storage Connected Service | 14.0.25420
Microsoft Blend for Visual Studio 2015 - ENU | 14.0.25420
Microsoft Blend for Visual Studio 2015 | 14.0.25420
Microsoft Build Tools 14.0 (amd64) | 14.0.25420
Microsoft Build Tools 14.0 (x86) | 14.0.25420
Microsoft Build Tools Language Resources 14.0 (amd64) | 14.0.25420
Microsoft Build Tools Language Resources 14.0 (x86) | 14.0.25420
Microsoft Edge WebView2 Runtime | 145.0.3800.70
Microsoft Edge | 145.0.3800.70
Microsoft Expression Blend SDK for .NET 4 | 2.0.20525.0
Microsoft NuGet - Visual Studio 2015 | 3.4.4.1321
Microsoft Office Professional Plus 2021 - en-us | 16.0.19628.20214
Microsoft Portable Library Multi-Targeting Pack Language Pack - enu | 14.0.25420.01
Microsoft Portable Library Multi-Targeting Pack | 14.0.25123.00
Microsoft Silverlight | 5.1.20513.0
Microsoft SQL Server 2012 Command Line Utilities | 11.0.2100.60
Microsoft SQL Server 2012 Native Client | 11.0.2100.60
Microsoft SQL Server 2014 Express LocalDB | 12.0.2000.8
Microsoft SQL Server 2014 Management Objects (x64) | 12.0.2000.8
Microsoft SQL Server 2014 Management Objects | 12.0.2000.8
Microsoft SQL Server 2014 T-SQL Language Service | 12.0.2000.8
Microsoft SQL Server 2014 Transact-SQL ScriptDom | 12.0.2000.8
Microsoft SQL Server 2016 LocalDB | 13.0.1601.5
Microsoft SQL Server 2016 Management Objects (x64) | 13.0.1601.5
Microsoft SQL Server 2016 Management Objects | 13.0.1601.5
Microsoft SQL Server 2016 T-SQL Language Service | 13.0.14500.10
Microsoft SQL Server 2016 T-SQL ScriptDom | 13.0.1601.5
Microsoft SQL Server Compact 4.0 SP1 x64 ENU | 4.0.8876.1
Microsoft SQL Server Data Tools - enu (14.0.60519.0) | 14.0.60519.0
Microsoft System CLR Types for SQL Server 2014 | 12.0.2402.29
Microsoft System CLR Types for SQL Server 2014 | 12.0.2402.29
Microsoft System CLR Types for SQL Server 2016 | 13.0.1601.5
Microsoft System CLR Types for SQL Server 2016 | 13.0.1601.5
Microsoft Visual C++ 2005 Redistributable | 8.0.59193
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17 | 9.0.30729
Microsoft Visual C++ 2010 x64 Redistributable - 10.0.40219 | 10.0.40219
Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219 | 10.0.40219
Microsoft Visual C++ 2012 Redistributable (x64) - 11.0.60610 | 11.0.60610.1
Microsoft Visual C++ 2012 Redistributable (x64) - 11.0.61030 | 11.0.61030.0
Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.50727 | 11.0.50727.1
Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.60610 | 11.0.60610.1
Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.61030 | 11.0.61030.0
Microsoft Visual C++ 2012 x64 Additional Runtime - 11.0.61030 | 11.0.61030
Microsoft Visual C++ 2012 x64 Minimum Runtime - 11.0.61030 | 11.0.61030
Microsoft Visual C++ 2012 x86 Additional Runtime - 11.0.50727 | 11.0.50727
Microsoft Visual C++ 2012 x86 Additional Runtime - 11.0.61030 | 11.0.61030
Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.50727 | 11.0.50727
Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.61030 | 11.0.61030
Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.21005 | 12.0.21005.1
Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.40664 | 12.0.40664.0
Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.21005 | 12.0.21005.1
Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.30501 | 12.0.30501.0
Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.40664 | 12.0.40664.0
Microsoft Visual C++ 2013 x64 Additional Runtime - 12.0.40664 | 12.0.40664
Microsoft Visual C++ 2013 x64 Minimum Runtime - 12.0.40664 | 12.0.40664
Microsoft Visual C++ 2013 x86 Additional Runtime - 12.0.40664 | 12.0.40664
Microsoft Visual C++ 2013 x86 Minimum Runtime - 12.0.40664 | 12.0.40664
Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.44.35211 | 14.44.35211.0
Microsoft Visual C++ 2015-2022 Redistributable (x86) - 14.44.35211 | 14.44.35211.0
Microsoft Visual C++ 2022 X64 Additional Runtime - 14.44.35211 | 14.44.35211
Microsoft Visual C++ 2022 X64 Minimum Runtime - 14.44.35211 | 14.44.35211
Microsoft Visual C++ 2022 X86 Additional Runtime - 14.44.35211 | 14.44.35211
Microsoft Visual C++ 2022 X86 Minimum Runtime - 14.44.35211 | 14.44.35211
Microsoft Visual Studio 2015 Devenv Resources | 14.0.23107
Microsoft Visual Studio 2015 Devenv | 14.0.23107
Microsoft Visual Studio 2015 Diagnostic Tools - amd64 | 14.0.23107
Microsoft Visual Studio 2015 Installer Projects Extension | 14.0.25465
Microsoft Visual Studio 2015 Performance Collection Tools - ENU | 14.0.23107
Microsoft Visual Studio 2015 Performance Collection Tools | 14.0.23107
Microsoft Visual Studio 2015 Preparation | 14.0.23107
Microsoft Visual Studio 2015 Preparation | 14.0.23107
Microsoft Visual Studio 2015 Preparation | 14.0.23107
Microsoft Visual Studio 2015 Profiling Tools | 14.0.25123
Microsoft Visual Studio 2015 SDK - ENU | 14.0.23107
Microsoft Visual Studio 2015 Shell (Minimum) Interop Assemblies | 14.0.25420
Microsoft Visual Studio 2015 Shell (Minimum) Resources | 14.0.23107
Microsoft Visual Studio 2015 Shell (Minimum) | 14.0.23107
Microsoft Visual Studio 2015 Test Tools Language Pack - ENU | 14.0.23107
Microsoft Visual Studio 2015 Update 3 CTP1 Team Explorer Language Pack - ENU | 14.98.25331
Microsoft Visual Studio 2015 Update 3 Diagnostic Tools - amd64 | 14.0.25420
Microsoft Visual Studio 2015 Update 3 Diagnostic Tools - amd64 | 14.0.25420
Microsoft Visual Studio 2015 Update 3 Diagnostic Tools - ENU | 14.0.25420
Microsoft Visual Studio 2015 Update 3 Diagnostic Tools - x86 | 14.0.25420
Microsoft Visual Studio 2015 Update 3 Diagnostic Tools - x86 | 14.0.25420
Microsoft Visual Studio 2015 Update 3 Diagnostic Tools - x86 | 14.0.25420
Microsoft Visual Studio 2015 Update 3 IntelliTrace (x64) | 14.0.25420
Microsoft Visual Studio 2015 Update 3 IntelliTrace (x86) | 14.0.25420
Microsoft Visual Studio 2015 Update 3 IntelliTrace Front End | 14.0.25420
Microsoft Visual Studio 2015 Update 3 Performance Debugger Web Views | 14.0.25420
Microsoft Visual Studio 2015 VsGraphics Helper Dependencies | 14.0.23107
Microsoft Visual Studio 2015 Windows Diagnostic Tools - ENU | 14.0.25420
Microsoft Visual Studio 2015 Windows Diagnostic Tools | 14.0.25420
Microsoft Visual Studio 2015 XAML Application Timeline - ENU | 14.0.25420
Microsoft Visual Studio 2015 XAML Application Timeline | 14.0.25420
Microsoft Visual Studio 2015 XAML Designer - ENU | 14.0.25420
Microsoft Visual Studio 2015 XAML Designer | 14.0.25420
Microsoft Visual Studio 2015 XAML Visual Diagnostics - ENU | 14.0.25420
Microsoft Visual Studio 2015 XAML Visual Diagnostics | 14.0.25420
Microsoft Visual Studio Code (User) | 1.109.5
Microsoft Visual Studio Community 2015 - ENU | 14.0.23107
Microsoft Visual Studio Community 2015 | 14.0.23107
Microsoft Visual Studio Connected Services | 14.0.25420
Microsoft Visual Studio Enterprise 2015 - ENU | 14.0.23107
Microsoft Visual Studio Enterprise 2015 with Updates | 14.0.25420.1
Microsoft Visual Studio Enterprise 2015 | 14.0.23107
Microsoft Visual Studio Premium 2015 - ENU | 14.0.23107
Microsoft Visual Studio Premium 2015 | 14.0.23107
Microsoft Visual Studio Professional 2015 - ENU | 14.0.23107
Microsoft Visual Studio Professional 2015 | 14.0.23107
Microsoft Visual Studio Services Hub | 1.0.25420.01
Microsoft Visual Studio Team Foundation Server 2015 Update 3 CTP1 Office Integration (x64) | 14.98.25331
Microsoft Visual Studio Team Foundation Server 2015 Update 3 CTP1 Office Integration Language Pack (x64) - ENU | 14.98.25331
Microsoft Visual Studio Team Foundation Server 2015 Update 3 CTP1 Storyboarding (x64) | 14.98.25331
Microsoft Visual Studio Team Foundation Server 2015 Update 3 CTP1 Storyboarding Language Pack (x64) - ENU | 14.98.25331
Microsoft VisualStudio JavaScript Language Service | 14.0.25420
Microsoft VisualStudio JavaScript Project System | 14.0.25420
Microsoft Web Deploy 3.6 | 3.1238.1962
Microsoft Windows Desktop Runtime - 6.0.36 (x86) | 48.144.23186
Microsoft Windows Desktop Runtime - 6.0.36 (x86) | 6.0.36.34217
Microsoft Windows Desktop Runtime - 8.0.16 (x64) | 64.64.32786
Microsoft Windows Desktop Runtime - 8.0.16 (x64) | 8.0.16.34817
Microsoft.VisualStudio_Office365 | 1.6.2.0
Miniconda3 py313_25.3.1-1 (Python 3.13.2 64-bit) | py313_25.3.1-1
Mozilla Firefox (x64 en-GB) | 147.0.4
Mozilla Maintenance Service | 139.0.1
MSBuild/NuGet Integration 14.0 (x86) | 14.0.25420
Multi-Device Hybrid Apps using C# - Templates - ENU | 14.0.23107
MySQL Connector Net 6.9.8 | 6.9.8
MySQL Connector/ODBC 5.1 | 5.1.8
MySQL for Visual Studio 1.2.7 | 1.2.7
MySQL Installer - Community | 1.6.8.0
MySQL Server 5.7 | 5.7.20
MySQL Workbench 8.0 CE | 8.0.26
NetLimiter 4 | 4.1.14.0
NetLimiter 4 | 4.1.14.0
Notepad++ (64-bit x64) | 8.7.9
NVIDIA FrameView SDK 1.1.4923.29548709 | 1.1.4923.29548709
NVIDIA Graphics Driver 462.31 | 462.31
NVIDIA Install Application | 2.1002.346.0
NVIDIA PhysX System Software 9.20.0221 | 9.20.0221
Office 16 Click-to-Run Extensibility Component | 16.0.19628.20214
Office 16 Click-to-Run Licensing Component | 16.0.14326.20454
Opera Stable 127.0.5778.76 | 127.0.5778.76
PL23XX USB-to-Serial | 2.0.6
POS Series Printer Driver version 11.3.0.3 | 11.3.0.3
POS80 Series Printer Driver version 1.5 | 1.5
PreEmptive Analytics Visual Studio Components | 1.2.5134.1
Prerequisites for SSDT | 12.0.2000.8
Prerequisites for SSDT | 13.0.1601.5
PyCharm 2025.2.1.1 | 252.25557.178
Python 3.13.7 (64-bit) | 3.13.7150.0
Python 3.13.7 Add to Path (64-bit) | 3.13.7150.0
Python 3.13.7 Core Interpreter (64-bit) | 3.13.7150.0
Python 3.13.7 Development Libraries (64-bit) | 3.13.7150.0
Python 3.13.7 Documentation (64-bit) | 3.13.7150.0
Python 3.13.7 Executables (64-bit) | 3.13.7150.0
Python 3.13.7 pip Bootstrap (64-bit) | 3.13.7150.0
Python 3.13.7 Standard Library (64-bit) | 3.13.7150.0
Python 3.13.7 Tcl/Tk Support (64-bit) | 3.13.7150.0
Python 3.13.7 Test Suite (64-bit) | 3.13.7150.0
Python Launcher | 3.13.7150.0
Reolink 8.20.6 | 8.20.6
Roslyn Language Services - x86 | 14.0.23107
Roslyn Language Services - x86 | 14.0.25420
SAP Crystal Reports runtime engine for .NET Framework (64-bit) | 13.0.22.2668
SAP Crystal Reports, version for Microsoft Visual Studio | 13.0.22.2668
Sky Sports 6.0.1 (only current user) | 6.0.1
SQLite Expert Personal 5.5.38.649 | 5.5.38.649
SQLiteConverter | 1.9.5
SQLiteStudio | 3.2.1
SQLiteStudio | 3.4.17
Team Explorer for Microsoft Visual Studio 2015 Update 3 CTP1 | 14.98.25331
Test Tools for Microsoft Visual Studio 2015 | 14.0.23107
TypeScript Power Tool | 1.8.34.0
TypeScript Tools for Microsoft Visual Studio 2015 | 1.8.34.0
Update for (KB2504637) | 1
Update for x64-based Windows Systems (KB5001716) | 8.94.0.0
Virtual Serial Ports Emulator (x64) | 1.5.7.460
Visual C++ Compiler/Tools X86 Base Package | 14.0.24210
Visual C++ Compiler/Tools X86 Base Package | 14.0.24210
Visual C++ Compiler/Tools X86 Base Resource Package | 14.0.24210
Visual C++ Compiler/Tools X86 Base Resource Package | 14.0.24210
Visual C++ IDE Base Package | 14.0.25420
Visual C++ IDE Base Resource Package | 14.0.25420
Visual C++ IDE Base Resource Package | 14.0.25420
Visual C++ IDE Common Package | 14.0.25420
Visual C++ IDE Common Resource Package | 14.0.25420
Visual C++ IDE Core Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Core Professional Plus Resource Package | 14.0.25420
Visual C++ IDE Debugger Package | 14.0.25420
Visual C++ IDE Debugger Resource Package | 14.0.25420
Visual C++ IDE Professional Core Package | 14.0.25420
Visual C++ IDE x64 Package | 14.0.25420
Visual C++ Library PGO X86 Package | 14.0.24210
Visual C++ MSBuild ARM Package | 14.0.25420
Visual C++ MSBuild Base Package | 14.0.25420
Visual C++ MSBuild Base Resource Package | 14.0.25420
Visual C++ MSBuild X64 Package | 14.0.25420
Visual C++ MSBuild X86 Package | 14.0.25420
Visual Studio 2012 Verification SDK | 14.0.25420
Visual Studio 2015 Prerequisites - ENU Language Pack | 14.0.23107
Visual Studio 2015 Prerequisites | 14.0.23107
Visual Studio 2015 Update 3 (KB3022398) | 14.0.25420
Visual Studio Graphics Analyzer | 14.0.25420
Visual Studio Installer Projects Extension | 14.0.25465
VS Update core components | 14.0.25420
vs_update3notification | 14.0.25420
WCF Data Services 5.6.4 Runtime | 5.6.62175.4
WCF Data Services Tools for Microsoft Visual Studio 2015 | 5.6.62175.4
Windows Driver Package - Google, Inc. (WinUSB) AndroidUsbDeviceClass (08/28/2014 11.0.0000.00000) | 08/28/2014 11.0.0000.00000
Windows Driver Package - Silicon Laboratories Inc. (silabser) Ports (05/23/2018 6.7.6.2130) | 05/23/2018 6.7.6.2130
Windows Espc Package | 14.0.23107
Windows Espc Resource Package | 14.0.23107
Windows Phone SDK 8.0 Assemblies for Visual Studio 2015 | 14.0.25123
Windows Software Development Kit DirectX x64 Remote | 8.100.25984
Windows Software Development Kit DirectX x86 Remote | 8.100.25984
Windows Software Development Kit for Windows Store Apps DirectX x64 Remote | 8.100.26936
Windows Software Development Kit for Windows Store Apps DirectX x86 Remote | 8.100.26936
WinRAR 7.01 (64-bit) | 7.01.0

The above list is generated using the updated library (not yet released). I'll release an update to this library whenever I get the chance to do so.

How to use, it's as simple as 123:
    Log("Testing Installed Software")
    Dim apps As Map = Win.ListInstalledSoftware
    For Each name As String In apps.Keys
        Log(name & " | " & apps.Get(name))
    Next
UNINSTALL SOFTWARE EXAMPLE 1:
    Log("Testing Uninstall Software")
    Dim Res As Map = Win.UninstallSoftware("Google Chrome")
    If Res.Get("Success") Then Log("Uninstall started") Else Log("Error: " & Res.Get("Message"))
UNINSTALL SOFTWARE EXAMPLE 2:
    Win.RunAsAdmin($"winget uninstall "Google Chrome""$)


Enjoy...
 
Last edited:

Mashiane

Expert
Licensed User
Longtime User
Hello @Mashiane,
Thank you for the positive feedback, I really do seriously appreciate it.

In my mind, this 15 minute update, actually took just over 2 hours o_O
I'm currently beta testing APIs for a client of mine, so I had some time to spare to do this update, just about.


No problemooooooo


Done my man :cool:


Well, that will be upto you to develop ;)

But for now, installed on my main development machine


The above list is generated using the updated library (not yet released). I'll release an update to this library whenever I get the chance to do so.

How to use, it's as simple as 123's as simple as 123:
    Log("Testing Installed Software")
    Dim apps As Map = Win.ListInstalledSoftware
    For Each name As String In apps.Keys
        Log(name & " | " & apps.Get(name))
    Next
UNINSTALL SOFTWARE EXAMPLE 1:
    Log("Testing Uninstall Software")
    Dim Res As Map = Win.UninstallSoftware("Google Chrome")
    If Res.Get("Success") Then Log("Uninstall started") Else Log("Error: " & Res.Get("Message"))
UNINSTALL SOFTWARE EXAMPLE 2:
    Win.RunAsAdmin($"winget uninstall "Google Chrome""$)


Enjoy...
Talk about Christmas coming early this year!!! Im so mind blown right now. Wow.

I appreciate your time taken to do this. Amazing stuff. The software updater, closer than ever due to what you have done here.
 
Top