C++ BIOS & windows serial numbers - TechRepublic
General discussion
January 15, 2004 at 07:47 PM
balls45

C++ BIOS & windows serial numbers

by balls45 . Updated 22 years, 5 months ago

I would like to know what is the C++ (borland & visual ) equivalent of Visual Basic’s way of getting the captioned information.

Visual Basic uses the following Win32 API to get the BIOS & Window Serial Number respectively.

1) GetObject(“winmgmts:{impersonationLevel=impersonate}”).InstancesOf(“Win32_BIOS”)

2) (“winmgmts:{impersonationLevel=impersonate}”).InstancesOf(“Win32_OperatingSystem”)

But in Borland C++, a function such as the GetSystemInfo with its paremeter LPSYSTEM_INFO does not return the captioned information nor does the GetVolumeInfo function.

So, how can I tackle this problem.

Many thanks for those who help.

This discussion is locked

All Comments