C# uses API functions to get system information