Discussion Locked

C++ BIOS & windows serial numbers

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

1 reply

This discussion is closed to new replies.