Tag Archives: c
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…

Base64 with CryptoAPI and C

CryptBinaryToString The CryptBinaryToString function converts an array of bytes into a formatted string. – MSDN CryptStringToBinary The CryptStringToBinary function converts…

Calculate SHA 512 hash using C and CryptoAPI

SHA-2 (Secure Hash Algorithm 2) is a set of cryptographic hash functions designed by the National Security Agency (NSA).[3] SHA…

Edit PE file properties using C

Using MS Windows API you can edit PE file properties such as: * File version * Product version * File…

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…

Load – Unload drivers during development

The easiest way to load your driver into the kernel, for testing, during kernel development is by creating a system…

Suppress all error messages in C

SetErrorMode function controls whether the system will handle the specified types of serious errors or whether the process will handle…

Create a process in C

#include <stdlib.h> #include <stdio.h> #include <windows.h>     int main() { STARTUPINFO startInfo; PROCESS_INFORMATION procInfo;   //lock user WCHAR cmd[50]…

Parsing JSON in C

jsmn is a minimalistic JSON parser in C. It can be easily integrated into the resource-limited projects or embedded systems….

Next Page