This C++ program is designed to retrieve and display specific information about the system it runs on. The main features of the program include:
-
Retrieve Computer Name: The program uses the
GetComputerNameExA
function to obtain the computer's NetBIOS name. -
Dynamic Memory Allocation: It allocates memory dynamically to store the computer name. If memory allocation fails, it logs an error message to
sysError.txt
. -
Retrieve Processor Information: The program uses the
GetSystemInfo
function to gather details about the processor, including its architecture and type. -
Output Information: The program writes the computer name and processor details to a file named
sysInfo.txt
. -
Error Handling: Any issues with memory allocation are recorded in
sysError.txt
.
sysInfo.txt
: Contains the computer name and processor information.sysError.txt
: Contains an error message if memory allocation fails.
- Retrieve Installed Memory : Implement the
GetPhysicallyInstalledSystemMemory
function. - Get Timezone Information : Implement
GetTimeZoneInformation
function in thetimezoneapi.h
.
- Build: Compile the program using a compatible C++ compiler with Windows API support.
- Run: Execute the compiled program to generate the output files.
This program is intended for use on Windows systems due to its reliance on Windows-specific API functions.