FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How detect if the app runs on a Linux OS with wine ?
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
How detect if the app runs on a Linux OS with wine ?
Posted: Tue Mar 10, 2009 02:53 PM

Hi all,
I tried to execute a FWH app on different operating system (Linux and Mac OS X).
All runs fine but due the specific OS some function required a different approch so I need to identify if my app is running
- on a Windows OS
- on a Linux OS with Wine (or Crossover)
- on a Mac OS X with Crossover

Is there anyone that know how detect the OS when it is different from Windows ?
I think Wine and Crossover make a key in the registry but I don't know which is it.

Any ideas ?

Thanks in advance

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: How detect if the app runs on a Linux OS with wine ?
Posted: Wed Mar 11, 2009 05:31 AM

Marco,

Maybe these will help. I believe they are FW functions. I have never used them and I don't know exactly what they return.

cWinVersion() returns Windows version.

IsWinVista() is Windows Vista version running.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion