<x-html><html>
<font face="arial" size=2>Sascha</font><font face="arial" size=3>,<br>
<br>
</font>An application using the system account logs in with NULL
credentials and <br>
does not allow network resource access by default. <br>
<br>
See Microsoft Knowledge Base articles Q124184 and Q132679 for more
details.<br>
<br>
This might be causing your problem.<br>
<br>
Ted Jirik<br>
<br>
At 05:49 PM 10/12/00 +0200, you wrote:<br>
<blockquote type=cite class=cite cite><font face="arial" size=2>Dear
Folks,</font><font size=3><br>
&nbsp;<br>
</font><font face="arial" size=2>I'm writing a Windows NT Service on an
AW70 which is supposed to use the FoxAPI to read Shared Variables.&nbsp;
So I've added a line for the &quot;system&quot; user to my
/opt/fox/ais/bin/an_init.tcp file like the FoxAPI User's Guide recommends
in Chapter 4 (Creating an Application, Running Applications from a
Non-Root User):</font><font size=3><br>
&nbsp;<br>
</font><font face="arial" size=2>System=&quot;System | Open Sets | W
Files | W Objects | Read Only |</font><font size=3><br>
&nbsp;<br>
</font><font face="arial" size=2>But alas, the following piece of code
executed from my Service still returns with a reterr of 212
(noaccess).</font><font size=3><br>
&nbsp;<br>
</font><font face="arial" size=2>----------8&lt;----------</font><font size=3><br>
</font><font face="arial" size=2>int gw = 0;</font><font size=3><br>
</font><font face="arial" size=2>char
name[AN_ONAM_SIZ];</font><font size=3><br>
</font><font face="arial" size=2>char
value[AN_SVALUE_NSIZ];</font><font size=3><br>
</font><font face="arial" size=2>int status;</font><font size=3><br>
</font><font face="arial" size=2>int reterr;</font><font size=3><br>
</font><font face="arial" size=2>int ret;</font><font size=3><br>
&nbsp;<br>
</font><font face="arial" size=2>sprintf(name,
&quot;AWNT69ST0&quot;);</font><font size=3><br>
&nbsp;<br>
</font><font face="arial" size=2>ret = sread(&amp;gw, name, value,
&amp;status, &amp;reterr);</font><font size=3><br>
</font><font face="arial" size=2>----------&gt;8----------</font><font size=3><br>
&nbsp;<br>
</font><font face="arial" size=2>After execution ret is 0 which indicates
success according to FoxDoc but reterr is 212 and the returned value
contains junk.</font><font size=3><br>
&nbsp;<br>
</font><font face="arial" size=2>I'd be extremely grateful if anyone
knows the solution.</font><font size=3><br>
&nbsp;<br>
&nbsp;<br>
</font><font face="arial" size=2>Best regards,</font><font size=3><br>
&nbsp;<br>
</font><font face="arial" size=2>Sascha Wildner<br>
erpicon Software Development GmbH</font></blockquote></html>
</x-html>

Reply via email to