Winetest results uploaded... where?
Dimitrie O. Paun
dimi at intelliware.ca
Wed Apr 21 12:25:33 CDT 2004
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;
}
--
Dimi.
More information about the wine-devel
mailing list