Skip to content

Instantly share code, notes, and snippets.

@hecomi
hecomi / RtlGetVersion.cpp
Last active October 14, 2021 17:08
Windows の OS のバージョン取得するヤツ
#include <iostream>
#include <Windows.h>
void OutputWindowsInformation()
{
const auto hModule = ::LoadLibrary(TEXT("ntdll.dll"));
if (!hModule) return;
if (const auto address = ::GetProcAddress(hModule, "RtlGetVersion"))
{