Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Determine Windows edition (https://www.delphipraxis.net/173603-determine-windows-edition.html)

WojTec 6. Mär 2013 16:31

Determine Windows edition
 
In Vista+ there is GetProductInfo.
How to do it in XP-?

Steku 6. Mär 2013 16:51

AW: Determine Windows edition
 
For older Versions you could use a component, supplied
by a board member.

Have a look here: http://www.delphipraxis.net/97999-%5...erkennung.html

Greetings
Steku

WojTec 6. Mär 2013 17:49

Re: Determine Windows edition
 
Quite nice :)
But if I see well, it doesn't support W8 :(

DeddyH 6. Mär 2013 18:29

AW: Determine Windows edition
 
Maybe you want to have a look at here. IIRC the example uses DelphiWorks, to which there' s a link within the post.

uligerhardt 6. Mär 2013 18:42

AW: Re: Determine Windows edition
 
Zitat:

Zitat von WojTec (Beitrag 1206218)
Quite nice :)
But if I see well, it doesn't support W8 :(

You can try to dynamically load GetProductInfo with GetProcAddress. If it's there use it, otherwise use the component.

WojTec 7. Mär 2013 09:11

Re: Determine Windows edition
 
This component is great, I asked author if he plan do update.

mkinzler 7. Mär 2013 09:17

AW: Determine Windows edition
 
No component but in JCLSysinfo.pas as part of JCL

WojTec 7. Mär 2013 09:28

Re: Determine Windows edition
 
I tried JCL, but the one is not acceptable for me: edition function for XP is depended on registry nor API or version. For example on my virualized XP it retunrs empty string, because in registry I have "Microsoft Windows XP".

Do you also think that JCL was entry point for TWindowsVersionsInfo? :)

BTW: Could you test it for me on W8 (I don't have it)?


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:18 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz