Can I programatically detect if running on ReactOS?
Moderator: Moderator Team
Can I programatically detect if running on ReactOS?
To quell the concerns of the developers, I am not looking to do this to write a "ReactOS-specific" version of my software, it's purely for survey/logging reasons. I'm doing the same for WINE.
Is there a reliable way to actually detect if my software is running on ReactOS? I tried searching for it, I vaguely recall this being a discussion in the past, but I can't remember anything about it.
Is there a reliable way to actually detect if my software is running on ReactOS? I tried searching for it, I vaguely recall this being a discussion in the past, but I can't remember anything about it.
- EmuandCo
- Developer
- Posts: 4723
- Joined: Sun Nov 28, 2004 7:52 pm
- Location: Germany, Bavaria, Steinfeld
- Contact:
Re: Can I programatically detect if running on ReactOS?
Maybe check the file properties of a system file for ReactOS could be an idea.
ReactOS is still in alpha stage, meaning it is not feature-complete and is recommended only for evaluation and testing purposes.
If my post/reply offends or insults you, be sure that you know what sarcasm is...
If my post/reply offends or insults you, be sure that you know what sarcasm is...
Re: Can I programatically detect if running on ReactOS?
Do you have a specific file/property in mind I could check? I'd really be interested in a reliable method that would be promised by the developers to always be in the OS.EmuandCo wrote:Maybe check the file properties of a system file for ReactOS could be an idea.
I'm assuming that doesn't yet exist. Would the team be interested in adding that? I imagine it wouldn't be much more than just adding a value like "is_reactos" to ntdll.dll or something, kind of like WINE.
Re: Can I programatically detect if running on ReactOS?
You can also check this registry value:
https://git.reactos.org/?p=reactos.git; ... 73f3a#l369
https://git.reactos.org/?p=reactos.git; ... 73f3a#l369
Code: Select all
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion","ProductName",2,"ReactOS"
Re: Can I programatically detect if running on ReactOS?
Thank you! That sounds very promising.hbelusca wrote:You can also check this registry value:
https://git.reactos.org/?p=reactos.git; ... 73f3a#l369Code: Select all
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion","ProductName",2,"ReactOS"
-
- Developer
- Posts: 246
- Joined: Fri Dec 19, 2014 10:00 pm
Re: Can I programatically detect if running on ReactOS?
for obvious reasons we are not going to promise this.Konata wrote:Do you have a specific file/property in mind I could check? I'd really be interested in a reliable method that would be promised by the developers to always be in the OS.EmuandCo wrote:Maybe check the file properties of a system file for ReactOS could be an idea.
I'm assuming that doesn't yet exist. Would the team be interested in adding that? I imagine it wouldn't be much more than just adding a value like "is_reactos" to ntdll.dll or something, kind of like WINE.
-
- Posts: 1790
- Joined: Fri Aug 07, 2009 5:11 am
- Location: USA
Re: Can I programatically detect if running on ReactOS?
Yes, you can check system files properties or certain registry keys. I did similar testing in a DOS utility I was writing. I'd check the kernel files for copyright strings to get the version, and which company that made it, as there were two official DOS producers. The knock-offs came later. So you can do the same with ROS, such as look in the properties and/or parse code for strings.
However, it would not exactly be a good thing to make it easy to test. Consider this. Let's say that a certain software giant (I won't name them in this context since they automatically scour the web with bots) refuses to certify an application as fully compatible with their app or sign their drivers unless they check for Wine and ROS and refuse to run. I hope I gave them no ideas in stating this. We don't need to leave ourselves open that way.
However, it would not exactly be a good thing to make it easy to test. Consider this. Let's say that a certain software giant (I won't name them in this context since they automatically scour the web with bots) refuses to certify an application as fully compatible with their app or sign their drivers unless they check for Wine and ROS and refuse to run. I hope I gave them no ideas in stating this. We don't need to leave ourselves open that way.
Duplicate of: https://jira.reactos.org/browse/CORE-7986
-uses Ubuntu+GNOME 3 GNU/Linux
-likes Free (as in freedom) and Open Source Detergents
-favors open source of Windows 10 under GPL2
-likes Free (as in freedom) and Open Source Detergents
-favors open source of Windows 10 under GPL2
Re: Can I programatically detect if running on ReactOS?
A certain software giant has been burned before for trying to defeat MS-DOS rival DR-DOS with similar trickery.PurpleGurl wrote:Let's say that a certain software giant... (checks) for Wine and ROS and refuse to run.
I believe that ReactOS is so far from releasing a minimum viable product that there is no reason to worry about the certain software giant now or for some time to come.
Who is online
Users browsing this forum: No registered users and 39 guests