AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Packages in anderem Verzeichnis

Ein Thema von hschmid67 · begonnen am 22. Sep 2024 · letzter Beitrag vom 24. Sep 2024
 
Kas Ob.

Registriert seit: 3. Sep 2023
412 Beiträge
 
#12

AW: Packages in anderem Verzeichnis

  Alt 23. Sep 2024, 16:49
Anstatt des Suchpfad des Parent-Prozesses zu verpfuschen,
wäre es bestimmt schöner das Environment als Parameter an CreateProcess zu übergeben.
Not sure about how nicer it will be (nicer is what translation gave me), see if Environment block is nil then process called with CreateProcess will use the parent process, if you to fill or pass anything in CreateProcess then it will be used instead of the default, meaning you should pass the same as parent process, or you are in lot of missing variables and default paths, and here comes the headache,..
Reading the Environment to pass it from parent to child, the block in whole should be read and passed, and it will be in this structure
Zitat:
name=value\0
Yes each variable will be null-terminated line, handling this is ... well doable but avoidable, and i prefer to avoid messing and parsing so much null-terminated lines, just to find PATH variable and then add my paths, then pass it with CreateProcess.

So, no.. (for me at least) it is not nicer at all.
Kas
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:46 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz