RRUZ / tsmbios

Library to access the SMBIOS using Object Pascal (Delphi, FPC).
https://theroadtodelphi.wordpress.com/
202 stars 72 forks source link

Exception.Create('GetSystemFirmwareTable function not found'); #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.compile SMBiosTables.dpr on Delphi XE 
2. Run on window xp ver 3
3. Exception.Create('GetSystemFirmwareTable function not found');

what is wrong?

Original issue reported on code.google.com by limel...@gmail.com on 23 Jan 2013 at 8:56

GoogleCodeExporter commented 9 years ago
no GetSystemFirmwareTable function in kernel32

Original comment by limel...@gmail.com on 23 Jan 2013 at 9:17

GoogleCodeExporter commented 9 years ago
The 
GetSystemFirmwareTable(http://msdn.microsoft.com/en-us/library/windows/desktop/m
s724379%28v=vs.85%29.aspx) function is not present in some Windows versions. So 
on these cases you must use the USEWMI mode instead. To activate this mode go 
to the uSMBIOS unit and change this line {.$DEFINE USEWMI} to {$DEFINE USEWMI} 

Original comment by Rodrigo.Ruz.V@gmail.com on 23 Jan 2013 at 12:15

GoogleCodeExporter commented 9 years ago
Professionally speaking using the above function has nothing to do
with compilation.
For the unit to be useful it has to check the machine on which it runs 
and then decide at run time what kind of function to enable or else
check if GetSystemFirmwareTable exist in the dll at run time.
One dose not take the compiler to the field!!!

Original comment by limel...@gmail.com on 23 Jan 2013 at 1:45