Skip to content

System::Enviroment

randomnumgen1 edited this page Apr 23, 2025 · 2 revisions

Get the current process id

System::Enviroment::CurrentProcessId();

Get the logical processor count

System::Enviroment::ProcessorCount();

Get processor brand

System::Enviroment::ProcessorBrand();

example returns (string):

AMD Ryzen 5 5400U with Radeon Graphics
AMD Ryzen 5 5500U with Radeon Graphics
AMD Ryzen 5 5800U with Radeon Graphics
AMD Ryzen 5 3600 6-Core Processor
Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz

Get processor vendor

System::Enviroment::ProcessorVendor();

example returns (string):

GenuineIntel
AuthenticAMD

check if cpu supports a feature

System::Enviroment::ProcessorHasFeature();

get total physical memory

System::Enviroment::TotalPhysicalMemory();

get total virtual memory

System::Enviroment::TotalVirtualMemory();

get available physical memory

System::Enviroment::AvailablePhysicalMemory();

get available virtual memory

System::Enviroment::AvailableVirtualMemory();

Get the Current Working Directory

System::Enviroment::CurrentDirectory();

Clone this wiki locally