How can an app detect it's running under WINE?
bon at elektron.ikp.physik.tu-darmstadt.de
Fri Oct 25 02:51:51 CDT 2002
>>>>> "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.
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the wine-devel