<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hello,<br>
Looking to the <a moz-do-not-send="true"
href="https://github.com/brltty/brltty/blob/master/Programs/service_windows.c">brltty's
windows service code</a> i see you are using service manager and
calling <a moz-do-not-send="true"
href="https://learn.microsoft.com/en-us/windows/win32/api/winsvc/nf-winsvc-createservicea">CreateService</a>
function.<br>
I believe It should be sufficient to include the brltty arguments
such as -f for the config file in the <code>lpBinaryPathName
function argument after the path to the exe file when calling
CreateService</code>.<br>
See this description.<br>
<blockquote type="cite">
<p><code>[in, optional] lpBinaryPathName</code></p>
<p>The fully qualified path to the service binary file. If the
path contains a space, it must be quoted so that it is correctly
interpreted. For example, "d:\my share\myservice.exe" should be
specified as ""d:\my share\myservice.exe"".</p>
<p>The path can also include arguments for an auto-start service.
For example, "d:\myshare\myservice.exe arg1 arg2". These
arguments are passed to the service entry point (typically the <b>main</b>
function).</p>
<p>If you specify a path on another computer, the share must be
accessible by the computer account of the local computer because
this is the security context used in the remote call. However,
this requirement allows any potential vulnerabilities in the
remote computer to affect the local computer. Therefore, it is
best to use a local file.</p>
</blockquote>
<br>
<br>
Greetings<br>
<br>
Peter<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Dňa 9. 12. 2022 o 15:53 Peter Vágner
napísal(a):<br>
</div>
<blockquote type="cite"
cite="mid:e77a1547-930b-c62c-9660-8bf3e4f8cefe@pvagner.tk">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Hello,<br>
<br>
<div class="moz-cite-prefix">Dňa 9. 12. 2022 o 15:15 Dave Mielke
napísal(a):<br>
</div>
<blockquote type="cite"
cite="mid:Y5NDC6wtx8rlD8n7@beta.private.mielke.cc"><span style="white-space: pre-wrap">You mentioned a registry change to set the service's options. Could you explain to me how you changed the registry, i.e. the key, the old value, and the new value? Perhaps, for example, I can get the enable-brlapi script to do what you did, i.e. give the service a log file that can be easily viewed.</span>
</blockquote>
<br>
I haven't yet touched the registry. I have done it through the UI.
Here are my steps for this part:<br>
* Press windows+r, type in services.msc into the run prompt and
confirm wit the enter key.<br>
* Once services window appears press the tab key to move the
system focus to the list of services then use down arrow key or
type br on the keyboard to scroll to the BRLApi service.<br>
* Open service properties by pressing the enter key.<br>
* When the dialogbox appears use tab or shift+tab to navigate.<br>
* Find a text entry called service arguments or similar (I do have
in slovak here and am not sure about the original wording in
english).<br>
* Type your arguments into that entry and press start button on
the same screen.<br>
* The service should run with these arguments.<br>
<br>
I think there must be a way on how to do this programmatically but
I dont know more details yet.<br>
I'll try to find out.<br>
<br>
Greetings<br>
<br>
Peter<br>
<br>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: <a class="moz-txt-link-abbreviated" href="mailto:BRLTTY@brltty.app">BRLTTY@brltty.app</a>
For general information, go to: <a class="moz-txt-link-freetext" href="http://brltty.app/mailman/listinfo/brltty">http://brltty.app/mailman/listinfo/brltty</a></pre>
</blockquote>
<br>
</body>
</html>