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

Andreas Mohr andi at
Fri Oct 25 03:10:32 CDT 2002

On Fri, Oct 25, 2002 at 09:25:23AM +0200, Alberto Massari wrote:
> Hi everybody,
> I am working on making our software (Stylus Studio, 
> run under WINE, if this is feasible. To 
> achieve this, I have already implemented a bunch of APIs (the application 
> is built against the UNICODE version of the Win32 APIs) and fixed some bugs 
> I hit (I already mailed the first patch to wine-patches at
> However, I would feel better if I could detect I am running under WINE and 
> gracefully disable some functionalities that are not yet fully supported; 
> is there any way to achieve this? Is there a WIN32 API (like, say, 
> GetVersionEx) that can return a string like "Windows 2000 (WINE)" or is 
> WINE trying to be as stealth as possible? would have been answering this in countless
cases already.

Andreas Mohr                        Stauferstr. 6, D-71272 Renningen, Germany
Tel. +49 7159 800604      

More information about the wine-devel mailing list