Dimitrie O. Paun wrote:
On Wed, 21 Apr 2004, Ferenc Wagner wrote:
Yes, checking the registry is one way to detect Wine. But not bulletproof, I'm afraid: what if somebody uses a real Windows partition/installation to run Wine with a shared registry? Won't Wine enter it's keys into the Windows registry?
A much better method would be
int running_on_wine() { HMODULE module = LoadLibrary("ntdll"); FARPROC proc = 0; if (module) { proc = GetProcAddress(module, "wine_get_unix_file_name"); FreeLibrary(module); } return proc != 0; }
That's awesome, thanks!
regards, Jakob