Siv3D / OpenSiv3D

C++20 framework for creative coding 🎮🎨🎹 / Cross-platform support (Windows, macOS, Linux, and the Web)
https://siv3d.github.io/
MIT License
1.01k stars 139 forks source link

コンピュータの名前やユーザの名前を取得する関数 #968

Closed Reputeless closed 1 year ago

Reputeless commented 1 year ago
Reputeless commented 1 year ago

サンプル

# include <Siv3D.hpp> // OpenSiv3D v0.6.8

void Main()
{
    Print << U"ComputerName: " << System::ComputerName();

    Print << U"UserName: " << System::UserName();

    Print << U"FullUserName: " << System::FullUserName();

    Print << U"DefaultLocale: " << System::DefaultLocale();

    Print << U"DefaultLanguage: " << System::DefaultLanguage();

    while (System::Update())
    {

    }
}