Winetest results uploaded... where?

Jakob Eriksson jakov at vmlinux.org
Wed Apr 21 15:32:12 CDT 2004


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




More information about the wine-devel mailing list