How can an app detect it's running under WINE?

Greg Turner gmturner007 at
Fri Oct 25 03:50:53 CDT 2002

On Friday 25 October 2002 02:51 am, Uwe Bonnes wrote:
> >>>>> "Alberto" == Alberto Massari <alby at> writes:
>     Alberto> Hi everybody, I am working on making our software (Stylus
>     Alberto> Studio, run under WINE, if this
> is Alberto> feasible. To achieve this, I have already implemented a bunch
> Alberto> of APIs (the application is built against the UNICODE version
> Alberto> of the Win32 APIs) and fixed some bugs I hit (I already mailed
> Alberto> the first patch to wine-patches at
>     Alberto> However, I would feel better if I could detect I am running
>     Alberto> under WINE and gracefully disable some functionalities that
> are Alberto> not yet fully supported; is there any way to achieve this? Is
> Alberto> there a WIN32 API (like, say, GetVersionEx) that can return a
> Alberto> string like "Windows 2000 (WINE)" or is WINE trying to be as
> Alberto> stealth as possible?
> You can query for example the wine registry entries.
> Bye

I don't like this solution.  Those entries are likely to be present
in certain shared wine / native windows configurations.


"Oh, and of course, the fastest way to dig
 a tunnel is to dig at both sides."
   -- The Linux Advanced Routing HOWTO

More information about the wine-devel mailing list