<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: Transparent socks proxy</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">I've commented out the &quot;other process&quot; test in virtual.c, recompiled wine and tried - just in case - it would be so simple.</FONT></P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">I don't get any error nor warning and the list of process seems to indicate the application launched thru Sockscap has started (see ps output below) but I've nothing on screen.</FONT></P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">11209 pts/1&nbsp;&nbsp;&nbsp; S+&nbsp;&nbsp;&nbsp;&nbsp; 0:00 /usr/local/bin/../lib/../bin/wine-preloader /usr/local/bin/../lib/../bin/wine-pthread SocksCapV2/sc32</FONT></P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">11214 pts/1&nbsp;&nbsp;&nbsp; S+&nbsp;&nbsp;&nbsp;&nbsp; 0:00 /usr/local/bin/../lib/../bin/wine-preloader /usr/local/bin/../lib/../bin/wine-pthread z:\dos\World of Warcraft\Launcher.exe</FONT></P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Any ideas ?</FONT>
</P>
<UL>
<P><FONT FACE="Arial"><SPAN LANG="en-gb"></SPAN></FONT><SPAN LANG="en-gb">&nbsp;<FONT SIZE=1 FACE="Tahoma">-----Original Message-----</FONT></SPAN>

<BR><SPAN LANG="en-gb"><B><FONT SIZE=1 FACE="Tahoma">From: &nbsp;</FONT></B> <FONT SIZE=1 FACE="Tahoma">ATOCH Arnaud, ECO/MASD&nbsp; </FONT></SPAN>

<BR><SPAN LANG="en-gb"><B><FONT SIZE=1 FACE="Tahoma">Sent:&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Tahoma">Thursday, March 30, 2006 12:15</FONT></SPAN>

<BR><SPAN LANG="en-gb"><B><FONT SIZE=1 FACE="Tahoma">To:&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Tahoma">'wine-users@winehq.org'</FONT></SPAN>

<BR><SPAN LANG="en-gb"><B><FONT SIZE=1 FACE="Tahoma">Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Tahoma">Transparent socks proxy</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Hello,</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">I'm running Wine 0.9.10 on a Fedora Core 5 at work.</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">I'd like to use the Socks5 proxy we've got with application run under Wine.</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">The application I'm using in Wine works fine using direct connection to the internet but this application has no settings I can change to inform it of the socks proxy.</FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">So I'm using Sockscap32 2.38 from </FONT></SPAN><A HREF="file://www.permeo.com"><SPAN LANG="en-us"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">www.permeo.com</FONT></U></SPAN></A><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial"> . It works fine under windows on the same computer.</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">When I launch it under wine, it starts, it let you configure and when I start the application from it I receive a wine message on an unsupported function :</FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Err:virtual:NtAllocateVirtualMemory Unsupported on other process</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">This seems to come from dlls/ntdll/virtual.c where a simple test checks if it is the current process or not. Is this just a security feature or is there technical issue behind this test ?</FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">1258&nbsp;&nbsp;&nbsp;&nbsp; if (!</FONT></SPAN><A HREF="http://source.winehq.org/ident?i=is_current_process"><SPAN LANG="en-us"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">is_current_process</FONT></U></SPAN></A><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">(</FONT> </SPAN><A HREF="http://source.winehq.org/ident?i=process"><SPAN LANG="en-us"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">process</FONT></U></SPAN></A><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> ))<BR>
1259&nbsp;&nbsp;&nbsp;&nbsp; {<BR>
1260&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> </SPAN><A HREF="http://source.winehq.org/ident?i=ERR"><SPAN LANG="en-us"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">ERR</FONT></U></SPAN></A><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">(<I>&quot;Unsupported on other process\n&quot;</I>);<BR>
1261&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return</FONT> </SPAN><A HREF="http://source.winehq.org/ident?i=STATUS_ACCESS_DENIED"><SPAN LANG="en-us"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">STATUS_ACCESS_DENIED</FONT></U></SPAN></A><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">;<BR>
1262&nbsp;&nbsp;&nbsp;&nbsp; }</FONT></SPAN>
</P>
<BR>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">So I've tried the tsocks Linux application </FONT></SPAN><A HREF="http://tsocks.sourceforge.net/"><SPAN LANG="en-us"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://tsocks.sourceforge.net/</FONT></U></SPAN></A><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial"> to try to make the proxy transparent for Wine but here again : no success as the application does not seems to inherit / use tsocks settings.</FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Any ideas on how to use socks proxy under wine for applications unaware of proxies ?</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Thanks.</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Arnaud Atoch</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">OECD</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Paris </FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">France.</FONT></SPAN>
</P>
</UL>
</BODY>
</HTML>