Tag: WMI
-
Exploring Delphi XE3 – WinApi Additions – Winapi.Wbem
Read the article: Exploring Delphi XE3 – WinApi Additions – Winapi.WbemDelphi XE3 introduces a lot of new WinApi headers translations, between them is the Winapi.Wbem unit which is the Delphi (object pascal) translation for the wbemidl.h file which contains the…
-
How obtain the source of the WMI Data
Read the article: How obtain the source of the WMI DataWe normally use the WMI to either return information about software and hardware installed, but you probably ever wondered from where this data is obtained?. Well the answer is, this…
-
Determine Genuine Windows Installation using Delphi
Read the article: Determine Genuine Windows Installation using DelphiStarting with Windows Vista , Microsoft introduces the The Software Licensing API (SLAPI), this API can be used to determine a genuine Microsoft Windows installation. So using the SLIsGenuineLocal function…
-
WMI Tasks using Delphi – Services
Read the article: WMI Tasks using Delphi – ServicesHow do I determine which services are running and which ones are not? Use the Win32_Service class to check the state of all of the services. The state property lets…
-
WMI Tasks using Delphi – Registry
Read the article: WMI Tasks using Delphi – RegistryHow do I read registry key values using WMI? Use the StdRegProv class, located in root\default (for Windows Server 2003, Windows XP, Windows 2000, Windows NT 4.0) and root\cimv2 namespace…
-
WMI Tasks using Delphi – Processes
Read the article: WMI Tasks using Delphi – ProcessesHow do I run an application in a hidden window? Call the application from an app that uses the Win32_Process and Win32_ProcessStartup classes. [sourcecode language=”delphi” wraplines=”false”] const wbemFlagForwardOnly = $00000020;…
-
WMI Tasks using Delphi – Printers and Printing
Read the article: WMI Tasks using Delphi – Printers and PrintingHow do I add a new printer connection to a remote computer? Use the Win32_Printer class and the AddPrinterConnection method. [sourcecode language=”delphi” wraplines=”false”] var FSWbemLocator : OLEVariant; FWMIService : OLEVariant;…
-
WMI Tasks using Delphi – Operating Systems
Read the article: WMI Tasks using Delphi – Operating SystemsHow do I determine if a service pack has been installed on a computer? Use the Win32_OperatingSystem class and check the value of the ServicePackMajorVersion and ServicePackMinorVersion properties. [sourcecode language=”delphi”…
-
The WMI Delphi Code Creator now can create C++ Code compatible with Borland/Embarcadero compilers
Read the article: The WMI Delphi Code Creator now can create C++ Code compatible with Borland/Embarcadero compilersAfter a lots of tests, I can officially announce which the WMI Delphi Code Creator now can create C++ Code compatible with the Borland/Embarcadero compilers. This new feature will be…
-
WMI Tasks using Delphi – Networking
Read the article: WMI Tasks using Delphi – NetworkingHow do I disable a network connection using WMI? If you are using DHCP, use the Win32_NetworkAdapterConfiguration and the ReleaseDHCPLease method to release the IP address. If you are not…
