<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 27, 2020 at 12:13 PM Alon Barzilai <<a href="mailto:alon@skylinesoft.com">alon@skylinesoft.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p><font face="David">I can use the current implementation if the </font><font face="David">RtlQueryEnvironmentVariable_U. <br>
</font></p>
<p><font face="David">should I submit it as incremental patch or a
new patch?</font></p></div></blockquote><div><br></div><div>Sure, single patch for implementation together with tests is fine. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<p><font face="David"><br>
</font></p>
<p><font face="David">Alon.</font><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div>On 4/27/2020 10:20 AM, Nikolay Sivov
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Apr 27, 2020 at 9:55
AM Alon Barzilai <<a href="mailto:alon@skylinesoft.com" target="_blank">alon@skylinesoft.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
+<br>
+/******************************************************************<br>
+ * RtlQueryEnvironmentVariable [NTDLL.@]<br>
+ *<br>
+ */<br>
+NTSTATUS WINAPI RtlQueryEnvironmentVariable(PWSTR env,<br>
+ PWSTR name,<br>
+ size_t
name_length,<br>
+ PWSTR value,<br>
+ size_t
value_length,<br>
+ PSIZE_T
return_length)<br>
+{<br>
+ FIXME("RtlQueryEnvironmentVariable not implemented\n");<br>
+ return STATUS_VARIABLE_NOT_FOUND;<br>
+}<br>
</blockquote>
<div><br>
</div>
<div>Hi,</div>
<div><br>
</div>
<div>This could be a wrapper over _U function of the same
name, you'll need to pack buffers as UNICODE_STRINGs, and
handle returned length.</div>
<div><br>
</div>
<div>We have some tests for _U function, additional test could
go there as well. </div>
</div>
</div>
</blockquote>
</div>
</blockquote></div></div>