Can I programatically detect if running on ReactOS?

Here you can discuss ReactOS related topics.

Moderator: Moderator Team

Post Reply
User avatar
Konata
Posts: 391
Joined: Sun Apr 20, 2014 8:54 pm

Can I programatically detect if running on ReactOS?

Post by Konata »

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.
User avatar
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?

Post by EmuandCo »

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...
User avatar
Konata
Posts: 391
Joined: Sun Apr 20, 2014 8:54 pm

Re: Can I programatically detect if running on ReactOS?

Post by Konata »

EmuandCo wrote:Maybe check the file properties of a system file for ReactOS could be an idea.
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.
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.
hbelusca
Developer
Posts: 1204
Joined: Sat Dec 26, 2009 10:36 pm
Location: Zagreb, Croatia

Re: Can I programatically detect if running on ReactOS?

Post by hbelusca »

You can also check this registry value:
https://git.reactos.org/?p=reactos.git; ... 73f3a#l369

Code: Select all

HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion","ProductName",2,"ReactOS"
User avatar
Konata
Posts: 391
Joined: Sun Apr 20, 2014 8:54 pm

Re: Can I programatically detect if running on ReactOS?

Post by Konata »

hbelusca wrote:You can also check this registry value:
https://git.reactos.org/?p=reactos.git; ... 73f3a#l369

Code: Select all

HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion","ProductName",2,"ReactOS"
Thank you! That sounds very promising.
learn_more
Developer
Posts: 246
Joined: Fri Dec 19, 2014 10:00 pm

Re: Can I programatically detect if running on ReactOS?

Post by learn_more »

Konata wrote:
EmuandCo wrote:Maybe check the file properties of a system file for ReactOS could be an idea.
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.
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.
for obvious reasons we are not going to promise this.
PurpleGurl
Posts: 1790
Joined: Fri Aug 07, 2009 5:11 am
Location: USA

Re: Can I programatically detect if running on ReactOS?

Post by PurpleGurl »

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.
erkinalp
Posts: 861
Joined: Sat Dec 20, 2008 5:55 pm
Location: Izmir, TR

Post by erkinalp »

-uses Ubuntu+GNOME 3 GNU/Linux
-likes Free (as in freedom) and Open Source Detergents
-favors open source of Windows 10 under GPL2
middings
Posts: 1073
Joined: Tue May 07, 2013 9:18 pm
Location: California, USA

Re: Can I programatically detect if running on ReactOS?

Post by middings »

PurpleGurl wrote:Let's say that a certain software giant... (checks) for Wine and ROS and refuse to run.
A certain software giant has been burned before for trying to defeat MS-DOS rival DR-DOS with similar trickery.

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.
Post Reply

Who is online

Users browsing this forum: Yandex [Bot] and 43 guests