RRUZ / tsmbios

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

Feature request: determine OS #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In issue #1 user expressed his concern about this already and I have to agree 
with him/her.
It would be very suggested to implement a fallback scenario.
For example - order could be provider when creating TSMBios class:
WMI first, but if error occured then fallback to WINAPI.
or
WINAPI first, but if GetSystemFirmwareTable function was not found then 
fallback to WMI.

When using WMI an error can occur if application is running on limited account 
(guest for example) - access denied.

Compiler directives could be used to force only WMI or WINAPI with no fallback 
scenario.

Original issue reported on code.google.com by swanty...@gmail.com on 11 Apr 2014 at 10:24

GoogleCodeExporter commented 9 years ago

Original comment by Rodrigo.Ruz.V@gmail.com on 11 Apr 2014 at 2:15