How detect if the app runs on a Linux OS with wine ?

How detect if the app runs on a Linux OS with wine ?

Postby Marco Turco » Tue Mar 10, 2009 2: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: How detect if the app runs on a Linux OS with wine ?

Postby James Bott » Wed Mar 11, 2009 5: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 86 guests