Windows Native Toolkit

Windows Info Library

Windows version, build, edition, machine identity, keyboard-layout, and system-language nodes.

Use this library to display or log Windows identity and basic operating-system information.

Get Windows Version

Returns the current Windows product family such as Windows 10 or Windows 11.

PinDirectionPurpose
Return ValueOutputWindows version string.
C++ Example
  #include "WindowsInfoBPLibrary.h"

  const FString Version = UWindowsInfoBPLibrary::GetWindowsVersion();

Get Windows Build

Returns the Windows build number including UBR when available.

PinDirectionPurpose
Return ValueOutputWindows build string.
C++ Example
  #include "WindowsInfoBPLibrary.h"

  const FString Build = UWindowsInfoBPLibrary::GetWindowsBuild();

Get Windows Edition

Returns the installed Windows edition such as Home, Pro, or Enterprise.

PinDirectionPurpose
Return ValueOutputWindows edition string.
C++ Example
  #include "WindowsInfoBPLibrary.h"

  const FString Edition = UWindowsInfoBPLibrary::GetWindowsEdition();

Get Computer Name

Returns the local computer name.

PinDirectionPurpose
Return ValueOutputComputer name string.
C++ Example
  #include "WindowsInfoBPLibrary.h"

  const FString ComputerName = UWindowsInfoBPLibrary::GetPCName();

Get User Name

Returns the current local user name.

PinDirectionPurpose
Return ValueOutputLocal user name string.
C++ Example
  #include "WindowsInfoBPLibrary.h"

  const FString UserName = UWindowsInfoBPLibrary::GetLocalUserName();

Get Keyboard Layout

Returns the current Windows keyboard-layout identifier.

Example layout identifiers:

Layout IDMeaning
00000409English (United States)
0000040CFrench (France)
00000407German (Germany)
00020401Arabic (102)
PinDirectionPurpose
Return ValueOutputKeyboard-layout identifier such as 00000409.
C++ Example
  #include "WindowsInfoBPLibrary.h"

  const FString KeyboardLayout = UWindowsInfoBPLibrary::GetCurrentKeyboardLayout();

Get System Language

Returns the current Windows system language as a locale name.

Typical values:

PinDirectionPurpose
Return ValueOutputLocale name such as en-US or fr-FR.
C++ Example
  #include "WindowsInfoBPLibrary.h"

  const FString SystemLanguage = UWindowsInfoBPLibrary::GetSystemLanguage();

Example Locale Formats

CodeLanguage
en-USEnglish (United States)
fr-FRFrench (France)
de-DEGerman (Germany)

Last updated on

On this page