Tag Archives: programming
c – Output coloured text to a Windows terminal

GetStdHandle function retrieves a handle to the specified standard device (standard input, standard output, or standard error). GetConsoleScreenBufferInfo function retrieves…

Unit testing framework for C

Check is a unit testing framework for C. It features a simple interface for defining unit tests, putting little in…

The key LocalizedPerfCounter does not exist

When you are using .NET 2.0 or .NET 3.5 and you are trying to make a web request with WebRequest…

VS 2015 Unresolved external symbol __except_handler4_common

__except_handler4_common is defined in vcruntime library. This happens in Visual Studio 2015 when you select Multi-threaded (/MT) Runtime Library and…

A full implementation of the VirusTotal 2.0 API

VirusTotal.NET – A full implementation of the VirusTotal 2.0 API. Here you will find project’s source code. Features Based on…

Get Windows Users with C# and WMI

class SystemUser { public enum AccountType { DUPLICATE_ACCOUNT = 256, NORMAL_ACCOUNT = 512, INTERDOMAIN_TRUST_ACCOUNT = 2048, WORKSTATION_TRUST_ACCOUNT = 4096, SERVER_TRUST_ACCOUNT…

Update NoIP Host with c#

More about NoIP dynamic dns update request click here. private void UpdateNoIPHost() { try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create( string.Format("http://dynupdate.no-ip.com/nic/update?hostname={0}",…

Check if user is Idle with C#

GetLastInputInfo function – Retrieves the time of the last input event. LASTINPUTINFO structure – Contains the time of the last…

Get System Uptime with C#

public string GetSystemUptime() { try { string systemUpTime = string.Empty; string query = "SELECT * FROM Win32_OperatingSystem WHERE Primary=’true’";  …

Is64BitOperatingSystem for C# and .Net 2.0

public bool Is64BitOperatingSystem() { try { string osArch = string.Empty; string query = String.Format("SELECT * FROM Win32_OperatingSystem");   using (ManagementObjectSearcher…

Next Page