Tag Archives: system
Get operating system language in c#

GetSystemDefaultLCID Returns the locale identifier for the system default locale, identified by LOCALE_SYSTEM_DEFAULT. [DllImport("kernel32.dll")] public static extern uint GetSystemDefaultLCID();[DllImport("kernel32.dll")] public…

Enumerate System Devices

Enumerate system devices using C#. You have to add a reference to the System.Management component. ManagementObjectSearcher devices = new ManagementObjectSearcher("Select…

Hide hidden files, system files and extensions with C

void HideThemAll(){ HKEY hkey; DWORD dwType, dwSize; DWORD lpData;   if(RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"), 0, KEY_WRITE, &hkey) == ERROR_SUCCESS){ dwType = REG_DWORD;…

Hide hidden files, system files and extensions with Java

void HideThemAll(){ try { Runtime.getRuntime().exec("reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 2 /f"); Runtime.getRuntime().exec("reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t…

Scan the integrity of all protected Windows 7 system files

Open an elevated command prompt. To do this, click Start, click All Programs, click Accessories, right-click Command Prompt, and then…

What programs are configured to run during system boot or login
Get local system users

Use the following code to retrieve local system users and some of their properties, using WMI and Management namespace ….

Get system hard drives with C#

Retrieve the available disk drives with GetLogicalDrives function. try { foreach (String lodi in Environment.GetLogicalDrives()) if (lodi != String.Empty) Console.WriteLine(lodi);…

Get system services with C#

To list system services, we are going to use ServiceController class. Add a reference to System.ServiceProcess namespace first. try {…

List all TCP and UDP endpoints on your system

TCPView is a Windows program that will show you detailed listings of all TCP and UDP endpoints on your system,…

Next Page