How can an app detect it's running under WINE?
gmturner007 at ameritech.net
Fri Oct 25 03:50:53 CDT 2002
On Friday 25 October 2002 02:51 am, Uwe Bonnes wrote:
> >>>>> "Alberto" == Alberto Massari <alby at exln.com> writes:
> Alberto> Hi everybody, I am working on making our software (Stylus
> Alberto> Studio, http://www.stylusstudio.com) 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 winehq.com).
> 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.
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